/* ============================================
   LOOMS by Nowshin — Account Dashboard
   ============================================ */

.account-section {
    padding: 3rem 0 5rem;
    background: #FAF8F5;
    min-height: calc(100vh - 200px);
}

/* ============================================
   Sidebar
   ============================================ */
.account-sidebar {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    border: 1px solid #E8E3DC;
}

.account-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E8E3DC;
    margin-bottom: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B9D86, #6B7D66);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.user-name {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #2C2C2C;
}

.user-email {
    font-size: 0.8rem;
    color: #6B7B8C;
    margin-bottom: 0;
}

/* Navigation */
.account-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: #4A5568;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.account-nav-link i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.account-nav-link:hover {
    background: #FAF8F5;
    color: #8B9D86;
}

/* Active Tab - Fixed Visibility */
.account-nav-link.active {
    background: #8B9D86;
    color: #ffffff;
}

.account-nav-link.active:hover {
    background: #6B7D66;
    color: #ffffff;
}

/* Logout Link */
.account-nav-link.logout-link {
    color: #DC2626;
    margin-top: 0.5rem;
    border-top: 1px solid #E8E3DC;
    padding-top: 1rem;
}

.account-nav-link.logout-link:hover {
    background: #FEF2F2;
    color: #DC2626;
}

/* ============================================
   Main Content
   ============================================ */
.account-content {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #E8E3DC;
}

/* Tab Header */
.tab-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E8E3DC;
}

.account-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.35rem;
}

.account-subtitle {
    font-size: 0.95rem;
    color: #6B7B8C;
    margin-bottom: 0;
}

.account-tab {
    display: none;
    animation: fadeIn 0.3s ease;
}

.account-tab.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Stats Grid
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #FAF8F5;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #E8E3DC;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8B9D86, #6B7D66);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-icon.wishlist-icon {
    background: linear-gradient(135deg, #F472B6, #EC4899);
}

.stat-icon.reviews-icon {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2C2C;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #6B7B8C;
    margin-top: 0.25rem;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0;
}

.view-all-link {
    font-size: 0.9rem;
    color: #8B9D86;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #6B7D66;
    gap: 0.5rem;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    background: #FAF8F5;
    border-radius: 12px;
    border: 1px dashed #E8E3DC;
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #E8E3DC;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
}

.empty-icon i {
    font-size: 2rem;
    color: #8B9D86;
}

.empty-state h4 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6B7B8C;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   Quick Links
   ============================================ */
.quick-links {
    margin-top: 2rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: #FAF8F5;
    border-radius: 12px;
    border: 1px solid #E8E3DC;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quick-link-card:hover {
    background: #8B9D86;
    border-color: #8B9D86;
    transform: translateY(-3px);
}

.quick-link-card i {
    font-size: 1.5rem;
    color: #8B9D86;
    transition: color 0.3s ease;
}

.quick-link-card:hover i {
    color: #ffffff;
}

.quick-link-card span {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C2C2C;
    transition: color 0.3s ease;
}

.quick-link-card:hover span {
    color: #ffffff;
}

/* ============================================
   Orders Filter
   ============================================ */
.orders-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    border: 1.5px solid #E8E3DC;
    background: #ffffff;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4A5568;
}

.filter-btn:hover {
    border-color: #8B9D86;
    color: #8B9D86;
}

.filter-btn.active {
    background: #8B9D86;
    border-color: #8B9D86;
    color: #ffffff;
}

/* ============================================
   Addresses Grid
   ============================================ */
.addresses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.address-card {
    background: #FAF8F5;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px dashed #E8E3DC;
    transition: all 0.3s ease;
}

.address-card.add-new {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.address-card.add-new:hover {
    border-color: #8B9D86;
    background: rgba(139, 157, 134, 0.05);
}

.btn-add-address {
    background: none;
    border: none;
    color: #8B9D86;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    padding: 1rem;
}

.btn-add-address:hover {
    color: #6B7D66;
    transform: scale(1.05);
}

.btn-add-address i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.btn-add-address span {
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Settings Form
   ============================================ */
.settings-form .settings-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #E8E3DC;
}

.settings-form .settings-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-desc {
    font-size: 0.9rem;
    color: #6B7B8C;
    margin-bottom: 1rem;
}

.settings-form .form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
}

.settings-form .form-control {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #E8E3DC;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.settings-form .form-control:focus {
    border-color: #8B9D86;
    box-shadow: 0 0 0 4px rgba(139, 157, 134, 0.1);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-wrapper .password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9BA8AB;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.password-wrapper .password-toggle:hover {
    color: #8B9D86;
}

.settings-actions {
    margin-top: 1.5rem;
}

.settings-actions .btn-looms {
    padding: 0.85rem 2rem;
    position: relative;
}

.settings-actions .btn-looms .btn-loader {
    display: none;
}

.settings-actions .btn-looms.loading .btn-text {
    visibility: hidden;
}

.settings-actions .btn-looms.loading .btn-loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Wishlist Grid
   ============================================ */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

/* ============================================
   Address Modal
   ============================================ */
.modal-content {
    border: none;
    border-radius: 16px;
}

.modal-header {
    border-bottom: 1px solid #E8E3DC;
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2C2C2C;
}

.modal-body {
    padding: 1.5rem;
}

/* Address Labels */
.address-labels {
    display: flex;
    gap: 0.75rem;
}

.address-label-option {
    flex: 1;
    cursor: pointer;
}

.address-label-option input {
    display: none;
}

.address-label-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #FAF8F5;
    border: 2px solid #E8E3DC;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4A5568;
    transition: all 0.2s ease;
}

.address-label-option input:checked + span {
    background: #8B9D86;
    border-color: #8B9D86;
    color: #ffffff;
}

.address-label-option:hover span {
    border-color: #8B9D86;
}

/* Modal Form */
.modal-body .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #2C2C2C;
}

.modal-body .form-control {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1.5px solid #E8E3DC;
    font-size: 0.9rem;
}

.modal-body .form-control:focus {
    border-color: #8B9D86;
    box-shadow: 0 0 0 4px rgba(139, 157, 134, 0.1);
}

.modal-body .btn-looms {
    padding: 0.85rem 1.5rem;
    position: relative;
}

.modal-body .btn-looms .btn-loader {
    display: none;
}

.modal-body .btn-looms.loading .btn-text {
    visibility: hidden;
}

.modal-body .btn-looms.loading .btn-loader {
    display: block;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Toast Notifications
   ============================================ */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.looms-toast {
    background: #2C2C2C;
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.looms-toast.show {
    transform: translateX(0);
}

.looms-toast.success {
    background: #10B981;
}

.looms-toast.error {
    background: #EF4444;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991.98px) {
    .account-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }

    .account-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .account-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        border-radius: 25px;
        background: #FAF8F5;
    }

    .account-nav-link.active {
        background: #8B9D86;
    }

    .account-nav-link.logout-link {
        margin-top: 0;
        border-top: none;
        padding-top: 0.6rem;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .account-section {
        padding: 2rem 0 3rem;
    }

    .account-content {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1rem;
    }

    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .quick-link-card {
        padding: 1.25rem 0.75rem;
    }

    .quick-link-card i {
        font-size: 1.25rem;
    }

    .quick-link-card span {
        font-size: 0.8rem;
    }

    .addresses-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .account-nav-link span {
        display: none;
    }

    .account-nav-link {
        padding: 0.75rem;
        justify-content: center;
    }

    .account-nav-link i {
        width: auto;
    }

    .toast-container {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .looms-toast {
        width: 100%;
    }
}