@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

* {
    font-family: 'Nunito', 'Segoe UI', 'Arial', sans-serif;
    letter-spacing: 0;
}

body {
    background: #e0e5ec;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===== Neumorphic Panel (raised) ===== */
.neumorph {
    background: #e0e5ec;
    border-radius: 16px;
    box-shadow:
        12px 12px 24px rgba(163, 177, 198, 0.5),
        -12px -12px 24px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
}

.neumorph-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorph-hover:hover {
    box-shadow:
        8px 8px 16px rgba(163, 177, 198, 0.6),
        -8px -8px 16px rgba(255, 255, 255, 0.6),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ===== Neumorphic Inset (for inputs, pressed states) ===== */
.neumorph-inset {
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow:
        inset 6px 6px 14px rgba(163, 177, 198, 0.45),
        inset -6px -6px 14px rgba(255, 255, 255, 0.55);
    border: none;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.neumorph-inset:focus {
    box-shadow:
        inset 8px 8px 18px rgba(163, 177, 198, 0.5),
        inset -8px -8px 18px rgba(255, 255, 255, 0.6);
    background: #dde2ea;
}

/* ===== Neumorphic Button ===== */
.neumorph-btn {
    background: #e0e5ec;
    border-radius: 12px;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.5),
        -6px -6px 14px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
}

.neumorph-btn:hover {
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.6),
        -4px -4px 10px rgba(255, 255, 255, 0.6),
        inset 1px 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.neumorph-btn:active {
    box-shadow:
        inset 5px 5px 12px rgba(163, 177, 198, 0.5),
        inset -5px -5px 12px rgba(255, 255, 255, 0.5);
    transform: scale(0.97);
}

/* ===== Neumorphic Checkbox ===== */
.neo-checkbox {
    background: #e0e5ec;
    border-radius: 50%;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.5),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neo-checkbox:hover {
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.6),
        -3px -3px 8px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.neo-checkbox:active {
    box-shadow:
        inset 3px 3px 8px rgba(163, 177, 198, 0.4),
        inset -3px -3px 8px rgba(255, 255, 255, 0.5);
    transform: scale(0.92);
}

.neo-checkbox.checked {
    box-shadow:
        inset 3px 3px 8px rgba(163, 177, 198, 0.4),
        inset -3px -3px 8px rgba(255, 255, 255, 0.5);
    background: #6b9e78;
}

/* ===== Priority indicators (solid badges with neumorphic depth) ===== */
.priority-high {
    background: #c97b7b;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.priority-medium {
    background: #9b8abf;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.priority-low {
    background: #7c9cbf;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

/* ===== Category badges (soft neumorphic, no harsh gradients) ===== */
.category-work {
    background: #9b8abf;
    color: #fff;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.category-study {
    background: #7c9cbf;
    color: #fff;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.category-life {
    background: #c9a0b0;
    color: #fff;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.category-personal {
    background: #6b9e78;
    color: #fff;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
.category-other {
    background: #d4a574;
    color: #fff;
    box-shadow:
        2px 2px 6px rgba(163, 177, 198, 0.4),
        -2px -2px 6px rgba(255, 255, 255, 0.4),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

/* ===== Neumorphic Task Card ===== */
.neumorph-task {
    background: #e0e5ec;
    box-shadow:
        8px 8px 18px rgba(163, 177, 198, 0.5),
        -8px -8px 18px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.neumorph-task:hover {
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.55),
        -6px -6px 14px rgba(255, 255, 255, 0.55),
        inset 1px 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* ===== Neumorphic Icon Button ===== */
.neo-icon-btn {
    background: #e0e5ec;
    border-radius: 10px;
    box-shadow:
        4px 4px 10px rgba(163, 177, 198, 0.45),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.neo-icon-btn:hover {
    box-shadow:
        3px 3px 8px rgba(163, 177, 198, 0.55),
        -3px -3px 8px rgba(255, 255, 255, 0.6),
        inset 1px 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
}

.neo-icon-btn:active {
    box-shadow:
        inset 3px 3px 8px rgba(163, 177, 198, 0.45),
        inset -3px -3px 8px rgba(255, 255, 255, 0.5);
    transform: scale(0.92);
}

/* ===== Filter button active state ===== */
.filter-btn.active {
    box-shadow:
        inset 4px 4px 10px rgba(163, 177, 198, 0.55),
        inset -4px -4px 10px rgba(255, 255, 255, 0.6);
    font-weight: 700;
    background: #dbe0e8;
}

.filter-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:active {
    box-shadow:
        inset 4px 4px 10px rgba(163, 177, 198, 0.55),
        inset -4px -4px 10px rgba(255, 255, 255, 0.6);
    transform: scale(0.96);
}

/* ===== Animations ===== */
@keyframes slide-in {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes task-success {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(1deg);
    }
    50% {
        transform: scale(1.02) rotate(-0.5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.task-complete {
    animation: task-success 0.6s ease-out;
}

@keyframes countdown-tick {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.countdown-display {
    animation: countdown-tick 1s infinite;
    font-weight: bold;
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    .mobile-full {
        width: 100%;
    }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #e0e5ec;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c5ccd8, #d0d6e0);
    border-radius: 3px;
    box-shadow:
        inset 1px 1px 2px rgba(255, 255, 255, 0.5),
        inset -1px -1px 2px rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #b8bfcb, #c5ccd8);
}

/* ===== Datetime input ===== */
input[type="datetime-local"] {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237c9cbf' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: opacity(0.5);
    cursor: pointer;
}

input[type="datetime-local"]:focus::-webkit-calendar-picker-indicator,
input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
    filter: opacity(0.8);
}

input[type="datetime-local"]:invalid::-webkit-datetime-edit {
    color: #9ca3af;
}

input[type="datetime-local"].has-value::-webkit-datetime-edit {
    color: #374151;
    font-weight: 500;
}

@media (max-width: 768px) {
    input[type="datetime-local"] {
        font-size: 14px;
        padding: 12px;
    }
}

/* ===== Quick time buttons ===== */
#quickTimeButtons {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Notification system ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 14px;
    color: #fff;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(420px);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 200px;
    max-width: 400px;
    border: none;
}

.notification-success {
    background: #6b9e78;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.notification-error {
    background: #c97b7b;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.notification-warning {
    background: #d4a574;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}

.notification-info {
    background: #9b8abf;
    box-shadow:
        6px 6px 14px rgba(163, 177, 198, 0.4),
        -4px -4px 10px rgba(255, 255, 255, 0.5),
        inset 1px 1px 0 rgba(255, 255, 255, 0.25);
}
