:root {
    --primary-color: #99bd03; /* Lime green from the image */
    --background-color: #1a1a1a;
    --text-color: #f5f5f5;
    --header-bg: #222;
    --card-bg: #222;
    --light-gray: #333;
    --border-color: #99bd03;
    --mobile-header-height: 68px;
}

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

/* Prevent ANY element from causing horizontal scroll */
img, video, iframe, table, pre, canvas {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    animation: pageLoad 0.4s ease-out;
    overflow-x: clip;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-footer {
    margin-top: auto;
}

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

body.page-transition {
    opacity: 0.95;
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.flash-message {
    background: var(--primary-color);
    color: #000;
    padding: 15px 45px 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideInRight 0.3s ease-out, fadeOut 0.3s ease-in 4.7s;
    animation-fill-mode: forwards;
}

.flash-success {
    background: var(--primary-color);
}

.flash-error {
    background: #ff6b6b;
    color: #fff;
}

.flash-info {
    background: #4ecdc4;
}

.flash-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.flash-close:hover {
    opacity: 1;
}

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

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

@media (max-width: 480px) {
    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
        top: 70px;
    }

    .flash-message {
        padding: 12px 40px 12px 15px;
        font-size: 14px;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Scroll animations */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Global overflow lock on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    main, main * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 6px;
    }
}

/* Prevent pre-wrap text overflow */
[style*="white-space: pre-wrap"],
[style*="white-space:pre-wrap"],
.white-space-pre {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Mobile container padding */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}


