/* Water on Airports — custom styles on top of Pico CSS */

:root {
    --woa-blue: #0077b6;
    --woa-green: #06d6a0;
    --woa-red: #ef476f;
    --woa-yellow: #ffd166;
    --woa-gray: #6c757d;
}

/* Layout */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.container {
    flex: 1;
}

/* Navigation */
nav .role-badge {
    background: var(--woa-blue);
    color: white;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
}

.badge-active { background: var(--woa-green); color: #000; }
.badge-exhausted { background: var(--woa-gray); color: #fff; }
.badge-revoked { background: var(--woa-red); color: #fff; }

/* Cards */
.stat-card {
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-card h2 {
    margin: 0;
    font-size: 2.5rem;
    color: var(--woa-blue);
}

.stat-card p {
    margin: 0.5rem 0 0 0;
    color: var(--woa-gray);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

/* Response area */
.response-area {
    background: var(--pico-code-background-color);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.9rem;
    max-height: 400px;
    overflow-y: auto;
}

/* Dispense result */
.result-success {
    border-left: 4px solid var(--woa-green);
    padding-left: 1rem;
}

.result-error {
    border-left: 4px solid var(--woa-red);
    padding-left: 1rem;
}

/* QR display */
.qr-display {
    font-family: monospace;
    font-size: 1.4rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: var(--pico-code-background-color);
    border-radius: 4px;
    display: inline-block;
}

/* Token remaining bar */
.remaining-bar {
    height: 8px;
    border-radius: 4px;
    background: var(--pico-muted-border-color);
    overflow: hidden;
    margin-top: 0.5rem;
}

.remaining-bar-fill {
    height: 100%;
    background: var(--woa-green);
    transition: width 0.3s ease;
}

/* Hide sections by default */
.role-section {
    display: none;
}

.role-section.active {
    display: block;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    color: var(--woa-gray);
    font-size: 0.85rem;
}
