:root { 
    --bg: #0b0f14; 
    --panel: #0e141b; 
    --acc: #00e5ff; 
    --green: #69f0ae; 
    --font: 'Segoe UI', sans-serif; 
    --mono: 'Consolas', monospace; 
}

/* 1. GLOBAL RESET */
* { box-sizing: border-box; }

body { 
    background: var(--bg); 
    color: #e0f7fa; 
    font-family: var(--font); 
    margin: 0; 
    padding: 20px; 
    display: flex; 
    justify-content: center; 
}

.container { 
    width: 100%; 
    max-width: 1100px; 
    display: flex; 
    flex-direction: column; 
    gap: 25px; 
}

/* --- LOGIN PAGE --- */
.login-body { height: 100vh; align-items: center; }
.login-box { 
    background: var(--panel); 
    border: 2px solid var(--acc); 
    padding: 40px; 
    border-radius: 15px; 
    text-align: center; 
    width: 100%; 
    max-width: 400px; 
}
.login-box input { 
    width: 100%; padding: 15px; margin: 20px 0; 
    background: #000; color: #00e5ff; 
    border: 1px solid #263238; font-family: var(--mono); 
    text-align: center; font-size: 18px; 
}
.neon-text { color: var(--acc); text-shadow: 0 0 10px var(--acc); letter-spacing: 4px; margin: 0; }
.error-msg { color: #ff5c5c; margin-top: 15px; font-weight: bold; }

/* --- HEADER BANNER (UPDATED FOR TEXT POSITION) --- */
.banner { 
    height: 160px; /* Increased Height */
    border: 2px solid var(--acc); 
    border-radius: 12px; 
    padding: 10px; 
    background: var(--bg);
    
    /* Centering Layout */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.banner-inner { 
    width: 100%;
    height: 75%; /* Reduced inner height to make room for text below */
    border: 2px solid #00ffc3; 
    background: linear-gradient(to bottom, #e8fdfd, #8df5ff); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 10px; 
}
.banner-title { font-size: 28px; font-weight: 900; color: #000; margin: 0; }

.banner-sub { 
    margin-top: 15px; /* Pushed down away from the box */
    font-family: var(--mono); 
    color: #18ff9e; /* Fixed Color (Neon Green) */
    font-weight: bold; 
    text-align: center; 
    letter-spacing: 2px;
}

/* --- HEADER PILLS --- */
.info-box { 
    border: 2px solid var(--acc); 
    border-radius: 12px; 
    padding: 25px; 
    position: relative; 
    margin-top: 15px; 
}
.info-title { 
    position: absolute; top: -14px; left: 20px; 
    background: var(--bg); padding: 0 10px; 
    color: #b2ebf2; font-family: var(--mono); font-weight: bold; 
    font-size: 16px;
}

.pill-row { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 20px; 
    margin-bottom: 20px; 
}

.pill { 
    background: #112126; 
    padding: 12px 20px; 
    border-radius: 12px; 
    border: 1px solid #1f3a40; 
    font-family: var(--mono); 
    font-size: 14px; 
    display: flex; align-items: center; justify-content: center;
    color: #b2ebf2;
}
.pill.green { color: var(--green); background: #0f2f1f; }

/* --- CONTROLS GRID --- */
.controls-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    align-items: end; 
}

label {
    display: block;
    margin-bottom: 8px;
    color: #e0f7fa;
    font-family: var(--mono);
    font-size: 14px;
}

select, input { 
    display: block;
    background: var(--panel); 
    color: #fff; 
    border: 1px solid #263238; 
    border-radius: 8px; 
    width: 100%; 
    height: 50px; 
    padding: 0 15px;
    font-family: var(--mono);
    font-size: 14px;
    outline: none;
    -webkit-appearance: none;
}

/* Custom Arrow for Select Boxes */
select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300e5ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

/* --- SPLIT TIME (HH : MM) --- */
.time-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    gap: 5px;
}

.time-split select {
    width: 48%; /* Split space */
    text-align: center;
    padding: 0; 
    background-image: none; /* No arrow */
    font-weight: bold;
    cursor: pointer;
}

.colon {
    font-family: var(--mono);
    font-weight: bold;
    color: var(--acc);
    font-size: 18px;
    padding-bottom: 4px; /* Slight alignment fix */
}

/* --- BUTTONS --- */
.btn-neon { 
    background: linear-gradient(90deg, #1de9b6, #40c4ff); 
    color: #000; border: none; 
    border-radius: 12px; font-weight: 800; 
    cursor: pointer; grid-column: span 2; 
    height: 50px; 
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-neon:hover { filter: brightness(1.1); }

/* --- TABS & PAGE --- */
.page { display: none; } 
.page.active { display: block; }
.tabs { display: flex; gap: 10px; background: #10151b; padding: 10px; border-radius: 10px; margin-bottom: 15px; }
.tab-btn { background: none; border: none; color: #8ee6ff; padding: 10px 20px; font-weight: bold; cursor: pointer; }
.tab-btn.active { background: linear-gradient(90deg, #1de9b6, #40c4ff); color: #000; border-radius: 8px; }

/* --- TEXTAREA & TABLES --- */
textarea { 
    width: 100%; height: 200px; 
    background: var(--panel); color: #fff; 
    border: 1px solid #263238; border-radius: 10px; 
    padding: 15px; font-family: var(--mono); line-height: 1.4;
}
table { width: 100%; border-collapse: collapse; background: var(--panel); font-family: var(--mono); font-size: 13px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #263238; }
th { background: #101720; color: var(--acc); }
.imp-HIGH { color: #ff5c5c; } .imp-MEDIUM { color: #ffb84d; } .imp-LOW { color: #5cc06d; }

#loader { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); z-index: 99; 
    display: none; align-items: center; justify-content: center; 
    color: var(--acc); font-family: var(--mono); font-size: 24px; 
    flex-direction: column; gap: 20px;
}

@media(max-width: 768px) { .controls-grid { grid-template-columns: 1fr 1fr; } }