/*
*@LICENSE
*FocusMind v1.0.0
*Copyright (c) 2026 Bakhtovar Usmonov All rights reserved.
*Unauthorized copying of this file, via any medium is strictly prohibited.
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-display: swap;
}

:root {
    --bg: #0f1724;
    --card: #0b1220cc;
    --accent0: #d9ff00;
    --accent1: #35fc92;
    --muted: rgba(255, 255, 255, 0.65);
    --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    --radius: 14px;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color, #0b1220);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.loader-text {
    color: #fff;
    font-size: 16px;
    opacity: 0.8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: radial-gradient(1000px 400px at 10% 10%, rgba(124, 92, 255, 0.08), transparent), var(--bg);
    background-repeat: no-repeat;
    color: #e6eef8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 32px
}

a {
    color: #e6eef8;
}

.app {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.close {
    display: none;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 12px;
    background: var(--glass);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 30%)
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px
}

nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 30%)
}

.nav-btn {
    display: flex;
    align-items: center;
    background: radial-gradient(#000000, #0064ff4a);
    gap: 10px;
    padding: 10px;
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    cursor: pointer
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.02);
    color: #fff
}

.main {
    display: flex;
    flex-direction: column;
    gap: 16px
}

header.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 30%)
}

.title {
    font-size: 18px;
    font-weight: 600;
}

.subtitle {
    font-size: 13px;
    color: var(--muted)
}

.grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px
}

.grid {
    grid-auto-rows: minmax(120px, auto);
}

.block-settings summary {
    cursor: pointer;
    font-size: 13px;
    color: var(--muted);
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.block-settings {
    margin-top: 8px;
    display: none;
}

.card {
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 30%)
}

.timer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center
}

.time-display {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 1px
}

.timer-controls {
    display: flex;
    gap: 8px
}

.btn {
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.02);
    cursor: pointer;
    color: var(--muted)
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent0), var(--accent1));
    color: #051025;
    border: none;
    font-weight: 600;
}

/* Tasks */
.task-row {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    margin-bottom: 8px
}

.task-title {
    flex: 1
}

.task-actions {
    display: flex;
    gap: 8px
}

.task-input {
    display: flex;
    gap: 8px;
    margin-bottom: 12px
}

input[type="text"],
input[type="number"],
textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 8px;
    border-radius: 8px;
    color: inherit;
    outline: none
}

small.muted {
    color: var(--muted)
}

.footer-bar {
    display: flex;
    gap: 8px;
    justify-content: flex-end
}

.hint {
    font-size: 12px;
    color: var(--muted);
}

.settings {
    display: flex;
    justify-content: space-around;
}

.settingsChild {
    display: flex;
    align-items: center;
    gap: 4px;
}

.none {
    display: none;
}

#minutes {
    width: 84px;
    text-align: center;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid white;
    padding: 10px;
    text-align: center;
    border-radius: 20px;
    max-width: 1100px;
    margin: 20px auto;
    gap: 24px;
    align-items: center;
}

@media (max-width:920px) {
    .app {
        grid-template-columns: none;
    }

    .grid {
        grid-template-columns: none
    }
}

@media (max-width:500px) {
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
        background: radial-gradient(1000px 400px at 10% 10%, rgba(124, 92, 255, 0.08), transparent), var(--bg);
        background-repeat: no-repeat;
        color: #e6eef8;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        padding: 0;
        overflow-x: hidden;
    }

    .btn {
        padding: 7px 5px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.02);
        cursor: pointer;
        color: var(--muted);
    }

    .app {
        grid-template-columns: none;
    }

    .grid {
        grid-template-columns: none
    }

    #minutes {
        width: 60px;
        text-align: center;
    }

}

/*
*@LICENSE
*FocusMind v1.0.0
*Copyright (c) 2026 Bakhtovar Usmonov All rights reserved.
*Unauthorized copying of this file, via any medium is strictly prohibited.
*/