/* ============================================
   ÁREA DO CLIENTE — MINHA CONTA
   Layout sidebar + conteúdo, responsivo.
   ============================================ */

/* Container principal */
.customer-area {
    padding: 30px 0;
    min-height: 400px;
}

/* ============================================
   SIDEBAR
   ============================================ */

.customer-sidebar {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 24px 0;
    margin-bottom: 20px;
}

/* Avatar + Nome do cliente no topo da sidebar */
.customer-sidebar-header {
    text-align: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.customer-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary, #013E3B);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    font-weight: 700;
    margin: 0 auto 10px;
    letter-spacing: 1px;
}

.customer-sidebar-header h4 {
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    color: #333;
}

.customer-sidebar-header small {
    color: #999;
    font-size: 0.82em;
}

/* Menu de navegação */
.customer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customer-nav li a {
    display: block;
    padding: 12px 24px;
    color: #555;
    text-decoration: none;
    font-size: 0.93em;
    transition: all 0.15s ease;
    border-left: 3px solid transparent;
}

.customer-nav li a:hover {
    background: #f8f8f8;
    color: var(--color-primary, #013E3B);
}

.customer-nav li a.active {
    background: rgba(1, 62, 59, 0.05);
    color: var(--color-primary, #013E3B);
    font-weight: 600;
    border-left-color: var(--color-primary, #013E3B);
}

.customer-nav li a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

.customer-nav-divider {
    border-top: 1px solid #eee;
    margin: 8px 0;
}

.customer-nav li a.nav-logout {
    color: #dc3545;
}

.customer-nav li a.nav-logout:hover {
    background: #fff5f5;
}

/* ============================================
   CONTEÚDO
   ============================================ */

.customer-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    padding: 30px;
    min-height: 400px;
}

.customer-content h2 {
    font-size: 1.4em;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px;
}

.customer-content .section-subtitle {
    color: #888;
    font-size: 0.9em;
    margin-bottom: 24px;
}

/* ============================================
   DASHBOARD — CARDS
   ============================================ */

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.dash-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.dash-card:hover {
    border-color: var(--color-primary, #013E3B);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: var(--color-primary, #013E3B);
    text-decoration: none;
}

.dash-card i {
    font-size: 2em;
    display: block;
    margin-bottom: 10px;
    color: var(--color-primary, #013E3B);
}

.dash-card span {
    font-weight: 600;
    font-size: 0.95em;
}

.dash-card small {
    display: block;
    color: #999;
    font-size: 0.8em;
    margin-top: 4px;
}

/* ============================================
   FORMULÁRIOS — PERFIL, SENHA
   ============================================ */

.customer-form .form-group {
    margin-bottom: 18px;
}

.customer-form label {
    font-weight: 600;
    font-size: 0.9em;
    color: #555;
    margin-bottom: 6px;
}

.customer-form .form-control {
    border-radius: 8px;
    height: 44px;
    border: 1px solid #ddd;
    font-size: 0.93em;
    transition: border-color 0.2s;
}

.customer-form .form-control:focus {
    border-color: var(--color-primary, #013E3B);
    box-shadow: 0 0 0 2px rgba(1, 62, 59, 0.1);
}

.customer-form .btn-save {
    background: var(--color-primary, #013E3B);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 10px 32px;
    font-weight: 600;
    font-size: 0.93em;
    cursor: pointer;
    transition: background 0.2s;
}

.customer-form .btn-save:hover {
    background: var(--color-secondary, #FFA733);
}

.customer-form .alert {
    border-radius: 8px;
    font-size: 0.9em;
}

/* ============================================
   ENDEREÇOS — CARDS
   ============================================ */

.address-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.address-card {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-card.is-main {
    border-left: 3px solid var(--color-primary, #013E3B);
    background: #f0faf9;
}

.address-card .address-info {
    flex: 1;
    font-size: 0.9em;
    color: #555;
    line-height: 1.5;
}

.address-card .address-info strong {
    color: #333;
}

.address-card .address-actions {
    margin-left: 16px;
}

.address-card .btn-remove {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82em;
    cursor: pointer;
    transition: all 0.2s;
}

.address-card .btn-remove:hover {
    background: #dc3545;
    color: #fff;
}

.btn-add-address {
    display: inline-block;
    padding: 10px 24px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    color: #888;
    text-decoration: none;
    font-size: 0.9em;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
}

.btn-add-address:hover {
    border-color: var(--color-primary, #013E3B);
    color: var(--color-primary, #013E3B);
    text-decoration: none;
}

/* ============================================
   BADGE ENDEREÇO PRINCIPAL
   ============================================ */

.badge-principal {
    display: inline-block;
    padding: 2px 8px;
    background: var(--color-primary, #013E3B);
    color: #fff;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 600;
    margin-left: 8px;
}

/* ============================================
   FORMULÁRIO NOVO ENDEREÇO (toggle)
   ============================================ */

.address-form-wrapper {
    display: none;
    margin-top: 16px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 767px) {
    .customer-area {
        padding: 15px 0;
    }

    .customer-sidebar {
        border-radius: 0;
        margin-bottom: 10px;
        padding: 16px 0;
    }

    .customer-sidebar-header {
        padding: 0 16px 16px;
    }

    .customer-avatar {
        width: 48px;
        height: 48px;
        font-size: 1em;
    }

    .customer-nav li a {
        padding: 10px 16px;
        font-size: 0.88em;
    }

    .customer-content {
        border-radius: 0;
        padding: 20px 16px;
        min-height: auto;
    }

    .dashboard-cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dash-card {
        padding: 16px 12px;
    }

    .dash-card i {
        font-size: 1.5em;
    }

    .address-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .address-card .address-actions {
        margin-left: 0;
    }
}
