:root {
    --bg-dark: #05050a;
    --panel-bg: #111118;
    --border: #333;
    --accent-blue: #00d2ff;
    --text-main: #d0e0ff;
    --text-secondary: #888;
    --highlight: #ffcf80;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#header {
    background-color: var(--panel-bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.header-title {
    margin: 0;
    font-size: 1.2rem;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.header-title span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: normal;
}

#pass-buttons {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

#pass-buttons::-webkit-scrollbar {
    height: 6px;
}

#pass-buttons::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 3px;
}

.pass-btn {
    flex: 0 0 auto;
    background: #1a1a24;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    cursor: pointer;
    text-align: left;
    transition: 0.2s;
    min-width: 140px;
}

.pass-btn:hover {
    background: #252533;
    border-color: #555;
}

.pass-btn.active {
    background: rgba(0, 210, 255, 0.1);
    border-color: var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.btn-date {
    font-size: 0.85rem;
    color: #9ab4e0;
    margin-bottom: 4px;
}

.btn-time {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
}

.btn-alt {
    font-size: 0.75rem;
    color: #ffb0c0;
}

.active .btn-date {
    color: var(--accent-blue);
}

.no-pass {
    padding: 10px;
    color: #aaa;
}

#main {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid var(--accent-blue);
    color: #fff;
    text-align: center;
    line-height: 1.5;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.loading-sub {
    font-size: 0.8rem;
    color: #888;
}