/* Hide mobile profile button on account page */
.mobile-profile-btn {
    display: none !important;
}

.penghuni-main-content {
    padding: 0 !important;
}

/* Main Container with Better Yellow Gradient */
.account-container {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    background: 
        linear-gradient(180deg, #ffee8c 0%, #fffbf0 25%, #ffffff 50%),
        fixed;
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Fixed background overlay for scroll effect */
.account-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60vh;
    background: linear-gradient(180deg, #ffee8c 0%, #fffbf0 30%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: -1;
}



/* Profile Header Component with Transparent Background */
.profile-header-component {
    background: transparent;
    border-radius: 0;
    padding: 40px 20px 30px 20px;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}



.profile-header-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(27, 117, 187, 0.15);
    flex-shrink: 0;
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-header-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.profile-edit-btn:hover {
    background: var(--blue);
    color: var(--white);
    transform: translateY(-1px);
    text-decoration: none;
}

.profile-edit-btn svg {
    width: 16px;
    height: 16px;
}

.profile-header-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-status-badge.verified {
    background: linear-gradient(135deg, var(--btn-green) 0%, #059669 100%);
    color: var(--white);
}

.profile-status-badge.pending {
    background: linear-gradient(135deg, var(--btn-orange) 0%, #ea580c 100%);
    color: var(--white);
}

.profile-status-badge.rejected {
    background: linear-gradient(135deg, var(--btn-red) 0%, #dc2626 100%);
    color: var(--white);
}

.profile-status-badge.unverified {
    background: linear-gradient(135deg, var(--btn-orange) 0%, #ea580c 100%);
    color: var(--white);
}

.account-header-content {
    display: flex;
    align-items: center;
    gap: 24px;
}





/* Section Titles - Clean Typography */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

/* Quick Settings Section */
.quick-settings-section {
    margin-bottom: 32px;
}

.quick-settings-grid {
    display: grid;
    gap: 16px;
}

.setting-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    cursor: pointer;
}

.setting-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.setting-item.security-highlight {
    background: rgba(27, 117, 187, 0.05);
    border-color: rgba(27, 117, 187, 0.2);
}

.setting-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}



.setting-icon.payments {
    background: var(--pk-yellow-light);
    color: var(--pk-yellow-dark);
}

.setting-icon.security {
    background: rgba(27, 117, 187, 0.1);
    color: var(--pk-blue);
}

.setting-content {
    flex: 1;
}

.setting-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.setting-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.setting-toggle {
    flex-shrink: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--pk-gray-300);
    transition: var(--transition-smooth);
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: var(--pk-white);
    transition: var(--transition-smooth);
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--pk-blue);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.setting-action {
    flex-shrink: 0;
    color: var(--pk-gray-400);
}

/* Account Menu Container with proper z-index */
.account-menu-container {
    padding: 20px 16px;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Menu Section Styling - Flat Design */
.menu-section {
    margin-bottom: 20px;
}

.menu-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    margin: 0 0 8px 0;
    padding: 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Menu List Container - Flat Design */
.menu-list {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
}

/* Individual Menu Item - Flat Design */
.menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border-bottom: none;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(255, 241, 0, 0.08);
    transform: none;
}

.menu-item:active {
    background: rgba(255, 241, 0, 0.15);
    transform: none;
}

/* Menu Item Icon - Colored Icons */
.menu-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Account Section Icons */
.menu-item[href*="profil"] .menu-icon {
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
}

.menu-item[href*="ubah-kata-sandi"] .menu-icon {
    background: rgba(5, 150, 105, 0.1);
    color: #059669;
}

/* History Section Icons - More Distinctive Colors */
.menu-item[href*="reservasi"] .menu-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.menu-item[href*="ulasan"] .menu-icon {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.menu-item[href*="keluhan"] .menu-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.menu-item[href*="chat"] .menu-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
}

.menu-item[href*="favorit"] .menu-icon {
    background: rgba(236, 72, 153, 0.1);
    color: #EC4899;
}

.menu-item[href*="survey-lokasi"] .menu-icon {
    background: rgba(168, 85, 247, 0.1);
    color: #A855F7;
}

/* More Section Icons */
.menu-item[href*="notifikasi"] .menu-icon {
    background: rgba(34, 197, 94, 0.1);
    color: #22C55E;
}

/* Pengingat Pembayaran Icon - Orange Color with High Specificity */
.menu-item[href*="pengingat-pembayaran"] .menu-icon {
    background: rgba(251, 146, 60, 0.1) !important;
    color: #FB923C !important;
}

/* Override SVG fill and stroke for pengingat pembayaran */
.menu-item[href*="pengingat-pembayaran"] .menu-icon svg,
.menu-item[href*="pengingat-pembayaran"] .menu-icon .icon-credit-card {
    fill: #FB923C !important;
    stroke: #FB923C !important;
    color: #FB923C !important;
}

/* Cari Icon */
.menu-item[href*="search"] .menu-icon {
    background: rgba(99, 102, 241, 0.1);
    color: #6366F1;
}

/* Daftar Pemilik Icon */
.menu-item[href*="daftar-pemilik"] .menu-icon {
    background: rgba(6, 182, 212, 0.1);
    color: #06B6D4;
}

/* Logout Icon */
.menu-item.logout .menu-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.menu-item:hover .menu-icon {
    transform: scale(1.05);
}

/* Menu Content */
.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.menu-desc {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.3;
    display: none;
}

/* Menu Badge (for counts) */
.menu-badge {
    background: var(--gray-200);
    color: var(--gray-700);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.menu-badge.active {
    background: #fff100;
    color: #000;
}

.menu-badge.empty-state {
    background: rgba(156, 163, 175, 0.2);
    color: rgba(156, 163, 175, 0.6);
    border: 1px dashed rgba(156, 163, 175, 0.4);
}

.menu-item:hover .menu-badge {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.menu-item:hover .menu-badge.active {
    background: #fff100;
    color: #000;
}

.menu-item:hover .menu-badge.empty-state {
    background: rgba(156, 163, 175, 0.3);
    color: rgba(156, 163, 175, 0.7);
}

/* Menu Arrow */
.menu-arrow {
    flex-shrink: 0;
    color: var(--gray-400);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-arrow {
    color: var(--text-primary);
    transform: translateX(4px);
}

.menu-item.logout:hover .menu-arrow {
    color: var(--error-color);
}

/* Special styling for logout item */
.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.05);
    color: var(--error-color);
}

.menu-item.logout:hover .menu-text,
.menu-item.logout:hover .menu-desc {
    color: var(--error-color);
}

/* Ripple effect animation */
.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.menu-item:active::before {
    width: 300px;
    height: 300px;
    border-radius: 10px;
}

/* Focus states for accessibility */
.menu-item:focus {
    outline: 2px solid #fff100;
    outline-offset: -2px;
    background: var(--gray-50);
}

/* Animation and Interaction Effects */
.menu-card.clicked {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.2s ease;
}

.setting-item.setting-active {
    background: rgba(27, 117, 187, 0.03);
    border-color: rgba(27, 117, 187, 0.15);
}

.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(27, 117, 187, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Loading states */
.menu-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

.menu-card.loading .menu-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

.menu-card.loading .stat-number {
    animation: pulse 1.5s ease-in-out infinite;
    color: var(--pk-gray-400);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Enhanced focus states for accessibility */
.menu-card:focus,
.option-item:focus,
.setting-item:focus {
    outline: 2px solid var(--pk-blue);
    outline-offset: 2px;
}

.toggle-switch:focus-within {
    outline: 2px solid var(--pk-blue);
    outline-offset: 2px;
    border-radius: 28px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .account-container {
        padding: 24px 20px;
    }
    
    .profile-header-component {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-header-avatar {
        width: 70px;
        height: 70px;
        font-size: 28px;
        border-width: 3px;
    }
    
    .profile-header-name {
        font-size: 20px;
        justify-content: center;
    }
    
    .profile-header-subtitle {
        font-size: 13px;
    }
    
    .profile-edit-btn {
        width: 28px;
        height: 28px;
    }
    
    .profile-edit-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .profile-avatar-account {
        width: 76px;
        height: 76px;
        font-size: 30px;
        border-width: 4px;
    }
    

    
    .section-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .riwayat-grid {
        gap: 16px;
    }
    
    .riwayat-card {
        padding: 24px 20px;
        min-height: 120px;
        border-radius: 14px;
    }
    
    .riwayat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
        border-radius: 12px;
    }

    .riwayat-count {
        font-size: 28px;
    }

    .riwayat-title {
        font-size: 11px;
        letter-spacing: 0.6px;
    }
    
    .option-item {
        padding: 18px 20px;
    }
    
    .quick-settings-grid {
        gap: 14px;
    }
    
    .setting-item {
        padding: 18px;
        gap: 14px;
        border-radius: 14px;
    }
    
    .setting-icon {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .account-container {
        padding: 12px;
    }
    
    .account-header-card {
        padding: 16px;
    }
    
    .riwayat-card {
        padding: 14px;
        min-height: 90px;
    }
    
    .riwayat-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .riwayat-title {
        font-size: 12px;
    }
    
    .riwayat-count {
        font-size: 18px;
    }
}