* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background:
        linear-gradient(rgba(15, 23, 42, 0.78)),
        url("../images/list-to-do/pexels-karola-g-4195499.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #e2e8f0;
    background-color:rgba(15, 23, 42, 0.78) ;
}

.todo-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
}

.todo-box {
    width: 100%;
    max-width: 980px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.planner-layout {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.planner-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.planner-main {
    display: flex;
    flex-direction: column;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.meta-row {
    display: grid;
    gap: 6px;
}

.menu {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    height: 40px;
    width: min(620px, 70vw);
    min-width: 420px;
    padding: 0 10px;
    border-radius: 30px;
    background-color: rgba(140, 133, 146, 0.6);
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 6px 18px;
    border-radius: 15px;
}



.menu a:hover {
    color: rgb(14, 13, 13);
    background-color: #8f7159;
}

h1 {
    margin-bottom: 8px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.today {
    text-align: right;
    color: #93c5fd;
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.weather-box {
    text-align: right;
}

#weather-text {
    color: #e2e8f0;
    font-weight: 600;
}

.todo-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.task-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: flex-start;
}

#time-input {
    min-width: 130px;
}

#task-input,
#time-input {
    height: 46px;
    line-height: 46px;
    box-sizing: border-box;
}

.progress-box {
    margin-bottom: 16px;
}

#progress-text {
    margin-bottom: 8px;
    font-weight: 600;
    color: #e2e8f0;
}

.progress-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.35);
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: #f97316;
    transition: width 0.2s ease;
}

input,
button {
    padding: 12px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

button {
    background:  #f97316;
    color: #fff;
    border: none;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.empty-state.hidden {
    display: none;
}

.todo-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.todo-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.75);
}

.todo-text {
    flex: 1;
}

.todo-time {
    color: #93c5fd;
    font-size: 0.9rem;
}

.todo-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.done {
    text-decoration: line-through;
    color: #94a3b8;
}

.btn-done {
    background: #0ea5e9;
}

.btn-not-done {
    background: #8f7159;
}

.btn-delete {
    background: #dc2626;
}

@media (max-width: 520px) {
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .menu {
        justify-content: center;
        height: auto;
        width: 100%;
        min-width: 0;
        padding: 8px;
    }

    .weather-box {
        text-align: center;
    }

    .task-row {
        grid-template-columns: 1fr;
    }

    .today {
        text-align: left;
    }

    .todo-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .todo-actions {
        width: 100%;
    }

    .todo-actions button {
        flex: 1;
    }
}
