* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    transition: background 0.5s, color 0.5s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.footer-bg-color {
    background-color: #f97316;
    margin-top: auto;
    width: 100%;
    color: white;
    position: relative;
}

h1,
h2 {
    color: #f97316;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
}

.highlight {
    background: #eaf2ff;
    padding: 10px;
    border-left: 4px solid #f97316;
    margin: 20px 0;
    color: #374151;
}

ul {
    padding-left: 20px;
}

li {
    margin-bottom: 10px;
}


.mono {
    font-family: 'Space Mono', monospace;
}

.timer-ring {
    transition: stroke-dashoffset 0.5s linear;
}

@keyframes pulse-glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px var(--glow-color));
    }

    50% {
        filter: drop-shadow(0 0 24px var(--glow-color));
    }
}

.glow-active {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.5s ease-out forwards;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.shake {
    animation: shake 0.4s ease-in-out;
}

.session-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 500;
    z-index: 1050;
    animation: fade-in 0.3s ease-out forwards;
    pointer-events: none;
}

input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    border-radius: 3px;
    outline: none;
    width: 100%;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.dark input[type="range"] {
    background: #374151;
}

.dark input[type="range"]::-webkit-slider-thumb {
    background: #f97316;
}

.dark input[type="range"]::-moz-range-thumb {
    background: #f97316;
}

.light input[type="range"] {
    background: #e5e7eb;
}

.light input[type="range"]::-webkit-slider-thumb {
    background: #ea580c;
}

.light input[type="range"]::-moz-range-thumb {
    background: #ea580c;
}

.mode-btn {
    transition: all 0.25s;
}

.mode-btn.active {
    transform: scale(1.05);
}

.app-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.main-content {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    flex: 1;
    overflow: hidden;
}

.timer-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tasks-sidebar {
    width: 250px;
    display: flex;
    flex-direction: column;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-icon:hover {
    opacity: 0.8;
}

.task-action-btn {
    padding: 0.25rem;
    border: none;
    background: transparent;
    color: #38bdf8;
    /* fixed light-blue icon color */
    transition: none;
}

.task-action-btn:hover {
    color: #38bdf8 !important;
    background: transparent !important;
}

.task-action-delete {
    color: #ef4444 !important;
}

.task-action-delete:hover {
    color: #ef4444 !important;
    background: transparent !important;
}

.settings-panel {
    border-radius: 1rem;
    padding: 1.5rem;
}

.range-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.range-label .mono {
    font-weight: 600;
}

.toggle-switch {
    width: 48px;
    height: 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
}

.toggle-switch .dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.25s;
}

.sound-option {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    text-align: left;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .tasks-sidebar {
        width: 100%;
        max-height: 250px;
    }

    .top-bar {
        padding: 1rem;
    }
}