:root {
    /* Pure Black & White Theme (Dark Default) */
    --bg-color: #050505;
    --card-bg: #111111;
    --text-main: #f8f9fa;
    --text-muted: #9ca3af;
    --border: #2a2a2a;
    --border-hover: #444444;

    /* Colorful Accents (Neon vibes for contrast) */
    --primary-medium: #8b5cf6; /* Vibrant Purple */
    --primary-light: rgba(139, 92, 246, 0.15);
    --highlight: #d946ef; /* Fuchsia */
    --upvote-color: #10b981; /* Emerald Green */
    --downvote-color: #ef4444; /* Neon Red */
    
    --gold: #fcd34d;
    --silver: #e5e7eb;
    --bronze: #d97706;

    /* Shadows & Glows */
    --shadow-sm: 0 4px 12px rgba(0,0,0,0.6);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.8);
    --glow-primary: 0 0 15px rgba(139, 92, 246, 0.4);
    --glow-upvote: 0 0 15px rgba(16, 185, 129, 0.4);
    
    /* Radii */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Input adjustments */
    --input-bg: rgba(255,255,255,0.03);
}

/* Light Theme Variables */
:root[data-theme="light"] {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #cbd5e1;
    --border-hover: #94a3b8;

    --primary-medium: #7c3aed; /* Darker Purple for better contrast */
    --primary-light: rgba(124, 58, 237, 0.1);
    --highlight: #c026d3; 

    --shadow-sm: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.12);
    
    --input-bg: #ffffff;
}

/* Override overrides for Light Theme Backgrounds */
:root[data-theme="light"] .navbar {
    background-color: rgba(255, 255, 255, 0.85);
}
:root[data-theme="light"] .modal-overlay {
    background-color: rgba(255, 255, 255, 0.85);
}
:root[data-theme="light"] select, 
:root[data-theme="light"] .form-group input, 
:root[data-theme="light"] .form-group textarea {
    background-color: var(--input-bg);
    color: var(--text-main);
}
:root[data-theme="light"] .post-vote-col {
    background-color: rgba(0,0,0,0.02);
}
:root[data-theme="light"] select option, 
:root[data-theme="light"] select optgroup {
    background-color: var(--card-bg);
    color: var(--text-main);
}
:root[data-theme="light"] .mock-input {
    background-color: #f8fafc;
}
:root[data-theme="light"] .mock-input:hover {
    background-color: #ffffff;
}
:root[data-theme="light"] .tab-btn.active {
    background-color: rgba(124, 58, 237, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Animations Core */
@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px var(--primary-medium); }
    50% { box-shadow: 0 0 20px var(--primary-medium); }
    100% { box-shadow: 0 0 5px var(--primary-medium); }
}

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

/* Navbar */
.navbar {
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 40;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: background-color 0.3s, border-color 0.3s;
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-icon {
    color: var(--highlight);
    font-size: 1.4rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-medium), var(--highlight));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-primary);
}
.avatar-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-medium), var(--highlight));
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--glow-primary);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-top: 2.5rem;
    align-items: start;
    animation: popIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
    .layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        order: 2;
    }
}

/* Cards */
.card {
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

:root[data-theme="light"] .card {
    background-color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.card:hover {
    border-color: var(--primary-medium);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px) scale(1.01);
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Sidebar Components */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.ranking-list {
    list-style: none;
    padding: 0;
}
.ranking-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    transition: all 0.3s ease;
}
.ranking-item:hover {
    background-color: var(--primary-light);
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-medium);
}
.ranking-item:last-child {
    border-bottom: none;
}
.rank-badge {
    font-size: 1.5rem;
    font-weight: 800;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}
.rank-badge.rank-1 { color: var(--gold); }
.rank-badge.rank-2 { color: var(--silver); }
.rank-badge.rank-3 { color: var(--bronze); }

.ranking-details h4 {
    font-size: 0.95rem;
    margin: 0 0 4px 0;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ranking-details span {
    font-size: 0.85rem;
    color: var(--primary-medium);
    font-weight: 600;
}

.info-card p {
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.info-card p:last-child {
    border-bottom: none;
}

/* Create Post Area */
.create-post-card {
    padding: 1.25rem;
    margin-bottom: 2rem;
    position: relative;
    border: 1px solid var(--border);
}
.create-post-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(45deg, var(--border), var(--primary-medium), var(--highlight), var(--border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    transition: opacity 0.5s;
    pointer-events: none;
}
.create-post-card:hover::before {
    opacity: 1;
}

.create-post-header {
    display: flex;
    gap: 16px;
    align-items: center;
}
.mock-input {
    flex: 1;
    background-color: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
}
.mock-input:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-medium);
    box-shadow: var(--glow-primary);
}

/* Filters */
.feed-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background-color: var(--card-bg);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}
.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    transition: all 0.3s;
}
.filter-btn i {
    font-size: 1.2rem;
}
.filter-btn:hover {
    background-color: var(--primary-light);
    color: var(--text-main);
}
.filter-btn.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-medium), var(--highlight));
    box-shadow: var(--glow-primary);
    transform: scale(1.05);
}

/* Post Cards */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 4rem;
}

.post {
    display: flex;
    background-color: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: popIn 0.5s ease-out backwards;
}
:root[data-theme="light"] .post {
    background-color: rgba(255, 255, 255, 0.85);
}
.post:hover {
    border-color: var(--primary-medium);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.15);
    transform: translateY(-4px) scale(1.01);
}

.post-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0.75rem;
    background-color: rgba(0,0,0,0.3);
    border-right: 1px solid var(--border);
    width: 60px;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    transition: background-color 0.3s;
}

.vote-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-muted);
    padding: 6px;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.vote-btn:hover {
    background-color: rgba(124, 58, 237, 0.1);
    transform: scale(1.2);
}
.vote-btn:active {
    transform: scale(0.9);
}
.vote-btn.upvote:hover, .vote-btn.upvote.active { 
    color: var(--upvote-color); 
    filter: drop-shadow(0 0 8px var(--upvote-color));
}
.vote-btn.downvote:hover, .vote-btn.downvote.active { 
    color: var(--downvote-color); 
    filter: drop-shadow(0 0 8px var(--downvote-color));
}

.vote-count {
    font-weight: 800;
    font-size: 1.1rem;
    margin: 8px 0;
    transition: color 0.3s;
}
.vote-count.positive { color: var(--upvote-color); text-shadow: 0 0 10px rgba(16,185,129,0.3); }
.vote-count.negative { color: var(--downvote-color); text-shadow: 0 0 10px rgba(239,68,68,0.3); }

.post-content-col {
    padding: 1.5rem;
    flex: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.post-author {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-highlight-badge {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    color: #000;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulseGlow 2s infinite;
}
.innovator-badge {
    background: linear-gradient(135deg, var(--highlight), var(--primary-medium));
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.7rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(217, 70, 239, 0.4);
    margin-left: 6px;
    vertical-align: middle;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    letter-spacing: -0.3px;
}
.post-desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    white-space: pre-line;
    line-height: 1.7;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
}
.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.action-btn i {
    font-size: 1.1rem;
}
.action-btn:hover {
    background-color: var(--primary-light);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* Auth Specifics & Tabs */
.auth-tabs {
    padding: 0;
    display: flex;
    border-bottom: 2px solid var(--border);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-btn:hover {
    color: var(--text-main);
}
.tab-btn.active {
    color: var(--highlight);
    border-bottom-color: var(--highlight);
    background-color: rgba(255,255,255,0.02);
}
.auth-form {
    display: none;
    animation: popIn 0.3s ease-out forwards;
}
.auth-form.active {
    display: block;
}
.form-row {
    display: flex;
    gap: 1rem;
}
@media (max-width: 600px) {
    .form-row { flex-direction: column; gap: 0; }
}
select {
    width: 100%;
    padding: 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}
select:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: var(--glow-primary);
}
select option, select optgroup {
    background-color: var(--card-bg);
    color: var(--text-main);
}
.auth-modal-box {
    max-width: 500px !important;
}
.auth-body {
    padding: 2.5rem 2rem !important;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background-color: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    max-width: 650px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 30px rgba(139, 92, 246, 0.2);
    transform: translateY(40px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin: 1rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}
:root[data-theme="light"] .modal {
    background-color: rgba(255, 255, 255, 0.9);
}
.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 800;
}
.close-btn {
    background: var(--input-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s;
}
.close-btn:hover {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--downvote-color);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.form-group label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    transition: all 0.3s;
}
.form-group input::placeholder, .form-group textarea::placeholder {
    color: #6b7280;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: var(--glow-primary);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.75rem;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-medium), var(--highlight));
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.6);
}
.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border);
    color: var(--text-muted);
}
.btn-outline:hover {
    background-color: var(--primary-light);
    color: var(--text-main);
    border-color: var(--primary-medium);
}

/* Toast Notification */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}
.toast {
    background: linear-gradient(135deg, #111, #222);
    border: 1px solid var(--primary-medium);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), inset 0 0 15px rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 320px;
    max-width: 450px;
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.toast.hide {
    animation: fadeOutRight 0.4s ease-in forwards;
}
.toast-icon {
    font-size: 2rem;
    color: var(--gold);
    animation: floatAction 2s infinite;
}
.toast-content h4 {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--highlight);
}
.toast-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
}

/* Teacher Badge Styles */
.teacher-badge {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
    letter-spacing: 0.5px;
}
.teacher-badge-small {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: 6px;
    vertical-align: middle;
}

@keyframes slideInRight {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes fadeOutRight {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

/* Dropdowns */
.dropdown {
    position: relative;
    display: inline-block;
}
.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 8px;
    background-color: var(--card-bg);
    min-width: 160px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    z-index: 50;
    overflow: hidden;
    animation: popIn 0.2s ease-out forwards;
}
.dropdown-content.show {
    display: block;
}
.dropdown-item {
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dropdown-item:hover {
    background-color: var(--primary-light);
}
.profile-dropdown {
    min-width: 200px;
}



/* Comments Section */
.comments-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--border);
    animation: popIn 0.3s ease-out;
}
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.comments-header select {
    width: auto;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-full);
}
.comment-form {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}
.comment-form input {
    flex: 1;
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}
.comment-form input:focus {
    outline: none;
    border-color: var(--primary-medium);
}
.comment-node {
    display: flex;
    gap: 12px;
    margin-bottom: 1rem;
}
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}
.comment-body {
    background-color: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md);
    flex: 1;
}
.comment-body.pinned {
    border-color: var(--highlight);
    background-color: var(--primary-light);
    box-shadow: var(--glow-primary);
}
.comment-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.comment-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}
.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.comment-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.5;
}
.pinned-badge {
    color: var(--highlight);
    font-size: 0.75rem;
    font-weight: 800;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.comment-action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.comment-action-btn:hover {
    color: var(--primary-medium);
}

/* Notifications */
.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: var(--downvote-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 2px solid var(--card-bg);
}
.notification-dropdown {
    width: 320px;
    max-height: 400px;
    overflow-y: auto;
    right: -10px;
    top: calc(100% + 15px);
}
.notification-header {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background-color: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 2;
}
.notification-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}
.mark-read-btn {
    background: none;
    border: none;
    color: var(--primary-medium);
    cursor: pointer;
    font-size: 0.9rem;
}
.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 12px;
    transition: background-color 0.2s;
    cursor: pointer;
    position: relative;
}
.notification-item.unread {
    background-color: var(--primary-light);
}
.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: var(--highlight);
    border-radius: 50%;
}
.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}
:root[data-theme="light"] .notification-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}
.notification-icon {
    font-size: 1.25rem;
    color: var(--primary-medium);
    margin-top: 4px;
}
.notification-content p {
    margin: 0 0 4px 0;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}
.notification-content span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Announcements Card */
.announcements-card {
    border: 2px solid var(--highlight);
    box-shadow: 0 0 15px rgba(217, 70, 239, 0.15);
    background: linear-gradient(180deg, rgba(217, 70, 239, 0.05) 0%, transparent 100%);
}
.announcements-title {
    background-color: rgba(217, 70, 239, 0.1);
}
.announcements-list {
    list-style: none;
    padding: 0;
}
.announcement-item {
    padding: 1rem;
    border-bottom: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.announcement-item:last-child {
    border-bottom: none;
}
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.announcement-type-official {
    color: var(--highlight);
}
.announcement-type-milestone {
    color: var(--gold);
}
.announcement-text {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

/* Password Toggle Hover */
.password-toggle:hover {
    color: var(--primary-medium) !important;
    transform: translateY(-50%) scale(1.1) !important;
}
.password-toggle {
    transition: all 0.2s ease;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: rgba(17, 17, 17, 0.4);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
    animation: popIn 0.5s ease-out;
}
:root[data-theme="light"] .empty-state {
    background-color: rgba(255, 255, 255, 0.5);
}
.empty-state-icon {
    font-size: 4rem;
    color: var(--border-hover);
    margin-bottom: 1.5rem;
    animation: floatAction 4s infinite ease-in-out;
}
.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.empty-state p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Status Badges */
.status-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    margin-left: 8px;
}
.status-analysis {
    background-color: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}
.status-approved {
    background-color: rgba(16, 185, 129, 0.2);
    color: var(--upvote-color);
    border: 1px solid rgba(16, 185, 129, 0.4);
}
.status-rejected {
    background-color: rgba(239, 68, 68, 0.2);
    color: var(--downvote-color);
    border: 1px solid rgba(239, 68, 68, 0.4);
}
.status-done {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

/* Admin Search Input */
.admin-search-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}
.admin-search-input:focus {
    outline: none;
    border-color: var(--primary-medium);
    box-shadow: var(--glow-primary);
}

/* Site Footer */
.site-footer {
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-brand {
    max-width: 300px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}
.footer-links h3 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.social-icons {
    display: flex;
    gap: 1rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-color);
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}
.social-link:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-medium), var(--highlight));
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}
.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}
