
@import url('https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@400;500;600&display=swap');
:root {
    --bg: #191919;
    --text: #ddd;
    --border: #555;
    --row-border: #333333;
    --sugg-bg: #1a1a1a;
    --sugg-hover: #333333;
    --placeholder: #888;
    --selection-bg: #555;
}
@media (prefers-color-scheme: light) {
    :root:not(.dark-theme) {
        --bg: #f5f5f5;
        --text: #222222;
        --border: #ccc;
        --row-border: #eeeeee;
        --sugg-bg: #ffffff;
        --sugg-hover: #e0e0e0;
        --placeholder: #777;
        --selection-bg: #ddd;
    }
}
body.light-theme {
    --bg: #f5f5f5;
    --text: #222222;
    --border: #ccc;
    --row-border: #eeeeee;
    --sugg-bg: #ffffff;
    --sugg-hover: #e0e0e0;
    --placeholder: #777;
    --selection-bg: #ddd;
}
body.dark-theme {
    --bg: #191919;
    --text: #ddd;
    --border: #555;
    --row-border: #333333;
    --sugg-bg: #1a1a1a;
    --sugg-hover: #333333;
    --placeholder: #888;
    --selection-bg: #555;
}
body, input, #clear-btn, #list, #list li {
    transition: background-color 1s ease, color1s ease, border-color 1s ease;
}
body {
    font-family: 'Barlow Semi Condensed', sans-serif;
    text-align: center;
    margin: 120px 0 0 0;
    padding: 20px;
    background-color: var(--bg);
    color: var(--text);
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.08em;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
    overflow-y: scroll;
}
#clock {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.1em;
}
.search {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    text-align: center;
}
input {
    font-family: 'Barlow Semi Condensed', sans-serif;
    font-size: 1rem;
    padding: 8px 32px;
    width: 250px;
    background-color: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    text-align: center;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.08em;
    user-select: none;
    box-sizing: border-box;
}
input:focus {
    outline: none;
    border-color: var(--text);
}
input::placeholder {
    color: var(--placeholder);
    text-align: center;
}
#clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--placeholder);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 4px;
    font-family: 'Barlow Semi Condensed', sans-serif;
    -webkit-tap-highlight-color: transparent;
}
#clear-btn:hover {
    color: var(--text);
}
#list {
    position: absolute;
    left: 0;
    right: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background-color: var(--sugg-bg);
    color: var(--text);
    list-style: none;
    margin-top: 4px;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
    text-align: center;
    scrollbar-width: none;
}
#list::-webkit-scrollbar {
    display: none;
}
#list li {
    padding: 8px 12px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: 0.08em;
}
#list li:hover,
#list li.selected {
    background-color: var(--sugg-hover);
}
#board {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.section {
    margin-top: 12px;
    display: block;
    width: 100%;
    max-width: 650px;
    text-align: center;
    box-sizing: border-box;
}
.section h3 {
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 1.25rem;
}
table {
    border-collapse: collapse;
    width: 100%;
    table-layout: fixed;
    margin: 0 auto;
    font-variant-numeric: tabular-nums;
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    border: none;
}
tr:not(:last-child) td {
    border-bottom: 1px solid var(--row-border);
}
td {
    padding: 6px 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}
td.col-dest { width: 40%; }
td.col-due { width: 20%; }
td.col-time { width: 18%; }
td.col-info { width: 22%; }

.late {
    color: #d96b6b;
}
.on-time {
    opacity: 0.7;
}
