/* ==========================================================================
   PAWCLAW - CORE STYLESHEET (COMPLETE PREMIUM EDITION)
   Aesthetics: Premium Futuristic Dark Mode / Glassmorphism / Neon Accents
   ========================================================================== */

/* Modern Font Reset and Variables */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-display: 'Outfit', var(--font-primary);
    
    /* Premium Color Palette */
    --bg-main: #070612;
    --bg-card: rgba(14, 12, 32, 0.6);
    --border-card: rgba(255, 255, 255, 0.04);
    --border-card-hover: rgba(255, 255, 255, 0.09);
    
    /* Accent Colors */
    --color-purple: #8a3ffc;
    --color-purple-glow: rgba(138, 63, 252, 0.4);
    --color-purple-gradient: linear-gradient(135deg, #8a3ffc, #5c1bb5);
    
    --color-green: #00e676;
    --color-green-glow: rgba(0, 230, 118, 0.35);
    --color-green-gradient: linear-gradient(135deg, #00e676, #00b0ff);
    
    --color-yellow: #ffb300;
    --color-yellow-glow: rgba(255, 179, 0, 0.35);
    --color-yellow-gradient: linear-gradient(135deg, #ffb300, #ff6f00);
    
    --color-blue: #00b0ff;
    --color-blue-glow: rgba(0, 176, 255, 0.3);
    --color-blue-gradient: linear-gradient(135deg, #00b0ff, #0081cb);
    
    --color-red: #ff3366;
    --color-red-glow: rgba(255, 51, 102, 0.35);
    
    /* Text Colors */
    --text-primary: #f5f5fa;
    --text-secondary: #8e8dbe;
    --text-muted: #5d5c80;
    
    /* Core Layout metrics */
    --sidebar-width: 260px;
    --border-radius-lg: 16px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(138, 63, 252, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 5, 18, 1) 0%, rgba(3, 2, 8, 1) 100%);
    background-attachment: fixed;
    line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   APP LAYOUT CONTAINER
   ========================================================================== */
.app-container {
    display: flex;
    max-width: 1500px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* ==========================================================================
   SIDEBAR (LEFT)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    background: rgba(10, 8, 24, 0.7);
    border-right: 1px solid var(--border-card);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    left: calc((100vw - 1500px) / 2);
    top: 0;
    z-index: 100;
    backdrop-filter: blur(25px);
}
@media (max-width: 1500px) {
    .sidebar {
        left: 0;
    }
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-left: 6px;
}
.brand .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--color-purple-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px var(--color-purple-glow);
}
.brand .logo-icon svg {
    width: 20px;
    height: 20px;
}
.brand .brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.brand .brand-version {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    cursor: pointer;
}
.nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}
.nav-item.active {
    background: linear-gradient(135deg, rgba(138, 63, 252, 0.15), rgba(92, 27, 181, 0.03));
    border: 1px solid rgba(138, 63, 252, 0.25);
    color: #fff;
    box-shadow: inset 0 0 12px rgba(138, 63, 252, 0.05);
}
.nav-item .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-item .nav-icon svg {
    width: 18px;
    height: 18px;
}
.nav-item.active .nav-icon {
    color: #b388ff;
    filter: drop-shadow(0 0 4px rgba(179, 136, 255, 0.5));
}

.sidebar-quote {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.sidebar-quote .quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(138, 63, 252, 0.12);
    position: absolute;
    top: -5px;
    left: 8px;
    line-height: 1;
}
.sidebar-quote .quote-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}
.sidebar-quote .quote-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: right;
}

.progress-radial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    text-align: center;
}
.card-mini-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.radial-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px auto;
}
.circular-chart {
    display: block;
    max-width: 100%;
    max-height: 100%;
}
.circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 2.8;
}
.circle {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.5s ease;
}
.circular-chart.green .circle {
    stroke: var(--color-green);
    filter: drop-shadow(0 0 4px var(--color-green-glow));
}
.percentage {
    fill: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 8px;
    text-anchor: middle;
}
.progress-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   MAIN DASHBOARD CONTENT & TOP BAR
   ========================================================================== */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 32px 40px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}
.app-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.app-title-group .title-logo {
    width: 44px;
    height: 44px;
    background: rgba(138, 63, 252, 0.08);
    border: 1px solid rgba(138, 63, 252, 0.2);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
}
.app-title-group .title-logo svg {
    width: 24px;
    height: 24px;
}
.app-title-group h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}
.app-title-group .subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.user-stats-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.streak-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 111, 0, 0.08);
    border: 1px solid rgba(255, 111, 0, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
}
.streak-icon {
    font-size: 1.1rem;
    animation: flame-flicker 1.5s infinite alternate;
}
.streak-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: #ffa726;
}
.streak-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 12px rgba(138, 63, 252, 0.2);
}
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==========================================================================
   TAB VIEW ROUTER STYLES
   ========================================================================== */
.tab-view {
    display: none;
    animation: fadeInView 0.4s ease-out forwards;
}
.tab-view.active {
    display: block;
}
.tab-header {
    margin-bottom: 24px;
}
.tab-header h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}
.tab-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

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

/* ==========================================================================
   DASHBOARD GRID & ALERT BANNERS
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    margin-bottom: 24px;
}

.bug-tracker-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 24px;
    margin-bottom: 24px;
}

.alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 0.82rem;
    line-height: 1.45;
    animation: slideDownBanner 0.4s ease-out forwards;
}
.warning-banner {
    background: rgba(255, 111, 0, 0.12);
    border: 1px solid rgba(255, 111, 0, 0.35);
    color: #ffa726;
    box-shadow: 0 0 16px rgba(255, 111, 0, 0.08);
}
.alert-icon {
    font-size: 1.15rem;
}

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

.left-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
}
.stat-card:hover {
    border-color: var(--border-card-hover);
    transform: translateY(-2px);
    background: rgba(18, 16, 36, 0.6);
}
.stat-info {
    display: flex;
    flex-direction: column;
}
.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.stat-value {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
}
.stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.stat-status-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-status-icon svg {
    width: 18px;
    height: 18px;
}
.stat-status-icon.success {
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.2);
    color: var(--color-green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.1);
}
.stat-status-icon.warning {
    background: rgba(255, 179, 0, 0.08);
    border: 1px solid rgba(255, 179, 0, 0.2);
    color: var(--color-yellow);
    box-shadow: 0 0 12px rgba(255, 179, 0, 0.1);
}
.stat-status-icon.purple {
    background: rgba(138, 63, 252, 0.08);
    border: 1px solid rgba(138, 63, 252, 0.2);
    color: #b388ff;
    box-shadow: 0 0 12px rgba(138, 63, 252, 0.15);
}
.stat-status-icon.info {
    background: rgba(0, 176, 255, 0.08);
    border: 1px solid rgba(0, 176, 255, 0.2);
    color: var(--color-blue);
    box-shadow: 0 0 12px rgba(0, 176, 255, 0.1);
}

.pulse {
    animation: element-pulse 2s infinite alternate;
}
.spinner {
    animation: spin 3s linear infinite;
}

/* ==========================================================================
   THE STACK LIST & TIMELINE
   ========================================================================== */
.stack-section {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: relative;
}
.stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}
.section-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: var(--border-radius-md);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.stack-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    padding-left: 10px;
}

.stack-item {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    transition: var(--transition-smooth);
    animation: slideUpItem 0.4s ease-out forwards;
}
.stack-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(4px);
}

/* Dynamic completion dopamine sliding animations */
.stack-item.pop-dopamine-slide {
    animation: popDopamine 0.6s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes popDopamine {
    0% { transform: translate(0, 0) scale(1); opacity: 1; border-color: var(--color-green); box-shadow: 0 0 20px var(--color-green-glow); }
    30% { transform: translate(12px, -8px) scale(1.02); opacity: 1; }
    100% { transform: translate(120px, 80px) scale(0.85); opacity: 0; filter: blur(4px); }
}

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

.stack-item-indicator {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    position: relative;
    flex-shrink: 0;
    z-index: 10;
}
.chapter-number {
    position: relative;
    z-index: 5;
}

.in-progress-glow {
    border: 1.5px solid rgba(255, 179, 0, 0.4);
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.08);
    background: rgba(255, 179, 0, 0.02);
}
.warning-glow {
    background: var(--color-yellow-gradient);
    color: #000;
    box-shadow: 0 0 16px rgba(255, 179, 0, 0.35);
}

.normal-indicator {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}
.stack-layer {
    position: absolute;
    width: calc(100% - 6px);
    height: 6px;
    border-radius: 4px;
    left: 3px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: -1;
}
.layer1 {
    bottom: -6px;
    width: calc(100% - 10px);
    left: 5px;
    opacity: 0.7;
}
.layer2 {
    bottom: -11px;
    width: calc(100% - 16px);
    left: 8px;
    opacity: 0.4;
}

.completed-stack-glow {
    border: 1px solid rgba(0, 230, 118, 0.25);
    background: rgba(0, 230, 118, 0.02);
}
.success-glow {
    background: rgba(0, 230, 118, 0.1);
    border: 1.5px solid var(--color-green);
    color: var(--color-green);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
}
.check-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.stack-item-content {
    flex-grow: 1;
}
.stack-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.subject-tag {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 2px 8px;
    border-radius: 4px;
}
.yellow-tag {
    background: rgba(255, 179, 0, 0.12);
    color: var(--color-yellow);
    border: 1px solid rgba(255, 179, 0, 0.15);
}
.grey-tag {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.green-tag {
    background: rgba(0, 230, 118, 0.1);
    color: var(--color-green);
    border: 1px solid rgba(0, 230, 118, 0.15);
}
.info-tag {
    background: rgba(0, 176, 255, 0.1);
    color: var(--color-blue);
    border: 1px solid rgba(0, 176, 255, 0.15);
}

.status-indicator {
    font-size: 0.72rem;
    font-weight: 600;
}
.yellow-text {
    color: var(--color-yellow);
    animation: soft-pulse 1.5s infinite alternate;
}
.completed-badge-tag {
    font-size: 0.68rem;
    font-weight: 600;
}
.green-outline-tag {
    border: 1px solid rgba(0, 230, 118, 0.3);
    color: var(--color-green);
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 230, 118, 0.04);
}

.difficulty-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}
.red-badge {
    background: rgba(255, 51, 102, 0.12);
    color: var(--color-red);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

.chapter-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}
.chapter-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.text-glow-yellow {
    text-shadow: 0 0 10px rgba(255, 179, 0, 0.25);
}

.stack-item-action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.stack-item-action.icon-only {
    color: var(--text-muted);
}
.doc-icon {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}
.stack-item:hover .doc-icon {
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--color-yellow-gradient);
    border: none;
    outline: none;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px var(--color-yellow-glow);
}
.btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 18px rgba(255, 179, 0, 0.45);
}
.play-icon {
    font-size: 0.75rem;
}

.completed-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stack-connector {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 33px;
}
.connector-line {
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
}
.stack-item.in-progress-glow + .stack-connector .connector-line {
    background: linear-gradient(to bottom, var(--color-yellow), rgba(255, 255, 255, 0.08));
}
.stack-connector.dotted {
    padding-left: 34px;
}
.connector-line.dots {
    width: 2px;
    height: 36px;
    border-left: 2px dotted rgba(255, 255, 255, 0.15);
    background: none;
}

.current-label {
    position: absolute;
    left: 28px;
    top: -12px;
    background: rgba(255, 179, 0, 0.15);
    border: 1px solid rgba(255, 179, 0, 0.3);
    color: var(--color-yellow);
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    z-index: 15;
}

.stack-footer-note {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
    font-style: italic;
    opacity: 0.85;
}

/* ==========================================================================
   RIGHT COLUMN SIDEBAR WIDGETS
   ========================================================================== */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.widget-card.full-width {
    grid-column: 1 / -1;
}

.current-mission-card {
    border: 1.2px solid rgba(255, 179, 0, 0.25);
    box-shadow: 0 4px 20px rgba(255, 179, 0, 0.04);
}
.card-glow-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-yellow-gradient);
}

.widget-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 20px;
}
.mission-subject {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}
.mission-chapter {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.mission-meta {
    margin-bottom: 16px;
}
.meta-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.meta-value {
    font-size: 0.85rem;
    color: var(--color-yellow);
    font-weight: 600;
}
.text-white {
    color: #fff !important;
    font-weight: 500;
}

/* Progress bar styles */
.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    position: relative;
    margin-top: 24px;
    display: flex;
    align-items: center;
}
.progress-bar-container.mini {
    flex-grow: 1;
    margin-top: 0;
    height: 4px;
}
.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-bar.yellow {
    background: var(--color-yellow-gradient);
    box-shadow: 0 0 8px var(--color-yellow-glow);
}
.progress-bar.purple {
    background: var(--color-purple-gradient);
    box-shadow: 0 0 8px var(--color-purple-glow);
}
.progress-bar.green {
    background: var(--color-green-gradient);
    box-shadow: 0 0 8px var(--color-green-glow);
}
.progress-bar.info {
    background: var(--color-blue-gradient);
    box-shadow: 0 0 8px var(--color-blue-glow);
}
.progress-percent {
    position: absolute;
    right: 0;
    top: -18px;
    font-size: 0.78rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
}

.milestone-details {
    text-align: center;
}
.trophy-container {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px auto;
    position: relative;
    border-radius: 50%;
    background: rgba(138, 63, 252, 0.1);
    border: 1px solid rgba(138, 63, 252, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(138, 63, 252, 0.1);
    animation: floating 3s ease-in-out infinite;
}
.milestone-trophy {
    width: 80%;
    height: 80%;
    object-fit: contain;
    border-radius: 50%;
}
.milestone-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.milestone-subtitle {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.milestone-footer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 12px;
}

/* ==========================================================================
   DASHBOARD VISUAL SUBPAGE STYLES
   ========================================================================== */
.dashboard-grid-visual {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.grid-sub-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.chart-container {
    padding: 12px 0;
}
.svg-chart {
    width: 100%;
    height: 100%;
    display: block;
}
.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}
.badge-level-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-purple-gradient);
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 20px var(--color-purple-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.2rem;
    color: #fff;
}
.velocity-stat {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin-top: 12px;
}
.velocity-unit {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.mt-12 {
    margin-top: 12px;
}

/* ==========================================================================
   BUG TRACKER STYLING
   ========================================================================== */
.form-row {
    margin-bottom: 12px;
}
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    outline: none;
    resize: none;
    transition: var(--transition-fast);
}
textarea:focus {
    border-color: rgba(138, 63, 252, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 8px rgba(138, 63, 252, 0.2);
}

.bug-log-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--border-radius-md);
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
    animation: slideUpItem 0.3s ease-out forwards;
    transition: var(--transition-fast);
}
.bug-log-card:hover {
    border-color: rgba(138, 63, 252, 0.25);
    background: rgba(255, 255, 255, 0.03);
}
.bug-log-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.bug-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
}
.bug-tag.conceptual {
    background: rgba(255, 51, 102, 0.12);
    color: var(--color-red);
    border: 1px solid rgba(255, 51, 102, 0.2);
}
.bug-tag.calculation {
    background: rgba(255, 179, 0, 0.12);
    color: var(--color-yellow);
    border: 1px solid rgba(255, 179, 0, 0.2);
}
.bug-tag.memory {
    background: rgba(0, 176, 255, 0.12);
    color: var(--color-blue);
    border: 1px solid rgba(0, 176, 255, 0.2);
}
.bug-tag.perfect-score {
    background: rgba(0, 230, 118, 0.12);
    color: var(--color-green);
    border: 1px solid rgba(0, 230, 118, 0.2);
}
.bug-title-subject {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
}
.bug-desc-text {
    font-size: 0.82rem;
    color: #fff;
    margin-bottom: 8px;
}
.bug-code-block {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 8px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.78rem;
    color: #a78bfa;
    margin-bottom: 8px;
    overflow-x: auto;
}
.bug-ai-feedback {
    background: rgba(138, 63, 252, 0.04);
    border-left: 3px solid var(--color-purple);
    padding: 6px 10px;
    border-radius: 0 6px 6px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SPACED REPETITION SCHEDULED ITEM CARD
   ========================================================================== */
.scheduled-review-item {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-fast);
}
.scheduled-review-item:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.06);
}
.review-item-details {
    display: flex;
    flex-direction: column;
}
.review-item-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.review-item-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.review-item-badge {
    font-size: 0.65rem;
    background: rgba(138,63,252,0.12);
    color: #b388ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(138,63,252,0.2);
}

/* ==========================================================================
   CALENDAR STYLES
   ========================================================================== */
.calendar-wrapper {
    max-width: 500px;
    margin: 0 auto;
}
.calendar-header-mini {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.calendar-header-mini h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #fff;
}
.calendar-header-mini span {
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 10px;
    user-select: none;
}
.calendar-grid-cells {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.cell-day {
    padding: 10px 0;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    color: var(--text-secondary);
    position: relative;
    cursor: pointer;
    transition: var(--transition-fast);
}
.cell-day:hover:not(.head):not(.disabled) {
    background: rgba(255,255,255,0.03);
    color: #fff;
}
.cell-day.head {
    font-weight: 700;
    color: var(--text-muted);
    cursor: default;
}
.cell-day.disabled {
    color: var(--text-muted);
    opacity: 0.15;
    cursor: default;
}
.cell-day.streak-dot::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-purple);
    border-radius: 50%;
    bottom: 2px;
    left: calc(50% - 2px);
}
.cell-day.review-cell-dot::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-green);
    border-radius: 50%;
    bottom: 2px;
    left: calc(50% - 2px);
}
.cell-day.bug-cell-dot::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-red);
    border-radius: 50%;
    bottom: 2px;
    left: calc(50% - 2px);
}
.cell-day.active-streak {
    background: rgba(138, 63, 252, 0.12);
    border: 1px solid rgba(138, 63, 252, 0.2);
    color: #fff;
}
.cell-day.current-day {
    background: var(--color-purple-gradient);
    color: #fff;
    box-shadow: 0 0 10px var(--color-purple-glow);
}

/* ==========================================================================
   SUBJECTS STYLES
   ========================================================================== */
.subjects-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.subject-card-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}
.subject-progress-info {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ACHIEVEMENTS STYLES
   ========================================================================== */
.achievements-list-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.achievement-item-card {
    display: flex;
    align-items: center;
    gap: 20px;
}
.achievement-item-card .ach-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-card);
}
.achievement-item-card.unlocked .ach-icon {
    background: rgba(0, 230, 118, 0.08);
    border-color: rgba(0, 230, 118, 0.2);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.1);
}
.achievement-item-card.locked {
    opacity: 0.55;
}
.achievement-item-card h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #fff;
}
.achievement-item-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   FOCUS TIMER STYLES
   ========================================================================== */
.timer-center-block {
    text-align: center;
    max-width: 320px;
    margin: 20px auto;
}
.timer-display-ring {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 24px auto;
}
.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.03);
    stroke-width: 4;
}
.ring-fg {
    fill: none;
    stroke-width: 4;
    stroke: var(--color-purple);
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}
.timer-readout {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}
.timer-controls-row {
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   SETTINGS STYLES
   ========================================================================== */
.settings-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.setting-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding-bottom: 12px;
}
.setting-toggle-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.setting-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.08);
    transition: 0.3s;
    border-radius: 34px;
}
.slider-round:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: 0.3s;
    border-radius: 50%;
}
.switch-toggle input:checked + .slider-round {
    background-color: var(--color-purple);
}
.switch-toggle input:checked + .slider-round:before {
    transform: translateX(20px);
}

/* ==========================================================================
   SPEECH RECOGNITION ELEMENTS
   ========================================================================== */
.recording-status-dot {
    color: var(--color-red);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: flashStatus 1s infinite alternate;
}
@keyframes flashStatus {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* ==========================================================================
   COLLEGE LOCKOUT MODE OVERLAYS
   ========================================================================== */
body.college-mode-active {
    background-color: #030206;
}
body.college-mode-active .sidebar,
body.college-mode-active .celebration-banner,
body.college-mode-active .nav-menu {
    filter: grayscale(1) opacity(0.3);
    pointer-events: none;
}
body.college-mode-active .nav-menu a:not([data-tab="bugs"]):not([data-tab="settings"]) {
    display: none;
}
body.college-mode-active #btn-add-stack {
    display: none;
}

/* ==========================================================================
   SPRINT CHECKBOX & WIDGET CARD STYLES
   ========================================================================== */
.sprint-checkbox-row {
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 2px 4px;
    border-radius: 4px;
}
.sprint-checkbox-row:hover {
    background: rgba(255,255,255,0.02);
    color: #fff;
}
.sprint-checkbox-row input {
    accent-color: var(--color-purple);
}

/* ==========================================================================
   BOTTOM CELEBRATION BANNER
   ========================================================================== */
.celebration-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 8, 25, 0.8) 0%, rgba(18, 14, 38, 0.8) 100%);
    border: 1.5px solid rgba(0, 230, 118, 0.2);
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 230, 118, 0.05),
        inset 0 0 24px rgba(0, 230, 118, 0.03);
}

.celebration-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.celebration-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.celebration-left {
    display: flex;
    flex-direction: column;
}
.celebration-title {
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.text-gradient-green {
    background: linear-gradient(to right, #00e676, #00b0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.25));
}
.celebration-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.gains-row {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}
.gain-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: var(--border-radius-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.gain-number {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-yellow);
}
.gain-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}
.btn-celebrate {
    padding: 10px 18px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
}
.btn-purple-glow {
    background: var(--color-purple-gradient);
    border: none;
    color: #fff;
    box-shadow: 0 4px 12px var(--color-purple-glow);
}
.btn-purple-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(138, 63, 252, 0.5);
}
.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
}

.celebration-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.floating-stack-wrapper {
    width: 170px;
    height: 170px;
    position: relative;
}
.floating-stack-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: floating-3d 4s ease-in-out infinite;
}
.green-radial-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.28) 0%, transparent 70%);
    bottom: -10px;
    left: 25px;
    filter: blur(10px);
    z-index: 1;
    animation: pulse-glow 2.5s infinite alternate;
}

.celebration-right {
    display: flex;
    flex-direction: column;
}
.dream-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}
.stack-progress-indicators {
    margin-bottom: 20px;
}
.indicators-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}
.indicators-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.indicator-dot {
    width: 10px;
    height: 14px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.4s ease;
}
.indicator-dot.active {
    background: var(--color-green);
    box-shadow: 0 0 6px var(--color-green-glow);
}
.progress-percentage-text {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-green);
    margin-left: 8px;
}

.celebration-quote-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 12px 16px;
    position: relative;
}
.celebration-quote-card .quote-icon {
    font-family: var(--font-display);
    font-size: 2rem;
    color: rgba(138, 63, 252, 0.15);
    position: absolute;
    top: -5px;
    left: 8px;
}
.quote-text-small {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.35;
    position: relative;
    z-index: 1;
}
.quote-author-small {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: block;
    margin-top: 6px;
    text-align: right;
}

/* ==========================================================================
   FLOATING BOTTOM NAVIGATION (MOBILE LAYOUT)
   ========================================================================== */
.floating-bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 8, 26, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 500;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 16px rgba(138, 63, 252, 0.08);
}
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition-fast);
    cursor: pointer;
}
.bottom-nav-item:hover, .bottom-nav-item.active {
    color: var(--color-purple);
}
.bottom-nav-item.active {
    filter: drop-shadow(0 0 4px var(--color-purple-glow));
}
.bottom-nav-item svg {
    width: 20px;
    height: 20px;
}
.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 4px;
}
.bottom-floating-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-purple-gradient);
    border: none;
    outline: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px var(--color-purple-glow);
    transform: translateY(-16px);
    transition: var(--transition-fast);
}
.bottom-floating-btn:hover {
    transform: translateY(-20px) scale(1.06);
    box-shadow: 0 8px 24px rgba(138, 63, 252, 0.5);
}
.bottom-floating-btn svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   MODAL OVERLAY & CARD STYLES
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 2, 7, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    background: rgba(14, 12, 32, 0.95);
    border: 1px solid rgba(138, 63, 252, 0.35);
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 450px;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(138, 63, 252, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-card {
    transform: scale(1);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-header h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 1.15rem;
}
.modal-close {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}
.modal-close:hover {
    color: #fff;
}
.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.form-group select, .form-group input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 10px 14px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}
.form-group select:focus, .form-group input:focus {
    border-color: rgba(138, 63, 252, 0.5);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 8px rgba(138, 63, 252, 0.2);
}
.full-width {
    width: 100%;
    justify-content: center;
}

/* Confetti interaction styles */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}
.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: fall linear forwards;
}

/* ==========================================================================
   CSS ANIMATIONS KEYFRAMES
   ========================================================================== */
@keyframes progress {
    from { stroke-dasharray: 0, 100; }
}

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

@keyframes element-pulse {
    0% {
        box-shadow: 0 0 8px rgba(255, 179, 0, 0.1);
        transform: scale(1);
    }
    100% {
        box-shadow: 0 0 16px rgba(255, 179, 0, 0.3);
        transform: scale(1.05);
    }
}

@keyframes soft-pulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes flame-flicker {
    0% { transform: scale(1) rotate(-2deg); filter: brightness(0.9); }
    50% { transform: scale(1.1) rotate(3deg); filter: brightness(1.2); }
    100% { transform: scale(0.95) rotate(-3deg); filter: brightness(1); }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes floating-3d {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes pulse-glow {
    0% { transform: scale(0.9); opacity: 0.6; }
    100% { transform: scale(1.1); opacity: 1; }
}

@keyframes fall {
    to {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (ADAPT TO TABLETS/PHONES)
   ========================================================================== */
@media (max-width: 1024px) {
    .sidebar {
        display: flex !important;
        position: fixed !important;
        top: 0;
        left: 0;
        height: 100vh !important;
        width: 280px !important;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 10005 !important;
        background: rgba(12, 8, 26, 0.98) !important;
        backdrop-filter: blur(25px) !important;
        border-right: 1px solid rgba(255,255,255,0.06);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    }
    .app-container.mobile-sidebar-active .sidebar {
        transform: translateX(0);
    }
    .sidebar-backdrop {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        z-index: 10002;
        backdrop-filter: blur(4px);
    }
    .app-container.mobile-sidebar-active .sidebar-backdrop {
        display: block;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 24px;
    }
    .app-container {
        padding-bottom: 100px;
    }
    #btn-toggle-sidebar {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .dashboard-grid, .bug-tracker-layout-grid {
        grid-template-columns: 1fr;
    }
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .user-stats-group {
        width: 100%;
        justify-content: space-between;
    }
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .celebration-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .celebration-center {
        order: -1;
    }
    .dashboard-grid-visual {
        grid-template-columns: 1fr;
    }
    .subjects-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        flex-direction: column;
    }
    .btn-celebrate {
        width: 100%;
        text-align: center;
    }
    .stack-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .stack-item-action {
        width: 100%;
        justify-content: flex-end;
    }
    .stack-connector {
        padding-left: 23px;
    }
    .current-label {
        left: 18px;
    }
}

/* ==========================================================================
   ADVANCED PREMIUM UPGRADES: SELECTS, SIDEBAR COLLAPSE, & RESPONSIVE CALENDAR
   ========================================================================== */

/* Premium Custom Select Styling */
select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    background: rgba(14, 12, 32, 0.85) url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat right 12px center;
    border: 1.5px solid rgba(138, 63, 252, 0.25);
    border-radius: var(--border-radius-md);
    padding: 10px 36px 10px 14px;
    color: #fff;
    font-family: var(--font-primary);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
select:focus {
    border-color: rgba(138, 63, 252, 0.6);
    box-shadow: 0 0 10px rgba(138, 63, 252, 0.3);
}
select option {
    background: #0d0b21;
    color: #fff;
    padding: 12px;
}

/* Collapsed Sidebar Transitions & Width Limits */
.sidebar {
    transition: width var(--transition-smooth), padding var(--transition-smooth), left var(--transition-smooth);
}
.main-content {
    transition: margin-left var(--transition-smooth);
}
.app-container.sidebar-collapsed .sidebar {
    width: 78px;
    padding: 24px 10px;
}
.app-container.sidebar-collapsed .sidebar .brand-info,
.app-container.sidebar-collapsed .sidebar .nav-text,
.app-container.sidebar-collapsed .sidebar .sidebar-quote,
.app-container.sidebar-collapsed .sidebar .progress-radial-card {
    display: none !important;
}
.app-container.sidebar-collapsed .sidebar .nav-item {
    justify-content: center;
    padding: 12px;
}
.app-container.sidebar-collapsed .main-content {
    margin-left: 78px;
}

/* Expanded Calendar Styling (Bigger Desktop Cells) */
.calendar-wrapper {
    max-width: 680px;
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.01);
    border: 1.5px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
}
.calendar-grid-cells {
    gap: 12px;
}
.cell-day {
    padding: 16px 0;
    font-size: 0.95rem;
    font-weight: 500;
}
.cell-day.active-streak {
    border-radius: 10px;
}
.cell-day.current-day {
    border-radius: 10px;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 768px) {
    .app-container {
        flex-direction: column;
        padding-bottom: 90px;
    }
    .main-content {
        margin-left: 0 !important;
        padding: 20px 16px;
    }
    .calendar-wrapper {
        max-width: 100%;
    }
    .calendar-grid-cells {
        gap: 6px;
    }
    .cell-day {
        padding: 10px 0;
        font-size: 0.8rem;
    }
}

/* Output Phase Accents & ASMR Embers */
.in-progress-glow-orange {
    border: 2px solid #ff5722 !important;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.25) !important;
}
.warning-glow-orange {
    background: linear-gradient(135deg, #ff4500, #ff8c00) !important;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.5) !important;
}
.text-glow-orange {
    text-shadow: 0 0 8px rgba(255, 87, 34, 0.6) !important;
}
.tag-mock-test {
    background: rgba(255, 69, 0, 0.12);
    color: #ff4500;
    border: 1px solid rgba(255, 69, 0, 0.3);
}
.tag-bug-review {
    background: rgba(255, 140, 0, 0.12);
    color: #ff8c00;
    border: 1px solid rgba(255, 140, 0, 0.3);
}

@keyframes riseEmber {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-50vh) translateX(25px) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) translateX(-25px) scale(0.1);
        opacity: 0;
    }
}

/* Bug Tracker Multi-Page Thumbnail Preview Styles */
.bug-preview-thumbnail {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background: #0d0d1e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.bug-preview-thumbnail:hover {
    transform: scale(1.05);
}
.bug-preview-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.bug-thumbnail-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: rgba(0,0,0,0.75);
    padding: 3px 0;
    z-index: 10;
}
.bug-thumbnail-btn {
    border: none;
    background: none;
    color: #fff;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.2s;
}
.bug-thumbnail-btn:hover {
    background: rgba(255,255,255,0.25);
}
.bug-thumbnail-btn.delete:hover {
    background: rgba(239, 68, 68, 0.4);
}

/* ==========================================
   PAWCLAW CHATBOT VIBE STYLING (DARK THEME ADAPTATION)
   ========================================== */

.watcher-indicator-dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 7px;
    height: 7px;
    background: #10b981; /* Green active pulse */
    border-radius: 50%;
    border: 1.5px solid var(--bg-sidebar);
    animation: watcher-pulse-key 2s infinite;
}

@keyframes watcher-pulse-key {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 4px #10b981; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.pawclaw-layout {
    display: flex;
    flex-direction: column;
    min-height: 80vh;
    padding: 10px 16px;
    box-sizing: border-box;
}

.pawclaw-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.pawclaw-brand-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.watcher-pulse-large {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: watcher-pulse-key 2s infinite;
}

.pawclaw-title-main {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-display);
    letter-spacing: -0.5px;
    color: #fff;
}

.pawclaw-badge {
    font-size: 0.65rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pawclaw-profile-greeting {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pawclaw-chat-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.pawclaw-hero-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
}

.pawclaw-hero-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-purple);
    box-shadow: 0 4px 20px rgba(138, 63, 252, 0.1);
}

.pawclaw-hero-svg {
    width: 28px;
    height: 28px;
}

.pawclaw-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.pawclaw-hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    font-weight: 500;
}

.pawclaw-messages-feed {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.pawclaw-messages-feed::-webkit-scrollbar {
    width: 4px;
}
.pawclaw-messages-feed::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}

.pawclaw-message-bubble {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.5;
    font-size: 0.85rem;
    box-sizing: border-box;
}

.pawclaw-message-bubble.user {
    align-self: flex-end;
    background: var(--color-purple);
    color: #fff;
    border-bottom-right-radius: 2px;
    box-shadow: 0 4px 12px rgba(138, 63, 252, 0.2);
}

.pawclaw-message-bubble.assistant {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom-left-radius: 2px;
}

.pawclaw-message-time {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    align-self: flex-end;
}

.pawclaw-input-wrapper {
    width: 100%;
    margin-bottom: 24px;
}

.pawclaw-input-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: border-color 0.25s, box-shadow 0.25s;
    width: 100%;
    box-sizing: border-box;
}

.pawclaw-input-card:focus-within {
    border-color: rgba(138, 63, 252, 0.4);
    box-shadow: 0 8px 32px rgba(138, 63, 252, 0.08);
}

.pawclaw-chat-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.9rem;
    resize: none;
    width: 100%;
    line-height: 1.45;
    font-family: inherit;
    padding: 4px 0;
}

.pawclaw-chat-input::placeholder {
    color: var(--text-muted);
}

.pawclaw-input-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
    margin-top: 4px;
}

.pawclaw-action-icons-left {
    display: flex;
    gap: 8px;
}

.pawclaw-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.pawclaw-action-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.pawclaw-action-btn svg {
    width: 16px;
    height: 16px;
}

.pawclaw-send-btn {
    background: #fff;
    color: #000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.pawclaw-send-btn:hover {
    background: var(--color-purple);
    color: #fff;
    transform: scale(1.05);
}

.pawclaw-send-btn svg {
    width: 14px;
    height: 14px;
}

.pawclaw-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

.pawclaw-suggest-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
    text-align: left;
    box-sizing: border-box;
}

.pawclaw-suggest-card:hover {
    background: rgba(255,255,255,0.03);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.pawclaw-suggest-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.pawclaw-suggest-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.pawclaw-suggest-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
}

@media (max-width: 768px) {
    .pawclaw-suggestions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   PAWCLAW DOUBLE-PANE CHAT LAYOUT & SIDEBAR STYLINGS
   ========================================================================== */
.pawclaw-layout {
    display: flex;
    flex-direction: row; /* Sidebar + Chat window */
    min-height: 82vh;
    padding: 0;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 10, 15, 0.2);
    border-radius: 16px;
    overflow: hidden;
}

.pawclaw-sidebar {
    width: 240px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 15, 25, 0.35);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

.pawclaw-new-chat-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.pawclaw-new-chat-btn:hover {
    background: rgba(138, 63, 252, 0.15);
    border-color: rgba(138, 63, 252, 0.4);
    box-shadow: 0 4px 12px rgba(138, 63, 252, 0.1);
}

.pawclaw-history-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 8px;
}

.pawclaw-threads-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.pawclaw-threads-list::-webkit-scrollbar {
    width: 3px;
}

.pawclaw-threads-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.pawclaw-thread-item {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid transparent;
}

.pawclaw-thread-item:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #fff;
}

.pawclaw-thread-item.active {
    background: rgba(138, 63, 252, 0.08);
    border-color: rgba(138, 63, 252, 0.2);
    color: #fff;
    font-weight: 500;
}

.pawclaw-main-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    box-sizing: border-box;
    background: rgba(10, 10, 15, 0.15);
}

/* Chat feed container updates */
.pawclaw-chat-area {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0;
    width: 100%;
    height: 100%;
}

.pawclaw-messages-feed {
    width: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 380px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 8px;
    margin-bottom: 16px;
}

.pawclaw-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 grid is much cleaner and compact */
    gap: 12px;
    width: 100%;
    max-width: 680px;
    margin: auto auto 20px auto;
}

@media (max-width: 768px) {
    .pawclaw-layout {
        flex-direction: column;
    }
    .pawclaw-sidebar {
        width: 100%;
        height: 140px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

/* ==========================================================================
   PORTABLE PAWCLAW FLOATING POPUP WIDGET STYLINGS
   ========================================================================== */
.pawclaw-popup-widget {
    position: fixed;
    bottom: 95px;
    right: 28px;
    z-index: 10000;
    font-family: var(--font-sans);
}

.pawclaw-popup-trigger {
    background: rgba(138, 63, 252, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 18px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(138, 63, 252, 0.35);
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.pawclaw-popup-trigger:hover {
    transform: translateY(-2px);
    background: #8a3ffc;
    box-shadow: 0 6px 24px rgba(138, 63, 252, 0.55);
}

.pawclaw-popup-window {
    position: absolute;
    bottom: 52px;
    right: 0;
    width: 580px;
    height: 460px;
    background: rgba(12, 11, 22, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(25px);
}

.pawclaw-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
}

.pawclaw-popup-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.pawclaw-popup-close:hover {
    color: #fff;
}

.pawclaw-popup-body-wrapper {
    display: flex;
    flex-grow: 1;
    overflow: hidden;
    height: calc(100% - 45px);
}

.pawclaw-popup-sidebar {
    width: 170px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.pawclaw-popup-feed-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 14px;
    overflow: hidden;
    box-sizing: border-box;
}

.pawclaw-popup-feed-wrapper .pawclaw-messages-feed {
    height: 100% !important;
    max-height: 100% !important;
    margin-bottom: 12px;
}

.pawclaw-popup-feed-wrapper .pawclaw-input-wrapper {
    margin-bottom: 0;
    width: 100%;
}

.pawclaw-popup-sidebar .pawclaw-threads-list {
    flex-grow: 1;
    overflow-y: auto;
}

