/* 
 * ZENITH.CSS v3.5.0
 * The Complete Uncompressed Master File
 * Includes: Full Grid, Typography, Forms, Tables, Progress, Checkboxes, Accents
 */

:root {
    /* -- PALETTE -- */
    --z-void: #050608;          /* Deepest Background */
    --z-panel: #0f1115;         /* Card Surface */
    --z-panel-border: #30363D;  /* Borders */
    
    /* -- ACCENTS -- */
    --z-primary: #E2FF00;       /* Zenith Yellow */
    --z-danger: #FF2A2A;        /* Alert Red */
    --z-success: #00FF9D;       /* System Green */
    --z-info: #00D1FF;          /* Data Blue */
    --z-warning: #FFB800;       /* Warning Orange */
    
    /* -- TEXT -- */
    --z-text-main: #F4F4F5;
    --z-text-muted: #8B949E;
    
    /* -- FONTS -- */
    --z-font-sans: 'Rajdhani', system-ui, -apple-system, sans-serif;
    --z-font-mono: 'Share Tech Mono', monospace;

    /* -- SETTINGS -- */
    --z-cut: 12px;              /* Chamfer size */
    --z-gutter: 1.5rem;         /* Grid gutter width */
}

/* =========================================
   1. RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background-color: var(--z-void);
    color: var(--z-text-main);
    font-family: var(--z-font-sans);
    line-height: 1.6;
    margin: 0;
    font-size: 18px;
    /* Global Scanline Texture */
    background-image: 
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
        linear-gradient(90deg, rgba(255,0,0,0.06), rgba(0,255,0,0.02), rgba(0,0,255,0.06));
    background-size: 100% 2px, 3px 100%;
}

a {
    color: var(--z-primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    text-shadow: 0 0 8px rgba(226, 255, 0, 0.4);
    text-decoration: underline;
}

hr {
    border: 0;
    height: 1px;
    background: var(--z-panel-border);
    margin: 2rem 0;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: white;
    letter-spacing: 0.05em;
}

h1 { font-size: 3.5rem; }
h2 { 
    font-size: 2.5rem; 
    border-bottom: 2px solid var(--z-primary); 
    display: inline-block; 
    padding-bottom: 0.2rem; 
}
h3 { font-size: 2rem; color: var(--z-primary); }
h4 { font-size: 1.5rem; }
h5 { 
    font-size: 1.25rem; 
    font-family: var(--z-font-mono); 
    color: var(--z-text-muted); 
}
h6 { 
    font-size: 1rem; 
    font-family: var(--z-font-mono); 
    letter-spacing: 0.15em; 
}

p {
    margin-bottom: 1.5rem;
    max-width: 75ch;
}

/* -- Blockquotes -- */
blockquote {
    border-left: 4px solid var(--z-primary);
    background: rgba(255, 255, 255, 0.03);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    font-style: italic;
    color: var(--z-text-muted);
    font-size: 1.1rem;
}

blockquote footer {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: var(--z-primary);
    font-family: var(--z-font-mono);
    text-transform: uppercase;
}

blockquote footer::before { content: "— "; }

/* -- Lists -- */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

ul { list-style: none; }

ul li::before {
    content: "■"; 
    color: var(--z-primary);
    font-size: 0.8em;
    display: inline-block; 
    width: 1.5em; 
    margin-left: -1.5em;
}

ol {
    list-style-type: decimal-leading-zero;
    color: var(--z-text-muted);
}

ol li::marker {
    color: var(--z-primary);
    font-family: var(--z-font-mono);
    font-weight: bold;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 2rem;
    margin-bottom: 1.5rem;
}

dt {
    font-weight: bold;
    color: var(--z-primary);
    text-transform: uppercase;
    font-size: 0.875rem;
}

dd {
    margin: 0;
    color: var(--z-text-muted);
}

/* -- Inline Elements -- */
code {
    font-family: var(--z-font-mono);
    font-size: 0.9em;
    color: var(--z-primary);
    background: rgba(226, 255, 0, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 2px;
}

kbd {
    background-color: var(--z-panel-border);
    border: 1px solid #555;
    border-radius: 3px;
    box-shadow: 0 2px 0 #000;
    color: white;
    font-family: var(--z-font-mono);
    font-size: 0.85em;
    padding: 0.2em 0.5em;
    display: inline-block;
}

mark {
    background-color: var(--z-primary);
    color: black;
    padding: 0 0.2em;
    font-weight: bold;
}

small {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--z-text-muted);
}

/* =========================================
   3. RESPONSIVE GRID SYSTEM
   ========================================= */
.z-container, .z-container-fluid {
    width: 100%;
    padding-right: var(--z-gutter);
    padding-left: var(--z-gutter);
    margin-right: auto;
    margin-left: auto;
}

/* Fluid is always full width */
.z-container-fluid { max-width: 100%; }

/* Container Breakpoints */
@media (min-width: 576px) { .z-container { max-width: 540px; } }
@media (min-width: 768px) { .z-container { max-width: 720px; } }
@media (min-width: 992px) { .z-container { max-width: 960px; } }
@media (min-width: 1200px) { .z-container { max-width: 1140px; } }
@media (min-width: 1400px) { .z-container { max-width: 1320px; } }

.z-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(var(--z-gutter) * -0.5);
    margin-left: calc(var(--z-gutter) * -0.5);
}

[class*="z-col-"] {
    position: relative;
    width: 100%;
    padding-right: calc(var(--z-gutter) * 0.5);
    padding-left: calc(var(--z-gutter) * 0.5);
}

/* Mobile First (Default) */
.z-col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .z-col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .z-col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .z-col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .z-col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .z-col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .z-col-md-6 { flex: 0 0 50%; max-width: 50%; }
    .z-col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .z-col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .z-col-md-9 { flex: 0 0 75%; max-width: 75%; }
    .z-col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .z-col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .z-col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Large Devices (Desktops, 992px and up) */
@media (min-width: 992px) {
    .z-col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .z-col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .z-col-lg-3 { flex: 0 0 25%; max-width: 25%; }
    .z-col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .z-col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .z-col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .z-col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .z-col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .z-col-lg-9 { flex: 0 0 75%; max-width: 75%; }
    .z-col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .z-col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .z-col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* =========================================
   4. PROGRESS BARS
   ========================================= */
.z-progress {
    display: flex;
    height: 1.5rem;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--z-panel-border);
    margin-bottom: 1.5rem;
    /* Chamfered bottom-left */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.z-progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #000;
    text-align: center;
    white-space: nowrap;
    background-color: var(--z-primary);
    transition: width 0.6s ease;
    font-family: var(--z-font-mono);
    font-weight: bold;
    font-size: 0.75rem;
}

/* Progress Variants */
.z-progress-bar-danger { background-color: var(--z-danger); color: black; }
.z-progress-bar-success { background-color: var(--z-success); color: black; }
.z-progress-bar-info { background-color: var(--z-info); color: black; }

/* Progress Effects */
.z-progress-bar-striped {
    background-image: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(0, 0, 0, 0.15) 50%,
        rgba(0, 0, 0, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

.z-progress-bar-animated {
    animation: z-progress-stripes 1s linear infinite;
}

@keyframes z-progress-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Progress Sizes */
.z-progress-sm { height: 0.5rem; }
.z-progress-lg { height: 2rem; font-size: 1rem; }

/* =========================================
   5. TABLES
   ========================================= */
.z-table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
    border: 1px solid var(--z-panel-border);
}

.z-table {
    width: 100%;
    margin-bottom: 0;
    color: var(--z-text-main);
    border-collapse: collapse;
    font-family: var(--z-font-mono);
    font-size: 0.9rem;
}

.z-table th, .z-table td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--z-panel-border);
}

.z-table th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--z-primary);
    text-align: left;
    color: var(--z-primary);
    text-transform: uppercase;
    font-weight: normal;
    background: rgba(226, 255, 0, 0.05);
}

.z-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

/* =========================================
   6. FORMS & CHECKBOXES
   ========================================= */
.z-form-group {
    margin-bottom: 1.5rem;
}

.z-label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-family: var(--z-font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--z-text-muted);
}

.z-input, .z-select, .z-textarea {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--z-text-main);
    background-color: rgba(0,0,0,0.3);
    background-clip: padding-box;
    border: 1px solid var(--z-panel-border);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: var(--z-font-mono);
}

.z-input:focus, .z-select:focus, .z-textarea:focus {
    border-color: var(--z-primary);
    outline: 0;
    box-shadow: 0 0 0 0.1rem rgba(226, 255, 0, 0.25);
    color: white;
}

.z-input::placeholder { color: #555; }

.z-input:disabled {
    background-color: #1a1a1a;
    cursor: not-allowed;
    opacity: 0.7;
}

.z-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238B949E' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

.z-range {
    width: 100%;
    height: 1.4rem;
    padding: 0;
    background-color: transparent;
    appearance: none;
}

.z-range::-webkit-slider-thumb {
    appearance: none;
    margin-top: -6px;
    height: 1.2rem;
    width: 1.2rem;
    background: var(--z-primary);
    border: 1px solid black;
    cursor: pointer;
}

.z-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    background-color: var(--z-panel-border);
}

/* --- Checkboxes --- */
.z-check {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.5rem;
    font-family: var(--z-font-sans);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--z-text-main);
}

.z-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.z-check-box {
    height: 1.25rem;
    width: 1.25rem;
    border: 1px solid var(--z-text-muted);
    background-color: transparent;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.z-check:hover .z-check-box {
    border-color: var(--z-text-main);
}

.z-check input:checked ~ .z-check-box {
    border-color: var(--z-primary);
    background-color: var(--z-primary);
    box-shadow: 0 0 10px rgba(226, 255, 0, 0.2);
}

.z-check-box::after {
    content: "";
    display: none;
    width: 8px;
    height: 8px;
    background: black;
}

.z-check input:checked ~ .z-check-box::after {
    display: block;
}

/* =========================================
   7. COMPONENTS (Buttons, Cards, Badges)
   ========================================= */

/* --- Buttons --- */
.z-btn {
    display: inline-block;
    font-family: var(--z-font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--z-text-main);
    text-align: center;
    vertical-align: middle;
    user-select: none;
    background-color: transparent;
    border: 1px solid var(--z-panel-border);
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.2s;
    position: relative;
    cursor: pointer;
}

/* Bracket Decorators */
.z-btn::before, .z-btn::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border: 1px solid currentColor;
    transition: 0.2s;
}

.z-btn::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.z-btn::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.z-btn:hover {
    text-decoration: none;
    background: rgba(255,255,255,0.05);
}

.z-btn-primary { color: var(--z-primary); border-color: var(--z-primary); }
.z-btn-primary:hover { background: var(--z-primary); color: black; }

.z-btn-danger { color: var(--z-danger); border-color: var(--z-danger); }
.z-btn-danger:hover { background: var(--z-danger); color: black; }

/* --- Cards --- */
.z-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--z-panel);
    background-clip: border-box;
    border: 1px solid var(--z-panel-border);
    /* Chamfered Corner */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--z-cut)), calc(100% - var(--z-cut)) 100%, 0 100%);
    margin-bottom: 1.5rem;
}

/* Card Accents (Left Border + Gradient) */
.z-card-accent-primary { background-image: linear-gradient(90deg, var(--z-primary) 4px, transparent 4px); }
.z-card-accent-danger { background-image: linear-gradient(90deg, var(--z-danger) 4px, transparent 4px); }
.z-card-accent-success { background-image: linear-gradient(90deg, var(--z-success) 4px, transparent 4px); }
.z-card-accent-info { background-image: linear-gradient(90deg, var(--z-info) 4px, transparent 4px); }

.z-card-body {
    padding: 1.5rem;
    flex: 1 1 auto;
}

.z-card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--z-panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.z-card-footer {
    padding: 0.75rem 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-top: 1px solid var(--z-panel-border);
}

/* --- Header Strip --- */
.z-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--z-text-main);
    border-bottom: 1px solid var(--z-text-main);
    padding: 0.75rem 0;
    margin-bottom: 2rem;
    font-family: var(--z-font-mono);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    width: 100%;
}
.z-strip-badge {
    border: 1px solid var(--z-success);
    color: var(--z-success);
    padding: 0.1rem 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

/* --- Badges --- */
.z-badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    font-family: var(--z-font-mono);
    border: 1px solid currentColor;
}

.z-badge-primary { color: var(--z-primary); background: rgba(226,255,0,0.1); }
.z-badge-danger { color: var(--z-danger); background: rgba(255,42,42,0.1); }

/* --- Utilities --- */
.text-primary { color: var(--z-primary) !important; }
.text-danger { color: var(--z-danger) !important; }
.text-success { color: var(--z-success) !important; }
.text-muted { color: var(--z-text-muted) !important; }
.text-mono { font-family: var(--z-font-mono) !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }