/* GATE 33 CHECKPOINT - OFFICIAL AUTHORITY BORDER MANAGEMENT DIVISION */

:root {
    /* Authority Brand Colors */
    --authority-blue: #1a4d7a;
    --authority-dark: #0d2840;
    --authority-gray: #4a5568;
    --authority-light-gray: #e2e8f0;
    --authority-white: #ffffff;
    --authority-accent: #2b6cb0;
    --authority-red: #c53030;
    --classified-yellow: #d69e2e;

    /* Typography */
    --font-main: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Courier New', monospace;
}

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

body {
    font-family: var(--font-main);
    background: var(--authority-light-gray);
    color: var(--authority-dark);
    line-height: 1.6;
}

/* Header / Navigation */
.header {
    background: var(--authority-blue);
    color: var(--authority-white);
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-top {
    background: var(--authority-dark);
    padding: 8px 0;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 2px solid var(--classified-yellow);
}

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.header-main h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

.header-subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 4px;
}

nav {
    background: var(--authority-accent);
    padding: 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    padding: 12px 24px;
    color: var(--authority-white);
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
}

nav ul li:last-child a {
    border-right: none;
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--authority-blue);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.content {
    background: var(--authority-white);
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--authority-dark);
    margin-bottom: 16px;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--authority-blue);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

h2 {
    font-size: 2rem;
    color: var(--authority-blue);
    margin-top: 32px;
}

h3 {
    font-size: 1.5rem;
    color: var(--authority-blue);
    margin-top: 24px;
}

p {
    margin-bottom: 16px;
}

/* Links */
a {
    color: var(--authority-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Lists */
ul, ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

li {
    margin-bottom: 8px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid var(--authority-light-gray);
}

th {
    background: var(--authority-blue);
    color: var(--authority-white);
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px;
    border-bottom: 1px solid var(--authority-light-gray);
}

tr:nth-child(even) {
    background: #f9fafb;
}

/* Alerts & Notices */
.notice {
    padding: 16px;
    margin: 24px 0;
    border-radius: 4px;
    border-left: 4px solid var(--authority-blue);
    background: #e6f2ff;
}

.warning {
    border-left-color: var(--classified-yellow);
    background: #fffbeb;
}

.alert {
    border-left-color: var(--authority-red);
    background: #fef2f2;
    color: var(--authority-red);
}

.success {
    border-left-color: #38a169;
    background: #f0fff4;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--authority-blue);
    color: var(--authority-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover {
    background: var(--authority-dark);
    text-decoration: none;
}

.btn-secondary {
    background: var(--authority-gray);
}

.btn-secondary:hover {
    background: var(--authority-dark);
}

/* Footer */
.footer {
    background: var(--authority-dark);
    color: var(--authority-white);
    padding: 32px 0;
    margin-top: 60px;
    text-align: center;
}

.footer a {
    color: var(--authority-white);
    text-decoration: underline;
}

.footer-links {
    margin-top: 16px;
}

.footer-links a {
    margin: 0 12px;
}

/* Status Indicators */
.status-operational {
    color: #38a169;
    font-weight: 600;
}

.status-degraded {
    color: var(--classified-yellow);
    font-weight: 600;
}

.status-offline {
    color: var(--authority-red);
    font-weight: 600;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--authority-light-gray);
    border-radius: 4px;
    font-family: var(--font-main);
    font-size: 1rem;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--authority-dark);
}

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

/* Breadcrumbs */
.breadcrumb {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--authority-gray);
}

.breadcrumb a {
    color: var(--authority-accent);
}

/* Cards */
.card {
    background: var(--authority-white);
    padding: 24px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-top: 0;
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .content {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
