/* Barateiro My Account Customizer Styles */

:root {
    --bmac-red: #D32F2F;
    --bmac-red-dark: #b71c1c;
    --bmac-yellow: #FFD700;
    --bmac-black: #1a1a1a;
    --bmac-gray: #f9f9f9;
    --bmac-border: #e6e6e6;
    --bmac-text: #444;
    --bmac-text-light: #777;
    --bmac-shadow: 0 10px 40px rgba(0,0,0,0.08);
    --bmac-shadow-hover: 0 15px 50px rgba(0,0,0,0.12);
    --bmac-radius: 12px;
    --bmac-font-heading: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
}

.bmac-wrapper {
    background-color: var(--bmac-gray);
    min-height: 80vh;
    padding: 60px 0;
    font-family: 'Roboto', sans-serif;
    color: var(--bmac-text);
}

.bmac-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Dashboard Grid --- */
.bmac-dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Sidebar --- */
.bmac-dashboard-sidebar {
    background: white;
    border-radius: var(--bmac-radius);
    box-shadow: var(--bmac-shadow);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.bmac-user-profile-summary {
    padding: 30px;
    background: linear-gradient(135deg, var(--bmac-black) 0%, #333 100%);
    color: white;
    text-align: center;
}

.bmac-avatar img {
    border-radius: 50%;
    border: 4px solid rgba(255,255,255,0.2);
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.bmac-avatar img:hover {
    transform: scale(1.05);
}

.bmac-greeting {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.bmac-greeting small {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: 400;
}

.bmac-navigation {
    padding: 15px;
}

.bmac-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bmac-navigation li {
    margin-bottom: 8px;
}

.bmac-nav-link {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 8px;
    color: var(--bmac-text);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.bmac-nav-link:hover {
    background-color: #f5f5f5;
    color: var(--bmac-black);
    transform: translateX(5px);
}

.bmac-navigation li.is-active .bmac-nav-link {
    background-color: #fffaf0; /* Very light yellow */
    color: var(--bmac-red);
    font-weight: 700;
    border-color: #fff0c2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

/* --- Content Card --- */
.bmac-content-card {
    background: white;
    border-radius: var(--bmac-radius);
    box-shadow: var(--bmac-shadow);
    padding: 50px;
    min-height: 500px;
    position: relative;
}

.bmac-page-header {
    margin-bottom: 40px;
    border-bottom: 1px solid var(--bmac-border);
    padding-bottom: 20px;
}

.bmac-page-title {
    font-family: var(--bmac-font-heading);
    font-size: 2.2rem;
    color: var(--bmac-black);
    margin: 0;
    position: relative;
    display: inline-block;
}

.bmac-page-title::after {
    content: '';
    position: absolute;
    bottom: -21px; /* Matches padding+border */
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--bmac-yellow);
    border-radius: 2px;
}

/* --- Dashboard Home --- */
.bmac-welcome-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--bmac-black);
    margin-bottom: 20px;
}

.bmac-welcome-text a {
    color: var(--bmac-red);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border 0.2s;
}

.bmac-welcome-text a:hover {
    border-bottom-color: var(--bmac-red);
}

.bmac-intro-text p {
    color: var(--bmac-text-light);
    font-size: 1rem;
    margin-bottom: 40px;
}

.bmac-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.bmac-action-card {
    background: white;
    border: 1px solid var(--bmac-border);
    border-radius: var(--bmac-radius);
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bmac-action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--bmac-shadow-hover);
    border-color: transparent;
}

.bmac-action-card h3 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: var(--bmac-font-heading);
    color: var(--bmac-black);
}

.bmac-action-card p {
    font-size: 0.95rem;
    color: var(--bmac-text-light);
    margin-bottom: 25px;
    line-height: 1.5;
}

.bmac-action-card .button {
    margin-top: auto;
    background-color: transparent;
    color: var(--bmac-red);
    border: 2px solid var(--bmac-red);
    padding: 10px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.bmac-action-card .button:hover {
    background-color: var(--bmac-red);
    color: white;
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

/* --- Login / Register Forms --- */
.bmac-auth-wrapper {
    display: flex;
    gap: 0; /* Removed gap, handled by padding */
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    border-radius: 20px;
    box-shadow: var(--bmac-shadow);
    overflow: hidden;
    min-height: 600px;
}

.bmac-auth-col {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bmac-login-col {
    background: white;
}

.bmac-register-col {
    background: #fafafa;
    border-left: 1px solid var(--bmac-border);
}

.bmac-auth-col h2 {
    font-family: var(--bmac-font-heading);
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--bmac-black);
    position: relative;
}

/* Modern Inputs */
.woocommerce-form-row {
    position: relative;
    margin-bottom: 25px;
}

.woocommerce-form-row label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bmac-black);
    margin-bottom: 8px;
    display: block;
}

.woocommerce-form-row input.input-text {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid #eee;
    background-color: #fdfdfd;
    border-radius: 10px;
    font-size: 1rem;
    color: var(--bmac-black);
    transition: all 0.3s;
}

.woocommerce-form-row input.input-text:focus {
    border-color: var(--bmac-black);
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    outline: none;
}

/* Auth Actions */
.bmac-auth-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    background: var(--bmac-black);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px; /* Pill shape */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: auto;
    min-width: 160px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover {
    background: var(--bmac-red);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.4);
}

.woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.woocommerce-LostPassword {
    margin-top: 20px;
    text-align: center;
}

.woocommerce-LostPassword a {
    color: #888;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.woocommerce-LostPassword a:hover {
    color: var(--bmac-red);
    text-decoration: underline;
}

/* Separator styling update */
.bmac-auth-separator {
    display: none; /* Hiding explicit separator char, using visual bg difference */
}

/* Responsive */
@media (max-width: 992px) {
    .bmac-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .bmac-dashboard-sidebar {
        position: relative;
        top: 0;
        z-index: 10;
    }
    
    .bmac-user-profile-summary {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 20px;
    }
    
    .bmac-avatar img {
        margin: 0;
        width: 60px;
        height: 60px;
    }

    .bmac-navigation ul {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
    }
    
    .bmac-navigation li {
        flex: 0 0 auto;
        margin-bottom: 0;
        margin-right: 10px;
    }
    
    .bmac-nav-link {
        white-space: nowrap;
        padding: 10px 15px;
        background: #f5f5f5;
    }

    .bmac-auth-wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .bmac-register-col {
        border-left: none;
        border-top: 1px solid var(--bmac-border);
    }
    
    .bmac-auth-col {
        padding: 40px 30px;
    }
}
