/**
 * The Backyard CMMS - Main Stylesheet
 * Includes both light and dark theme support with smooth transitions
 */
/* ===== Footer ===== */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 24px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .features h2,
    .pricing-section h1,
    .about-section h1,
    .contact-section h1 {
        font-size: 2rem;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-list {
        column-count: 1;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
    }
    
    .inline-input {
        min-width: 150px;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .header-content {
        padding: 0 16px;
    }
    
    .side-menu {
        width: 85%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .contact-form,
    .login-form {
        padding: 24px;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ===== Accessibility ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--primary);
    color: white;
}
/* ===== CSS Variables ===== */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: rgba(0, 0, 0, 0.1);
    
    /* Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Layout */
    --header-height: 64px;
    --menu-width: 280px;
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

.theme-dark {
    /* Dark Theme Colors */
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3d3d3d;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --border-color: #404040;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: var(--transition);
}

/* ===== Loading Overlay ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

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

.loader-container {
    text-align: center;
}

.loader-image {
    width: 250px;
    height: 250px;
    animation: fadeInOut 2s ease-in-out infinite;
    display: block;
    margin: 0 auto;
}

@keyframes fadeInOut {
    0%, 100% { 
        opacity: 0.3;
    }
    50% { 
        opacity: 1;
    }
}

.loader-text {
    margin-top: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 14px;
    color: #ffffff;
    opacity: 0.9;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 20px;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== Menu Toggle Button ===== */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ===== Logo ===== */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
}

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

/* ===== Header Actions ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--bg-secondary);
}

.theme-light .moon-icon { display: none; }
.theme-dark .sun-icon { display: none; }

/* Language Selector */
.language-selector {
    position: relative;
}

.lang-toggle {
    background: none;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background-color: var(--bg-secondary);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px var(--shadow);
    min-width: 80px;
    display: none;
    z-index: 100;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.lang-dropdown a:hover {
    background-color: var(--bg-secondary);
}

/* ===== Side Menu ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
}

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

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--menu-width);
    height: 100%;
    background-color: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
}

.side-menu.active {
    transform: translateX(0);
}

.menu-content {
    padding: 80px 0 20px;
}

.menu-list {
    list-style: none;
}

.menu-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.menu-list li a:hover,
.menu-list li.active a {
    background-color: var(--bg-secondary);
    color: var(--primary);
}

.menu-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 12px 24px;
}

/* ===== Main Content ===== */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - 60px);
    padding: 40px 20px;
}

.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ===== Hero Section ===== */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-full {
    width: 100%;
}

/* ===== Features Section ===== */
.features {
    padding: 60px 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Home Page Updates ===== */
.value-prop {
    padding: 60px 20px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin: 40px 0;
}

.value-content {
    max-width: 900px;
    margin: 0 auto;
}

.value-content h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.benefit-list {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.benefit-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.7;
}

.benefit-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
    font-size: 1.2rem;
}

.goal-statement {
    font-size: 1.25rem;
    margin-top: 32px;
    text-align: center;
    color: var(--text-primary);
}

.feature-emoji {
    font-size: 3rem;
}

.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--border-radius);
    color: white;
    margin: 40px 0;
}

.cta-section h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-actions .btn-outline {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.cta-actions .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

/* ===== About Page Updates ===== */
.about-hero {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.about-tagline {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.about-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

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

.feature-list {
    list-style: none;
    margin: 24px 0;
    column-count: 2;
    column-gap: 40px;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    break-inside: avoid;
}

.visual-emphasis {
    font-size: 1.125rem;
    padding: 24px;
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary);
    border-radius: var(--border-radius);
    margin-top: 32px;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.module-card {
    padding: 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.module-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.module-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Pricing Page Updates ===== */
.pricing-section {
    padding: 60px 20px;
}

.pricing-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.pricing-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 48px;
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow);
}

.pricing-card.featured {
    border-color: var(--primary);
    border-width: 2px;
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-tier {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.pricing-price {
    margin-bottom: 32px;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    min-height: 40px;
}

.pricing-alt {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -8px;
    margin-bottom: 12px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* ===== Forms ===== */
.contact-form,
.login-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
}

/* Honeypot - hidden field to catch bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== Alerts ===== */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

/* ===== Login Section ===== */
.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 200px);
}

.login-container {
    width: 100%;
    max-width: 500px;
}

.login-container h1 {
    text-align: center;
    margin-bottom: 12px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.login-help {
    text-align: center;
    margin-top: 24px;
    color: var(--text-secondary);
}

.login-help a {
    color: var(--primary);
    text-decoration: none;
}

.login-help a:hover {
    text-decoration: underline;
}

/* ===== About Section ===== */
.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-section h1 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-content h2 {
    font-size: 2rem;
    margin: 40px 0 16px;
    color: var(--text-primary);
}

.values-list {
    list-style: none;
    margin: 24px 0;
}

.values-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.values-list strong {
    color: var(--primary);
}

/* ===== Contact Section ===== */
.contact-section h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

/* ===== Cookie Notice ===== */
.cookie-notice {
    margin-top: 40px;
    padding: 24px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cookie-notice h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.cookie-notice p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.6;
}

.cookie-notice a {
    color: var(--primary);
    text-decoration: none;
}

.cookie-notice a:hover {
    text-decoration: underline;
}

/* ===== Admin Dashboard Styles ===== */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-user {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-danger {
    background-color: var(--error);
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

.admin-section {
    margin-bottom: 48px;
}

.admin-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.table-responsive {
    overflow-x: auto;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--bg-tertiary);
}

.admin-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.admin-table tbody tr:hover {
    background-color: var(--bg-tertiary);
}

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

.inactive-row {
    opacity: 0.6;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--error);
}

.inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-input {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.875rem;
    min-width: 200px;
}

.inline-input:focus {
    outline: none;
    border-color: var(--primary);
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.message-cell {
    max-width: 300px;
}

.message-preview {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* ===== Error Page ===== */
.error-section {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 24px;
}

.error-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.error-section p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}
 
/* === */

/* ===== Notification Badge Styles ===== */
/* Add these styles to your existing css/style.css file */

/* Badge on module card heading */
.notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background-color: var(--error);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
    animation: pulse 2s ease-in-out infinite;
}

/* Badge on button */
.btn-badge {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background-color: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Pulse animation for notification badge */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
    }
}

/* Make module card with notification stand out slightly */
.module-card:has(.notification-badge) {
    border-color: rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notification-badge {
        min-width: 20px;
        height: 20px;
        padding: 0 6px;
        font-size: 0.7rem;
        margin-left: 6px;
    }
    
    .btn-badge {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
}

/* ===== Fair Use Notice (Add to css/style.css) ===== */

.fair-use-notice {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 32px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
}

.fair-use-notice h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.fair-use-notice p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.fair-use-notice p:last-child {
    margin-bottom: 0;
}

.fair-use-notice a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.fair-use-notice a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fair-use-notice {
        margin: 40px 20px 0;
        padding: 24px;
    }
    
    .fair-use-notice h3 {
        font-size: 1.125rem;
    }
}
