:root {
    --bg-color: #050a14;
    --panel-bg: rgba(10, 20, 40, 0.7);
    --primary-blue: #00a8ff;
    --primary-white: #e0e0e0;
    --alert-red: #e74c3c;
    --success-green: #00ff41;
    --border-color: rgba(0, 168, 255, 0.3);
    --scan-line-color: rgba(0, 168, 255, 0.1);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    color: var(--primary-white);
    font-family: var(--font-body);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Scanline Effect */
.scan-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            transparent 50%,
            var(--scan-line-color) 51%,
            transparent 51%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    opacity: 0.5;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 90%);
    pointer-events: none;
    z-index: 10;
}

/* Login Page Only */
.login-body {
    align-items: center;
    justify-content: center;
}

.login-container {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    padding: 3rem;
    width: 400px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    text-align: center;
    position: relative;
    z-index: 20;
    border-radius: 4px;
}

.logo {
    width: 100px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px var(--primary-blue));
}

h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
    letter-spacing: 2px;
    color: var(--primary-blue);
    text-transform: uppercase;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--primary-white);
    opacity: 0.7;
    margin-top: 5px;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

input {
    width: 100%;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    color: var(--primary-blue);
    font-family: var(--font-heading);
    font-size: 1rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.btn-primary {
    background: var(--primary-blue);
    color: #000;
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-family: var(--font-heading);
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-primary:hover {
    background: #fff;
    box-shadow: 0 0 15px var(--primary-blue);
}

.footer-info {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid #333;
    padding-top: 1rem;
}

/* Archive / Dashboard Page */
.archive-body header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 20;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-logo {
    width: 40px;
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-text span:first-child {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-weight: bold;
}

.breadcrumb {
    font-size: 0.8rem;
    color: #888;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.user-info {
    text-align: right;
    font-size: 0.9rem;
}

.user-info span {
    display: block;
}

#clearance-display {
    color: var(--alert-red);
    font-weight: bold;
}

.btn-logout {
    background: transparent;
    border: 1px solid var(--alert-red);
    color: var(--alert-red);
    padding: 5px 15px;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: 0.3s;
}

.btn-logout:hover {
    background: var(--alert-red);
    color: #000;
}

.archive-body main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    gap: 2rem;
    z-index: 20;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    height: 100%;
}

.sector-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.sector-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    transform: translateY(-5px);
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 168, 255, 0.1), transparent);
    transition: 0.5s;
}

.sector-card:hover::before {
    left: 100%;
}







.sector-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.2);
    transform: translateY(-5px);
}

/* Ensure content stays on top of fire */
.card-header,
.card-body {
    position: relative;
    z-index: 5;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sector-title {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    font-size: 1.2rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--alert-red);
    /* Changed to RED for Locked state */
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--alert-red);
    border-radius: 50%;
    box-shadow: 0 0 5px var(--alert-red);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-info {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-left: 2px solid var(--primary-blue);
    font-family: monospace;
    color: #aaa;
    font-size: 0.9rem;
}

.file-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ddd;
}

.security-input {
    margin-top: auto;
}

.btn-download {
    display: block;
    width: 100%;
    padding: 15px;
    background: transparent;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-align: center;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
    cursor: pointer;
}

.btn-download:hover {
    background: var(--primary-blue);
    color: #000;
    box-shadow: 0 0 10px var(--primary-blue);
}

.error-banner {
    background: var(--alert-red);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-family: var(--font-heading);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}