:root {
    --bg: #05070a;
    --surface: #12141d;
    --accent: #5ecfd4;
    --accent-dim: rgba(0, 242, 255, 0.1);
    --text: #e2e8f0;
    --text-dim: #94a3b8;
    --danger: #ff4757;
    --success: #2ed573;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
}

header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #1e293b;
}

.logo { font-weight: 900; letter-spacing: 2px; font-size: 1.2rem; }
.logo span { color: var(--accent); }

.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #1e293b;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Timer Specifics */
.timer-display {
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
}

#status-label { font-weight: bold; letter-spacing: 3px; color: var(--accent); }
#time-display { font-size: 6rem; font-weight: 800; font-family: monospace; margin: 10px 0; }

.timer-controls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 30px; }
.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

/* Tracker Specifics */
.tracker-form { display: flex; flex-direction: column; gap: 12px; }
.triple-input { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

input {
    background: #1e293b;
    border: 1px solid #334155;
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

button {
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 14px;
    transition: transform 0.1s;
}

button:active { transform: scale(0.96); }
.btn-primary { background: var(--accent); color: black; }
.btn-secondary { background: #334155; color: white; }
.btn-danger { background: var(--danger); color: white; }

.log-container { margin-top: 20px; max-height: 400px; overflow-y: auto; }
.log-item {
    background: #1e293b;
    margin-bottom: 8px;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
    .main-grid { grid-template-columns: 1fr; }
    #time-display { font-size: 4.5rem; }
    .timer-controls { grid-template-columns: 1fr; }
}