/* ===================================================
   AURA BACKEND PORTAL — Modern Premium Dark Theme
   =================================================== */

:root {
    --bg-primary: #0e0e12;
    --bg-secondary: #151519;
    --bg-card: #1a1a22;
    --bg-card-hover: #1f1f29;
    --bg-input: #151519;
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-strong: rgba(255, 255, 255, 0.05);
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.09);
    --border-focus: rgba(129, 140, 248, 0.5);
    --text-primary: #EEEEF0;
    --text-secondary: #A1A1AA;
    --text-muted: #6E6E78;
    
    --accent-indigo: #818CF8;
    --accent-indigo-bg: rgba(129, 140, 248, 0.12);
    --accent-indigo-glow: rgba(129, 140, 248, 0.08);
    
    --accent-cyan: #22D3EE;
    --accent-cyan-bg: rgba(34, 211, 238, 0.12);
    
    --accent-emerald: #34D399;
    --accent-emerald-bg: rgba(52, 211, 153, 0.12);
    --accent-emerald-glow: rgba(52, 211, 153, 0.08);
    
    --accent-amber: #FBBF24;
    --accent-amber-bg: rgba(251, 191, 36, 0.12);
    --accent-amber-glow: rgba(251, 191, 36, 0.08);
    
    --accent-purple: #C084FC;
    --accent-purple-bg: rgba(192, 132, 252, 0.12);
    
    --accent-rose: #FB7185;
    --accent-rose-bg: rgba(251, 113, 133, 0.12);
    --accent-rose-glow: rgba(251, 113, 133, 0.08);

    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-glow: 0 0 40px -8px rgba(129, 140, 248, 0.2);
    --shadow-depth: 0 20px 60px -15px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.25s ease;
    --glass-blur: blur(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Outfit', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

.hidden { display: none !important; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.12); }

/* ==================== LOGIN SCREEN ==================== */
.login-screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent);
    top: -200px;
    left: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent);
    bottom: -150px;
    right: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.2), transparent);
    top: 50%;
    left: 60%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 35px) scale(1.02); }
}

.login-card {
    width: 100%;
    max-width: 440px;
    background: rgba(14, 14, 24, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    padding: 3rem;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-depth), inset 0 1px 0 rgba(255,255,255,0.04);
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.login-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-indigo), var(--accent-cyan), var(--accent-purple), transparent);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    opacity: 0.8;
}

.login-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-indigo), #818cf8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-title {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--accent-indigo);
    text-transform: uppercase;
    margin-top: -2px;
}

.login-tagline {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group label {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    margin-left: 0.25rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-wrapper input:focus {
    border-color: var(--border-focus);
    background: rgba(99, 102, 241, 0.05);
    box-shadow: 0 0 0 4px var(--accent-indigo-glow);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--accent-indigo);
}

#login-btn {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent-indigo), #818cf8);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.35);
    margin-top: 0.5rem;
}

#login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -4px rgba(99, 102, 241, 0.5);
}

#login-btn:active {
    transform: translateY(0) scale(0.98);
}

#login-btn .btn-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

#login-btn:hover .btn-icon {
    transform: translateX(4px);
}

.login-error {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-rose);
    background: var(--accent-rose-glow);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

.login-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.login-footer span {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    white-space: nowrap;
}

.footer-line {
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

/* ==================== DASHBOARD ==================== */
.dashboard-screen {
    display: flex;
    width: 100vw;
    height: 100vh;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Sidebar ---- */
.sidebar {
    width: 250px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    position: relative;
}

.sidebar-header {
    margin-bottom: 2.5rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6366F1, #818CF8, #A78BFA);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px -4px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.sidebar-logo-icon i { width: 20px; height: 20px; }

.sidebar-brand {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--text-primary);
}

.sidebar-brand-sub {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-section-label {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    margin-left: 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    width: 100%;
    text-align: left;
}

.sidebar-link i { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: rgba(129, 140, 248, 0.1);
    color: var(--accent-indigo);
    border-color: transparent;
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: var(--accent-indigo);
    border-radius: 0 3px 3px 0;
}

/* Sidebar footer */
.sidebar-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
}

.admin-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo);
}

.admin-avatar i { width: 16px; height: 16px; }

.admin-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-role {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    text-align: left;
}

.logout-btn i { width: 16px; height: 16px; }

.logout-btn:hover {
    background: var(--accent-rose-glow);
    color: var(--accent-rose);
    border-color: rgba(244, 63, 94, 0.15);
}

/* ---- Main Content ---- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.25rem;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.15rem;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.status-pill.online {
    background: rgba(52, 211, 153, 0.1);
    color: var(--accent-emerald);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-emerald);
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.view-container {
    flex: 1;
}

/* ==================== STAT CARDS GRID ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    transition: background 0.4s ease;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(129, 140, 248, 0.15);
    box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255,255,255,0.04);
}

.stat-card:hover::before {
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-smooth);
}

.stat-card:hover .stat-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card-icon i { width: 22px; height: 22px; }

.stat-card-icon.indigo { background: var(--accent-indigo-glow); color: var(--accent-indigo); }
.stat-card-icon.emerald { background: var(--accent-emerald-glow); color: var(--accent-emerald); }
.stat-card-icon.rose { background: var(--accent-rose-glow); color: var(--accent-rose); }
.stat-card-icon.amber { background: var(--accent-amber-glow); color: var(--accent-amber); }
.stat-card-icon.cyan { background: var(--accent-cyan-glow); color: var(--accent-cyan); }

.stat-card-value {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

/* ==================== SECTION PANELS ==================== */
.section-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.section-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-panel-title {
    font-size: 1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.section-panel-title i {
    width: 18px;
    height: 18px;
    color: var(--accent-indigo);
}

/* ==================== ENDPOINT TABLE ==================== */
.endpoint-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.endpoint-table th {
    padding: 0.75rem 1.25rem;
    text-align: left;
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.endpoint-table td {
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    font-size: 0.85rem;
    font-weight: 600;
}

.endpoint-table tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.endpoint-table tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.method-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.method-badge.get { background: var(--accent-emerald-glow); color: var(--accent-emerald); }
.method-badge.delete { background: var(--accent-rose-glow); color: var(--accent-rose); }
.method-badge.post { background: var(--accent-amber-glow); color: var(--accent-amber); }

.endpoint-path {
    font-family: 'Courier New', monospace;
    color: var(--accent-cyan);
    font-weight: 700;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--accent-amber-glow);
    color: var(--accent-amber);
}

.auth-badge.none {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

.auth-badge i { width: 12px; height: 12px; }

/* ==================== LOG ENTRIES ==================== */
.log-entry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.log-entry:hover {
    background: var(--bg-card-hover);
}

.log-time {
    color: var(--text-muted);
    font-size: 0.7rem;
    white-space: nowrap;
    min-width: 70px;
}

.log-level {
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    min-width: 45px;
    text-align: center;
}

.log-level.info { background: var(--accent-indigo-glow); color: var(--accent-indigo); }
.log-level.success { background: var(--accent-emerald-glow); color: var(--accent-emerald); }
.log-level.warn { background: var(--accent-amber-glow); color: var(--accent-amber); }
.log-level.error { background: var(--accent-rose-glow); color: var(--accent-rose); }

.log-message { flex: 1; line-height: 1.4; }

/* ==================== FIREBASE STATUS ==================== */
.firebase-service {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    margin-bottom: 0.75rem;
    transition: var(--transition-smooth);
}

.firebase-service:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.firebase-service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.firebase-service-icon i { width: 20px; height: 20px; }

.firebase-service-info { flex: 1; }

.firebase-service-name {
    font-size: 0.9rem;
    font-weight: 700;
}

.firebase-service-desc {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.firebase-service-status {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
}

.firebase-service-status.active {
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
}

/* ==================== SECURITY VIEW ==================== */
.security-rule {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-input);
    margin-bottom: 0.75rem;
}

.security-rule-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--accent-emerald-glow);
    color: var(--accent-emerald);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.security-rule-icon i { width: 16px; height: 16px; }

.security-rule-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.security-rule-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==================== PLATFORM STAT ITEMS ==================== */
.platform-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.platform-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    transition: var(--transition-smooth);
    cursor: default;
}

.platform-stat-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass);
}

.platform-stat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 1rem;
}

.platform-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.platform-stat-icon i { width: 17px; height: 17px; }

.platform-stat-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.platform-stat-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1;
}

/* Clean white values */
.val-indigo, .val-cyan, .val-emerald, .val-amber, .val-purple, .val-rose { color: var(--text-primary); }

/* Icon backgrounds */
.bg-indigo { background: rgba(129, 140, 248, 0.12); color: #818CF8; }
.bg-cyan { background: rgba(34, 211, 238, 0.12); color: #22D3EE; }
.bg-emerald { background: rgba(52, 211, 153, 0.12); color: #34D399; }
.bg-amber { background: rgba(251, 191, 36, 0.12); color: #FBBF24; }
.bg-purple { background: rgba(192, 132, 252, 0.12); color: #C084FC; }
.bg-rose { background: rgba(251, 113, 133, 0.12); color: #FB7185; }

/* ==================== USER MANAGEMENT MODULE ==================== */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    width: 300px;
    max-width: 100%;
    transition: border-color 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--accent-indigo);
}

.search-box i {
    color: var(--text-muted);
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 100%;
    font-size: 0.85rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-refresh {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-refresh:active i {
    transform: rotate(180deg);
}

.btn-refresh i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.filter-select {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    border-color: var(--accent-indigo);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.date-picker {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 0.85rem;
}

.user-list-container {
    background: rgba(14, 14, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-card);
    position: relative;
}

.user-list-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.user-table th {
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}

.user-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.9rem;
    vertical-align: middle;
}

.user-table tr:last-child td {
    border-bottom: none;
}

.user-table tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.user-id {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.btn-delete {
    background: rgba(251, 113, 133, 0.1);
    color: #FB7185;
    border: 1px solid rgba(251, 113, 133, 0.2);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.2s ease;
}

.btn-delete:hover {
    background: rgba(251, 113, 133, 0.2);
}

/* ==================== USER PROFILE VIEW ==================== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
    padding: 0;
}

.back-btn:hover {
    color: var(--text-primary);
}

.profile-card {
    background: rgba(14, 14, 24, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: flex-start;
    box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.04);
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,140,248,0.2), rgba(192,132,252,0.15), transparent);
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.profile-avatar-large i {
    width: 40px;
    height: 40px;
}

.profile-title {
    text-align: center;
}

.profile-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}

.uid-badge {
    display: inline-block;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}

.profile-details-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem 2rem;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.profile-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.profile-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-value i {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.goal-badge {
    background: rgba(56, 189, 248, 0.1);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}

/* ==================== TABS ==================== */
.profile-tabs-wrapper {
    margin-top: 2rem;
}

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.profile-tabs::-webkit-scrollbar {
    height: 4px;
}
.profile-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    white-space: nowrap;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.08);
    box-shadow: 0 0 16px -4px rgba(129,140,248,0.15);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-purple));
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(129, 140, 248, 0.3);
}

.profile-tab-content {
    padding: 2rem 0;
    animation: fadeIn 0.3s ease;
}

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

/* ==================== TASKS TAB ==================== */
.tab-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(14, 14, 24, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}

.custom-date-picker {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.custom-date-picker input[type="date"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    outline: none;
    font-family: inherit;
}

.custom-date-picker input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: rgba(14, 14, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.task-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}

.task-card:hover {
    background: rgba(20, 20, 36, 0.5);
    border-color: rgba(129, 140, 248, 0.12);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4), 0 0 20px -8px rgba(129,140,248,0.08);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.task-card.completed .task-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.task-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.task-badges {
    display: flex;
    gap: 0.5rem;
}

.task-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.badge-urgent {
    background: rgba(251, 113, 133, 0.15);
    color: #FB7185;
}

.badge-important {
    background: rgba(250, 204, 21, 0.15);
    color: #FACC15;
}

.completion-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.task-card.completed .completion-marker {
    background: rgba(74, 222, 128, 0.2);
    color: #4ADE80;
}

.task-card:not(.completed) .completion-marker {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: transparent;
}

/* ==================== PROJECTS & NOTES ==================== */
.tab-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    width: 250px;
    gap: 0.5rem;
}

.tab-search i {
    color: var(--text-muted);
}

.tab-search input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 0.85rem;
}

.project-card {
    background: rgba(14, 14, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(129, 140, 248, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -6px rgba(0,0,0,0.3);
}

.project-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.project-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.project-notes-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0,0,0,0.1);
    flex: 1;
}

.nested-note-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nested-note-icon {
    color: var(--text-muted);
}

.nested-note-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

/* Standalone Notes */
.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.note-card {
    background: rgba(14, 14, 24, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.note-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(250,204,21,0.1), transparent);
}

.note-card:hover {
    transform: translateY(-3px);
    border-color: rgba(250,204,21,0.12);
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.4), 0 0 20px -8px rgba(250,204,21,0.06);
}

.note-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.note-icon {
    color: #FACC15; /* Yellowish for notes */
    flex-shrink: 0;
}

.note-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.note-preview {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.note-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 4, 10, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(14, 14, 24, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    width: 400px;
    max-width: 90%;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-depth), inset 0 1px 0 rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(129,140,248,0.2), transparent);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(251, 113, 133, 0.1);
    color: #FB7185;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
}

.modal-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cancel:hover { background: rgba(255, 255, 255, 0.1); }

.btn-confirm-delete {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: #FB7185;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-confirm-delete:hover { opacity: 0.9; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .platform-stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .platform-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { padding: 1.5rem; }
    .main-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .endpoint-table { font-size: 0.75rem; }
}
@media (max-width: 640px) {
    .platform-stats-grid { grid-template-columns: 1fr; }
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2.5px solid rgba(255,255,255,0.06);
    border-top: 2.5px solid var(--accent-indigo);
    border-radius: 50%;
    animation: spinGlow 0.8s linear infinite;
}

@keyframes spinGlow {
    to { transform: rotate(360deg); }
}

/* ==================== PREMIUM GLASSMORPHIC UTILITIES ==================== */
.glass-panel {
    background: rgba(14, 14, 24, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    position: relative;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    pointer-events: none;
}

/* Subtle pulse glow for active indicators */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(129, 140, 248, 0.2); }
    50% { box-shadow: 0 0 16px rgba(129, 140, 248, 0.35); }
}

/* Note full-content styling inside modals */
.note-full-content h1,
.note-full-content h2,
.note-full-content h3 {
    color: var(--text-primary);
    margin: 1rem 0 0.5rem 0;
}

.note-full-content p {
    margin-bottom: 0.75rem;
}

.note-full-content ul,
.note-full-content ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.note-full-content a {
    color: var(--accent-indigo);
    text-decoration: none;
}

.note-full-content a:hover {
    text-decoration: underline;
}

/* ==================== BLOG CMS STYLES ==================== */
.blog-editor-body:empty::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,0.12);
  pointer-events: none;
  position: absolute;
}
.blog-editor-body h1 { font-size: 2.25rem; font-weight: 900; color: #fff; margin: 2rem 0 1rem; line-height: 1.15; }
.blog-editor-body h2 { font-size: 1.75rem; font-weight: 700; color: #fff; margin: 1.75rem 0 0.75rem; }
.blog-editor-body h3 { font-size: 1.35rem; font-weight: 600; color: #e5e7eb; margin: 1.5rem 0 0.5rem; }
.blog-editor-body p  { margin-bottom: 1.25rem; }
.blog-editor-body p:last-child { margin-bottom: 0; }
.blog-editor-body strong, .blog-editor-body b { font-weight: 700; color: #fff; }
.blog-editor-body em, .blog-editor-body i { font-style: italic; color: #d1d5db; }
.blog-editor-body a  { color: #f97316; text-decoration: none; }
.blog-editor-body a:hover { text-decoration: underline; }
.blog-editor-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 2rem 0; }
.blog-editor-body img { max-width: 100%; border-radius: 1rem; margin: 1.5rem 0; }
.blog-editor-body figure { margin: 2rem 0; }
.blog-editor-body figcaption { text-align: center; font-size: 0.75rem; color: #6b7280; margin-top: 0.5rem; }
.blog-editor-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-editor-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-editor-body li { margin-bottom: 0.35rem; }
.blog-editor-body blockquote {
  border-left: 3px solid #f97316;
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: #9ca3af;
  font-style: italic;
  background: rgba(249,115,22,0.04);
  border-radius: 0 0.75rem 0.75rem 0;
}

.blog-title-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(255,255,255,0.12);
  pointer-events: none;
}

/* Floating Toolbar */
.floating-toolbar {
    position: absolute;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-lg);
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
}

.floating-toolbar button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.floating-toolbar button:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.floating-toolbar .toolbar-divider {
    width: 1px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.25rem;
}

/* Plus Block Menu */
.block-insert-menu {
    position: absolute;
    left: 2rem;
    z-index: 50;
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    padding: 0.5rem;
    width: 200px;
}

.block-insert-menu button, .block-insert-menu label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-family: monospace;
    cursor: pointer;
    transition: all 0.2s ease;
}

.block-insert-menu button:hover, .block-insert-menu label:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.content-sidebar {
    width: 280px;
    margin-left: 1.5rem;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.content-sidebar.hidden-sidebar {
    width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0;
}
