/* planning.css */

/* =======================================
   MYPLANNING – TODO LIST
   ======================================= */

.planning-content {
    max-width: 1400px;
    margin: 0 auto 50px;
}

.upcoming-box {
    background-color: var(--bg-secondary);
    border: 4px solid var(--accent-primary);
    border-radius: 30px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.upcoming-box h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
    color: var(--accent-primary);
}

.upcoming-box .box-item-link {
    color: #FFFFFF;
    display: block;
    padding: 10px 0;
    font-size: 1.15em;
}

.upcoming-box .view-button {
    margin-top: 25px;
    width: 100%;
}

.todo-box {
    background-color: var(--bg-secondary);
    border: 4px solid var(--accent-primary);
    border-radius: 30px;
    padding: 25px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.todo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.todo-list li {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
}

.todo-list li:last-child { border-bottom: none; }

.delete-btn {
    background: none;
    border: none;
    font-size: 1.4em;
    margin-right: 15px;
    cursor: pointer;
    color: var(--delete-red);
    padding: 4px 8px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
    margin-left: auto;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--accent-primary);
}

input:checked + .slider:before {
    transform: translateX(28px);
}

.add-todo {
    display: flex;
    gap: 12px;
}

.add-todo input {
    flex: 3;
    padding: 14px 20px;
    border: 2px solid var(--accent-primary);
    border-radius: 25px;
    font-size: 1em;
    height: 52px;
    box-sizing: border-box;
}

.add-todo .add-button {
    flex: 1;
    padding: 14px 28px;
    height: 52px;
    box-sizing: border-box;
    white-space: nowrap;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: var(--bg-secondary);
    border: 4px solid var(--accent-primary);
    border-radius: 25px;
    padding: 30px 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.popup-content h3 {
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.popup-task {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.popup-buttons {
    display: flex;
    gap: 15px;
}

.popup-btn {
    flex: 1;
    padding: 14px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
}

.popup-btn.cancel {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--text-secondary);
}

.popup-btn.cancel:hover {
    transition: 500ms;
    background: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    font-weight: bold;
}

.popup-btn.delete {
    background: transparent;
    color: #FFFFFF;
    border: 2px solid var(--delete-red);
}

.popup-btn.delete:hover {
    transition: 500ms;
    background: var(--delete-red);
    color: #FFFFFF;
    border: 2px solid var(--delete-red);
    font-weight: bold;
}
