@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&display=swap");
:root {
    --bg: #ffffff;
    --fg: #000000;
    --dim: #e0e0e0;
}
* {
    box-sizing: border-box;
}
body {
    background: var(--bg);
    color: var(--fg);
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 40px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
}
body.dark-mode {
    --fg: #ffffff;
    --bg: #000000;
}
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.col-4 {
    grid-column: span 4;
}
.col-8 {
    grid-column: span 8;
}
.col-12 {
    grid-column: span 12;
}
.alarm-item {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-right: 10px;
    border-bottom: 0px solid var(--dim);
}
.border-top {
    border-top: 2px solid var(--fg);
    padding-top: 10px;
    margin-top: 40px;
}

#clk {
    font-size: 15vw;
    line-height: 0.9;
    font-weight: 900;
    letter-spacing: -0.05em;
    margin: 20px 0;
}

input,
select,
button {
    border: 0;
    border-bottom: 2px solid var(--fg);
    border-radius: 0;
    width: 100%;
    padding: 15px 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    color: var(--fg);
    margin-bottom: 10px;
    outline: none;
    transition: all 0.1s ease;
}
button {
    cursor: pointer;
    background: var(--fg);
    color: var(--bg);
}
button:active {
    background: var(--bg);
    color: var(--fg);
}

.add-btn {
    background: var(--fg);
    color: var(--bg);
    width: 1.2em;
    height: 1.2em;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='0' y='8' width='20' height='4' fill='%23ffffff'/><rect x='8' y='0' width='4' height='20' fill='%23ffffff'/></svg>");
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center center;
}
body.dark-mode .add-btn {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='0' y='8' width='20' height='4' fill='%23000000'/><rect x='8' y='0' width='4' height='20' fill='%23000000'/></svg>");
}

.slide-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-bottom: 10px;
}
.slide-wrapper::-webkit-scrollbar {
    display: none;
}
.slide-content {
    min-width: 100%;
    scroll-snap-align: start;
}
.delete-trigger {
    min-width: 100px;
    background: #ff0000;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: end;
    cursor: pointer;
    font-size: 10px;
}
dialog {
    border: 2px solid var(--fg);
    padding: 40px;
    width: 90%;
    max-width: 500px;
    border-radius: 0;
}

.hidden {
    display: none;
}
.active-alarm {
    background: var(--fg) !important;
    color: var(--bg) !important;
    animation: step-blink 0.5s steps(2, start) infinite;
}
@keyframes step-blink {
    to {
        visibility: hidden;
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        --fg: #ffffff; /* Swap: white foreground */
        --bg: #000000; /* Swap: black background */
    }
    .add-btn {
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><rect x='0' y='8' width='20' height='4' fill='%23000000'/><rect x='8' y='0' width='4' height='20' fill='%23000000'/></svg>");
    }
}
