/* style.css - Aizu Sphere Premium Design System */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-main: #090d16;
    --bg-card: rgba(18, 25, 41, 0.7);
    --bg-card-solid: #111726;
    --bg-input: rgba(7, 10, 17, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-focus: #7c3aed;
    
    /* Harmonious Color Palette */
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.3);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);
    --emerald: #10b981;
    --emerald-glow: rgba(16, 185, 129, 0.3);
    --amber: #f59e0b;
    --amber-glow: rgba(245, 158, 11, 0.3);
    --rose: #ef4444;
    --rose-glow: rgba(239, 68, 68, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Atmosphere */
.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    z-index: -1;
    pointer-events: none;
}

.orb-primary {
    width: 350px;
    height: 350px;
    background: var(--purple);
    top: -10%;
    left: -10%;
}

.orb-secondary {
    width: 300px;
    height: 300px;
    background: var(--blue);
    bottom: 5%;
    right: -5%;
}

/* Scrollbar Customization */
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Premium Layout Grid */
.app-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

/* Header UI */
.app-header {
    background: rgba(13, 19, 33, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--purple-glow);
    font-size: 18px;
    color: #fff;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* User Badge */
.user-badge {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.role-tag {
    font-size: 9px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 800;
}

.role-god {
    background: linear-gradient(135deg, var(--purple), #ec4899);
    color: #fff;
    box-shadow: 0 0 10px var(--purple-glow);
}

.role-pro {
    background: var(--amber);
    color: #000;
    box-shadow: 0 0 10px var(--amber-glow);
}

.role-plus {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 10px var(--blue-glow);
}

.role-basic {
    background: var(--text-muted);
    color: #fff;
}

/* Main Area Container */
.main-wrapper {
    flex: 1;
    display: flex;
    position: relative;
    padding-bottom: 76px; /* Space for Mobile bottom navigation */
}

.sidebar {
    width: 260px;
    background: rgba(13, 19, 33, 0.5);
    border-right: 1px solid var(--border-color);
    padding: 24px 16px;
    display: none; /* Hidden on mobile */
    flex-direction: column;
    gap: 8px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    margin-bottom: 6px;
    border: 1px solid transparent;
}

.sidebar-nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-item.active {
    color: #fff;
    background: #0a335c; /* Deep Google-like blue */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Nav Icon Circle */
.nav-icon-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

/* Nav Icon Colors matching the reference image */
.nav-icon-circle.bg-blue {
    background-color: #c2e7ff;
    color: #001d35;
}
.nav-icon-circle.bg-purple {
    background-color: #e8ddff;
    color: #1d0047;
}
.nav-icon-circle.bg-lavender {
    background-color: #eae6f3;
    color: #301a55;
}
.nav-icon-circle.bg-green {
    background-color: #c4eed0;
    color: #072711;
}
.nav-icon-circle.bg-orange {
    background-color: #ffdcb4;
    color: #2d1600;
}
.nav-icon-circle.bg-pink {
    background-color: #ffd8e4;
    color: #3f001c;
}
.nav-icon-circle.bg-rose {
    background-color: #fbcfe8;
    color: #3b071e;
}

/* Main Content Area */
.content-area {
    flex: 1;
    padding: 20px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .app-header {
        border-bottom: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    .main-wrapper {
        padding-bottom: 0;
    }
    .sidebar {
        display: flex;
        border-right: none;
        background: transparent;
    }
    .content-area {
        padding: 30px;
    }
}

/* Bottom Navigation Bar (Mobile Only) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(13, 19, 33, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 5px;
    transition: var(--transition-smooth);
    padding: 8px 16px;
    border-radius: 16px;
}

.nav-link i {
    font-size: 1.25rem;
    transition: var(--transition-smooth);
}

.nav-link.active {
    color: var(--purple);
    background: rgba(124, 58, 237, 0.08);
}

.nav-link.active i {
    transform: translateY(-2px);
    text-shadow: 0 0 10px var(--purple-glow);
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

/* Glassmorphism Card Panels */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* Inputs & Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.control-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 16px;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition-smooth);
}

.input-container .control-input {
    padding-left: 46px;
}

.control-input:focus {
    border-color: var(--border-focus);
    background: rgba(18, 25, 41, 0.9);
    box-shadow: 0 0 15px var(--purple-glow);
}

.control-input:focus + i {
    color: var(--purple);
}

.control-input[readonly] {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: not-allowed;
    border-color: transparent;
}

textarea.control-input {
    resize: none;
    min-height: 100px;
}

/* Custom Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #1e293b;
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 14px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Modals & Dialogs */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: #fff;
}

/* Notification Toast */
.toast-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    padding: 16px 20px;
    border-radius: 16px;
    z-index: 3000;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    animation: slideDown 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

@media (min-width: 768px) {
    .toast-msg {
        left: auto;
        width: 380px;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: #34d399;
}

.toast-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--rose);
    color: #f87171;
}

/* Typography Helpers */
.title-accent {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.subtitle-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.accent-purple { color: var(--purple); }
.accent-blue { color: var(--blue); }
.accent-emerald { color: var(--emerald); }
.accent-amber { color: var(--amber); }
.accent-rose { color: var(--rose); }

/* Progress bar inside profile/storage */
.progress-track {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--purple));
    border-radius: 30px;
    transition: width 1s ease-in-out;
}

/* Bottom Nav bar override for spacing */
.bottom-spacing {
    height: 30px;
}
@media(max-width: 768px) {
    .bottom-spacing {
        height: 60px;
    }
}

/* Profile Avatar Global Styles */
.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}
.profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--purple);
    box-shadow: 0 0 15px var(--purple-glow);
    background: #111726;
}
.avatar-edit-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    color: #fff;
    font-size: 20px;
}
.profile-avatar-container:hover .avatar-edit-overlay {
    opacity: 1;
}

/* Google-like Home Dashboard Styles */
.google-avatar-ring {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: conic-gradient(
        #4285f4 0% 25%, 
        #ea4335 25% 50%, 
        #fbbc05 50% 75%, 
        #34a853 75% 100%
    );
    padding: 6px;
    margin: 0 auto 20px;
}
.google-avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-main);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.google-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-camera-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #202124;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}
.avatar-camera-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.home-user-name {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.home-user-email {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}
.account-search-box {
    max-width: 580px;
    margin: 0 auto 24px;
    position: relative;
    width: 100%;
}
.account-search-box input {
    width: 100%;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 14px 20px 14px 52px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}
.account-search-box input:focus {
    background: rgba(30, 41, 59, 0.85);
    border-color: var(--blue);
    box-shadow: 0 0 15px var(--blue-glow);
}
.account-search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.quick-links-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.quick-link-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.quick-link-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}
.promo-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 24px;
    max-width: 580px;
    margin: 0 auto 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.promo-card-icon {
    font-size: 2.2rem;
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 4px;
}
.promo-card-content {
    flex-grow: 1;
}
.promo-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.4;
}
.promo-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}
.promo-card-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.promo-btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}
.promo-btn-text:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.promo-btn-filled {
    background: #8ab4f8;
    border: none;
    color: #202124;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}
.promo-btn-filled:hover {
    background: #aecbfa;
    transform: translateY(-2px);
}
.privacy-footer {
    max-width: 580px;
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid var(--border-color);
}
.privacy-footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}
.privacy-footer-icon {
    font-size: 1.5rem;
    color: var(--blue);
    flex-shrink: 0;
}

/* Premium Role Styling and Logout Button in Header */
.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--rose) !important;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.btn-logout:hover {
    background: var(--rose);
    color: #fff !important;
    box-shadow: 0 0 12px var(--rose-glow);
    transform: translateY(-1px);
}

/* Pseudo-icons on Role Tags */
.role-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.role-tag.role-god::after {
    content: "\f0e7"; /* Bolt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.role-tag.role-pro::after {
    content: "\f521"; /* Crown */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}
.role-tag.role-plus::after {
    content: "\f005"; /* Star */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* Premium Border and Glow for Avatars based on Role */
.profile-avatar.role-basic {
    border: 2px solid var(--text-muted) !important;
    box-shadow: none !important;
}
.profile-avatar.role-plus {
    border: 3px solid var(--blue) !important;
    box-shadow: 0 0 15px var(--blue-glow) !important;
}
.profile-avatar.role-pro {
    border: 3px solid var(--amber) !important;
    box-shadow: 0 0 20px var(--amber-glow) !important;
}
.profile-avatar.role-god {
    border: 3px solid transparent !important;
    background: linear-gradient(var(--bg-card-solid), var(--bg-card-solid)) padding-box, linear-gradient(135deg, var(--purple), #ec4899) border-box !important;
    box-shadow: 0 0 25px var(--purple-glow) !important;
}

/* Conic Gradient customization for dashboard ring */
.google-avatar-ring.role-basic {
    background: var(--text-muted);
    box-shadow: none;
}
.google-avatar-ring.role-plus {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}
.google-avatar-ring.role-pro {
    background: linear-gradient(135deg, #f59e0b, #fbbf24, #d97706);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    animation: borderGlowPro 4s infinite alternate;
}
.google-avatar-ring.role-god {
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #3b82f6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.6);
    animation: borderGlowGod 3s infinite alternate;
}

@keyframes borderGlowPro {
    0% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.4); }
    100% { box-shadow: 0 0 30px rgba(245, 158, 11, 0.7); }
}
@keyframes borderGlowGod {
    0% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.5); transform: scale(1); }
    100% { box-shadow: 0 0 35px rgba(139, 92, 246, 0.8); transform: scale(1.02); }
}

