@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Background image container - replaces video for non-dashboard pages */
#background-image-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    filter: brightness(1.2) contrast(1.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

main {
    position: relative;
    z-index: 10;
}

.document-bg {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(11, 17, 30, 0.98) 100%);
    border: 2px solid rgba(79, 124, 247, 0.3);
    border-radius: 0.5rem;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.5), 
        0 4px 6px -2px rgba(0, 0, 0, 0.2),
        inset 0 0 50px rgba(79, 124, 247, 0.05);
    position: relative;
    overflow: hidden;
}
.document-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 100px, rgba(255, 255, 255, 0.02) 101px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0px, transparent 1px, transparent 100px, rgba(255, 255, 255, 0.02) 101px);
    pointer-events: none;
    z-index: 1;
}
.document-bg > * {
    position: relative;
    z-index: 2;
}

.header-glow {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2), 0 0 10px rgba(79, 124, 247, 0.15);
}
.news-feed-container {
    overflow: hidden;
    position: relative;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(79, 124, 247, 0.2);
    margin: 1rem 0;
    display: flex;
    align-items: center;
}
.news-feed-scroll {
    display: flex;
    white-space: nowrap;
    animation: scroll-news 60s linear infinite;
    will-change: transform;
    width: max-content;
}
.news-feed-item {
    display: inline-block;
    padding: 0 4rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    color: rgba(79, 124, 247, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
}
.news-feed-item::before {
    content: '▶';
    margin-right: 1rem;
    color: #10b981;
}
@keyframes scroll-news {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
.restricted-tag {
    background-color: #dc2626;
    clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
    padding-left: 1.5rem;
}
.section-divider {
    border-left: 2px solid #374151;
}

.form-input, .form-textarea {
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(79, 124, 247, 0.3);
    border-top: 2px solid rgba(79, 124, 247, 0.5);
    border-left: 2px solid rgba(79, 124, 247, 0.5);
    color: #10b981;
    padding: 0.75rem 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    transition: all 0.3s;
    width: 100%;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 
        0 0 15px rgba(16, 185, 129, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.processing-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.processing-overlay.active {
    display: flex;
}
.processing-box {
    position: relative;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(11, 17, 30, 0.98) 100%);
    border: 2px solid rgba(79, 124, 247, 0.5);
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    box-shadow: 
        0 0 50px rgba(79, 124, 247, 0.3),
        inset 0 0 30px rgba(79, 124, 247, 0.1);
}
.processing-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 1.5rem;
    color: #10b981;
    margin-bottom: 2rem;
    animation: pulse-text 1.5s ease-in-out infinite;
}
@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.processing-dots {
    display: inline-block;
    width: 20px;
    text-align: left;
}
.processing-dots::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}
@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
.success-message {
    display: none;
}
.success-message.active {
    display: block;
}
.success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    animation: success-pulse 0.6s ease-out;
}
.success-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@keyframes success-pulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Roboto Mono', monospace;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}
.processing-box {
    position: relative;
}

.volume-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    backdrop-filter: blur(10px);
    border: 2px solid #333;
    border-top: 2px solid #444;
    border-left: 2px solid #444;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    color: white;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.volume-btn:hover {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
}
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.login-box {
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid #444;
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 3rem;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5),
        0 8px 16px rgba(0, 0, 0, 0.5);
    min-width: 400px;
}
.login-input {
    background: #000;
    border: 2px solid #333;
    border-top: 2px solid #222;
    border-left: 2px solid #222;
    border-right: 2px solid #444;
    border-bottom: 2px solid #444;
    color: #0f0;
    padding: 0.75rem 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.875rem;
    width: 100%;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.login-input:focus {
    outline: none;
    border-color: #0f0;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3), inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.login-btn {
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border: 2px solid #444;
    border-top: 2px solid #555;
    border-left: 2px solid #555;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    color: white;
    padding: 0.75rem 2rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    box-shadow: 
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.2s;
}
.login-btn:hover {
    background: linear-gradient(145deg, #3a3a3a 0%, #2a2a2a 100%);
}
.login-btn:active {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    transform: translateY(1px);
}
@media (max-width: 768px) {
    .document-bg {
        padding: 1.5rem !important;
    }
    .header-glow {
        font-size: 1.5rem !important;
    }
    h1 {
        font-size: 1.5rem !important;
    }
    h2 {
        font-size: 1.25rem !important;
    }
    .news-feed-container {
        height: 50px;
        margin: 0.5rem 0;
    }
    .news-feed-item {
        font-size: 0.75rem;
        padding: 0 2rem;
    }
    .processing-box {
        padding: 2rem 1.5rem !important;
        max-width: 95% !important;
    }
    .close-btn {
        top: 0.5rem;
        right: 0.5rem;
        width: 28px;
        height: 28px;
        font-size: 1.25rem;
    }
    .form-input, .form-textarea {
        font-size: 0.8125rem;
        padding: 0.625rem 0.875rem;
    }
    .form-label {
        font-size: 0.75rem;
    }
    .restricted-tag {
        padding-left: 1rem;
        font-size: 0.625rem;
    }
    .terminal-header {
        padding: 0.75rem 1rem;
    }
    .terminal-header-text {
        font-size: 0.625rem;
    }
    .login-box {
        min-width: 90% !important;
        padding: 2rem 1.5rem !important;
    }
}
@media (max-width: 640px) {
    .document-bg {
        padding: 1rem !important;
    }
    .header-glow {
        font-size: 1.25rem !important;
    }
    h1 {
        font-size: 1.25rem !important;
    }
    h2 {
        font-size: 1rem !important;
    }
    .news-feed-container {
        height: 40px;
    }
    .news-feed-item {
        font-size: 0.625rem;
        padding: 0 1.5rem;
    }
    .bg-blue-900\/30 {
        padding: 0.75rem !important;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    .flex.justify-between {
        flex-direction: column;
        gap: 1rem;
    }
    .text-right {
        text-align: left !important;
    }
    .space-y-2.pl-4 li {
        font-size: 0.875rem;
    }
    .mb-8 h3 {
        font-size: 1rem !important;
    }
}

