﻿:root {
    --bg-color: #f0f2f5;
    --surface-color: #ffffff;
    --primary-color: #e63946;
    /* Red for Catalan feeling */
    --primary-glow: #e6394640;
    --accent-color: #f1faee;
    --accent-text: #1d3557;
    --text-color: #1d1d1f;
    --text-secondary: #86868b;
    --error-color: #d00000;
    --success-color: #2a9d8f;
    --gold: #fca311;

    --font-main: 'Outfit', sans-serif;
    --radius-lg: 24px;
    --radius-md: 12px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    display: flex;
    justify-content: center;
    /* align-items: center; Remove to allow scrolling landing page */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Landing Page Wrapper */
.landing-container {
    width: 100%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
}

.auth-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.logo-small {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(180deg, rgba(230, 57, 70, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Categories Grid */
.categories-section {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

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

.category-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
    border-top: 5px solid #ccc;
    /* default */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 700;
    font-size: 1rem;
}

/* How it Works */
.steps-section {
    background: var(--surface-color);
    padding: 4rem 1rem;
    text-align: center;
    margin-top: 3rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 3rem auto 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Trial Game Modal/Section */
.trial-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.trial-content {
    background: var(--bg-color);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-trial {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.trial-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
    font-weight: 700;
}

.trial-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.trial-category-tag {
    background: #e0e0e0;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: table;
    /* Center trick */
}

/* Footer */
.footer {
    background: #222;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* App Container Override */
.app-container {
    width: 100%;
    max-width: 480px;
    /* Mobile first standard width */
    min-height: 100vh;
    background-color: var(--bg-color);
    /* Kept original */
    /* position: relative; */
    /* Removed to fix stacking contexts if needed */
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    /* Center it */
}

/* Original App Styles (Merged/Adapted) */
/* Utils */
.hidden {
    display: none !important;
}

.btn {
    background: linear-gradient(135deg, var(--primary-color), #ff6b6b);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    margin-top: 0;
    width: auto;
}

.btn:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #ddd;
    box-shadow: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: var(--radius-md);
    padding: 14px 28px;
    font-weight: 700;
}

input,
select {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    color: var(--text-color);
    padding: 14px;
    border-radius: var(--radius-md);
    width: 100%;
    font-family: var(--font-main);
    font-size: 1rem;
    margin-bottom: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    background-color: white;
}

/* Views */
.view {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

.auth-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

h1,
h2 {
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-color);
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    letter-spacing: -1px;
}

/* Game Interface */
.timer-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.timer-fill {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
}

.question-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn {
    background: #ffffff;
    padding: 22px;
    border-radius: var(--radius-md);
    text-align: left;
    cursor: pointer;
    border: 2px solid #eef0f2;
    transition: all 0.2s;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

.option-btn:hover {
    background: #f8f9fa;
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.option-btn.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.option-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.option-btn.wrong {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

/* Results */
.score-big {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    text-align: center;
    margin: 2rem 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading */
.loading-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }


    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Dashboard New Styles */

/* Hero Daily Challenge Card */
.dashboard-hero-card {
    background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.dashboard-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--gold));
}

.hero-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.hero-card-subtitle {
    font-size: 0.9rem;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.countdown-timer {
    font-size: 2.5rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--primary-color);
    margin: 1rem 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

/* Wisdom Modal specific */
.wisdom-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.wisdom-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wisdom-info {
    flex: 1;
}

.wisdom-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

/* Profile Header */
.profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
}

.profile-info h2 {
    text-align: left;
    margin: 0;
    font-size: 1.2rem;
}

.profile-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}
/* Category Modal System */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay:not(.hidden) .modal-content {
    transform: scale(1);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.95);
}

@supports (backdrop-filter: blur(10px)) {
    .glass-effect {
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(0,0,0,0.1);
}

.modal-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.03) 0%, rgba(255,255,255,0) 100%);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.modal-header h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 0;
}

.modal-body {
    padding: 2rem;
}

.subthemes-section h3, .did-you-know-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subthemes-list {
    list-style: none;
    margin-bottom: 2rem;
}

.subthemes-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--text-color);
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
}

.subthemes-list li:before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
    line-height: 1;
}

.subthemes-list li:last-child {
    border-bottom: none;
}

.curiosity-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fff3cd 100%);
    border: 1px solid #ffeeba;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: #856404;
}

.bulb-icon {
    font-size: 1.5rem;
}

.curiosity-box p {
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    background: rgba(250,250,250,0.5);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer button {
    margin: 0;
    max-width: 200px;
    width: 100%;
}


/* Revamped Modal Styles */
:root {
    --modal-accent: var(--primary-color); /* Dynamic variable */
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 2rem;
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--modal-accent);
}

.modal-header h2 {
    color: var(--modal-accent);
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 80%;
    margin: 0 auto;
    font-weight: 500;
    line-height: 1.4;
}

.subthemes-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    font-size: 1rem;
    color: #444;
}

.subthemes-list li:before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--modal-accent);
    margin-top: 6px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.subthemes-list strong {
    color: var(--text-color);
    font-weight: 700;
    margin-right: 0.5rem;
    display: block; /* Mobile friendly */
}

@media (min-width: 600px) {
    .subthemes-list strong {
        display: inline;
    }
}

.curiosity-box {
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--modal-accent);
    border-right: none;
    border-top: none;
    border-bottom: none;
}

.bulb-icon {
    color: var(--modal-accent);
}


/* Profile Edit & Socials */
.btn-icon-small {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.btn-icon-small:hover {
    opacity: 1;
}

.profile-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.badge-social {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.75rem;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Modal Tabs */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: bold;
}

.tab-content.hidden {
    display: none;
}

/* Follow Us Section */
.follow-us-section {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 1rem;
}

.follow-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.btn-social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.9rem;
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: transform 0.2s;
}

.btn-social:hover {
    transform: translateY(-2px);
}

.inst { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.tw { background: #1DA1F2; }
.sub { background: #FF6719; }

/* Invite Box */
.invite-link-box {
    background: #f5f5f5;
    border: 2px dashed #ccc;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.invite-link-box:hover {
    background: #eee;
    border-color: #aaa;
}

.invite-link-box span {
    font-family: monospace;
    color: #333;
    font-size: 1rem;
}

.btn-whatsapp {
    display: block;
    width: 100%;
    background: #25D366;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}


/* High Contrast Override for Social Badges */
.badge-social {
    background: #444 !important;
    border-color: #333 !important;
    color: #fff !important;
    font-weight: 600 !important;
}


/* --- NEW GAME UI --- */

/* Intro Screen */
.card h4 {
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Category Badge Large */
.category-badge-lg {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Timer Bar */
.timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: #ddd;
    z-index: 100;
}

.timer-fill {
    height: 100%;
    background: var(--primary-color);
    width: 100%;
    transition: width 0.1s linear;
}

/* Feedback Card */
.feedback-card {
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.explanation-box {
    background: rgba(0,0,0,0.05);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #666;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

/* Summary List */
.summary-list {
    margin-top: 1rem;
    padding-bottom: 50px;
}

.summary-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 6px solid #ccc;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-item.correct { border-left-color: var(--success-color); }
.summary-item.incorrect { border-left-color: var(--error-color); }

.summary-q {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.summary-details {
    margin-top: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tag-green { background: rgba(0,200,80,0.2); color: #008030; }
.tag-red { background: rgba(255,80,80,0.2); color: #cc0000; }

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


