* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --bg: #080808;

    --text: #f5f5f5;

    --secondary-text: #777;

    --border: rgba(255, 255, 255, 0.12);

    --button-bg: rgba(255, 255, 255, 0.03);

    --lap-bg: rgba(255, 255, 255, 0.025);

    --accent: #ff6a00;

}


body.light {

    --bg: #f3f3f1;

    --text: #111;

    --secondary-text: #777;

    --border: rgba(0, 0, 0, 0.12);

    --button-bg: rgba(0, 0, 0, 0.03);

    --lap-bg: rgba(0, 0, 0, 0.03);

}


body {

    min-height: 100vh;

    background: var(--bg);

    color: var(--text);

    font-family: "Inter", sans-serif;

    transition: 0.3s ease;

}


/* TEMA */

.theme-container {

    position: fixed;

    top: 28px;

    right: 35px;

    display: flex;

    align-items: center;

    gap: 10px;

    z-index: 100;

}


.theme-icon {

    font-size: 16px;

    opacity: 0.6;

}


.theme-switch {

    position: relative;

    width: 46px;

    height: 24px;

}


.theme-switch input {

    display: none;

}


.slider {

    position: absolute;

    inset: 0;

    background: var(--border);

    border-radius: 50px;

    cursor: pointer;

}


.slider::before {

    content: "";

    position: absolute;

    width: 18px;

    height: 18px;

    top: 3px;

    left: 3px;

    background: var(--text);

    border-radius: 50%;

    transition: 0.3s;

}


.theme-switch input:checked + .slider::before {

    transform: translateX(22px);

}


/* ANA ALAN */

.app {

    min-height: 100vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 80px 20px 40px;

}


.timer-section {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.mode-title {

    font-size: 11px;

    letter-spacing: 5px;

    color: var(--secondary-text);

    margin-bottom: 25px;

}


.timer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-bottom: 50px;

}


.time-block {

    display: flex;

    flex-direction: column;

    align-items: center;

}


.time-block span {

    font-size: clamp(55px, 11vw, 150px);

    font-weight: 100;

    letter-spacing: -7px;

    line-height: 1;

    font-variant-numeric: tabular-nums;

}


.time-block small {

    margin-top: 15px;

    font-size: 9px;

    letter-spacing: 3px;

    color: var(--secondary-text);

}


.separator {

    font-size: clamp(40px, 7vw, 90px);

    font-weight: 100;

    opacity: 0.25;

    margin-bottom: 25px;

}


/* BUTONLAR */

.controls {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

}


button {

    padding: 14px 26px;

    border: 1px solid var(--border);

    border-radius: 50px;

    background: var(--button-bg);

    color: var(--text);

    font-family: inherit;

    font-size: 10px;

    letter-spacing: 2px;

    cursor: pointer;

    transition: 0.25s ease;

}


button:hover {

    background: var(--accent);

    border-color: var(--accent);

    color: white;

    transform: translateY(-2px);

    box-shadow: 0 0 25px rgba(255, 106, 0, 0.35);

}


button:active {

    transform: scale(0.96);

}


.lap-button {

    margin-top: 20px;

}


/* TURLAR */

.laps-section {

    width: min(700px, 90vw);

    margin-top: 70px;

    border-top: 1px solid var(--border);

    padding-top: 25px;

}


.laps-header {

    display: flex;

    justify-content: space-between;

    color: var(--secondary-text);

    font-size: 10px;

    letter-spacing: 3px;

    margin-bottom: 15px;

}


.laps-list {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.empty-message {

    text-align: center;

    padding: 25px;

    color: var(--secondary-text);

    font-size: 12px;

}


.lap-item {

    display: flex;

    justify-content: space-between;

    padding: 15px 20px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--lap-bg);

}


.lap-name {

    font-size: 10px;

    letter-spacing: 3px;

    color: var(--secondary-text);

}


.lap-time {

    font-size: 14px;

    font-weight: 300;

    letter-spacing: 2px;

}


/* MODAL */

.modal-overlay {

    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: rgba(0, 0, 0, 0.7);

    opacity: 0;

    visibility: hidden;

    transition: 0.3s;

    z-index: 1000;

}


.modal-overlay.active {

    opacity: 1;

    visibility: visible;

}


.time-modal {

    position: relative;

    width: min(420px, 90vw);

    padding: 40px;

    background: var(--bg);

    border: 1px solid var(--border);

    border-radius: 20px;

    text-align: center;

}


.time-modal h2 {

    font-size: 14px;

    letter-spacing: 4px;

    margin-bottom: 12px;

}


.time-modal p {

    color: var(--secondary-text);

    font-size: 12px;

    margin-bottom: 30px;

}


.close-modal {

    position: absolute;

    top: 15px;

    right: 15px;

    width: 35px;

    height: 35px;

    padding: 0;

    font-size: 20px;

}


.time-inputs {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-bottom: 25px;

}


.input-group {

    display: flex;

    flex-direction: column;

    gap: 10px;

}


.input-group label {

    font-size: 9px;

    letter-spacing: 2px;

    color: var(--secondary-text);

}


.input-group input {

    width: 120px;

    padding: 15px;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--button-bg);

    color: var(--text);

    text-align: center;

    font-family: inherit;

    font-size: 25px;

    outline: none;

}


.save-time-btn {

    width: 100%;

}


/* MOBİL */

@media (max-width: 600px) {

    .theme-container {

        top: 18px;

        right: 20px;

    }

    .timer {

        gap: 7px;

    }

    .time-block span {

        letter-spacing: -3px;

    }

    .time-inputs {

        flex-direction: column;

        align-items: center;

    }

}