* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

:root {
    --bg-primary: #0f1724;
    --bg-secondary: #1a2536;
    --bg-card: rgba(26, 37, 54, 0.9);
    --text-primary: #e8edf4;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #2d3b50;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --shadow: rgba(0, 0, 0, 0.3);
    --white: #ffffff;
    --input-bg: #243044;
    --tab-bg: #1a2536;
    --tab-active: #2d3b50;
    --calendar-hover: #2d3b50;
    --calendar-today: #3b82f6;
    --calendar-selected: #3b82f6;
    --prayer-bg: #1a2536;
}

body.light-mode {
    --bg-primary: #f6f9fc;
    --bg-secondary: #e9f1f8;
    --bg-card: rgba(255, 255, 255, 0.85);
    --text-primary: #0b2b40;
    --text-secondary: #2c4a62;
    --text-muted: #829bad;
    --border-color: #d8e3ec;
    --accent: #1e4a6b;
    --accent-hover: #0f3b5c;
    --green: #059669;
    --yellow: #d97706;
    --red: #dc2626;
    --shadow: rgba(0, 20, 40, 0.25);
    --white: #ffffff;
    --input-bg: #ffffff;
    --tab-bg: #e2ecf5;
    --tab-active: #ffffff;
    --calendar-hover: #e2ecf5;
    --calendar-today: #1e4a6b;
    --calendar-selected: #1e4a6b;
    --prayer-bg: #e2ecf5;
}

body {
    background: linear-gradient(145deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    margin: 0;
    transition: background 0.3s ease;
}

.app-card {
    max-width: 900px;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px var(--shadow),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 2rem 1.8rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    transition: color 0.3s ease;
}

h1 span {
    background: var(--accent);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    letter-spacing: 0.3px;
}

.theme-toggle {
    background: var(--tab-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--tab-active);
    transform: scale(1.1);
}

.datetime-container {
    background: var(--prayer-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    transition: background 0.3s ease;
}

.datetime-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.clock {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 2px;
}

.date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.prayer-times {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.prayer-item {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 70px;
    transition: all 0.3s ease;
}

.prayer-item span:first-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.prayer-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}

.prayer-item.active {
    background: var(--accent);
    border-color: var(--accent);
}

.prayer-item.active span {
    color: var(--white);
}

.tabs {
    display: flex;
    gap: 0.75rem;
    background: var(--tab-bg);
    padding: 0.45rem;
    border-radius: 60px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.85rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.tab-btn i {
    font-style: normal;
    font-size: 1.2rem;
}

.tab-btn:hover {
    background: var(--tab-active);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--tab-active);
    color: var(--accent);
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

.task-panel {
    display: none;
    animation: fadeSlide 0.3s ease;
}

.task-panel.active-panel {
    display: block;
}

@keyframes fadeSlide {
    0% {
        opacity: 0.3;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-toggle-container {
    margin-bottom: 1rem;
}

.calendar-toggle-btn {
    background: var(--tab-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.calendar-toggle-btn:hover {
    background: var(--tab-active);
    border-color: var(--accent);
}

.calendar-container {
    background: var(--prayer-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 825px;
}

.calendar-container.hidden {
    max-height: 0;
    padding: 0;
    margin-bottom: 0;
    border: none;
    opacity: 0;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.calendar-nav {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.calendar-nav:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.calendar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.3rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.3rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}

.calendar-day:hover {
    background: var(--calendar-hover);
    border-color: var(--border-color);
}

.calendar-day.today {
    background: var(--calendar-today);
    color: var(--white);
    font-weight: 700;
}

.calendar-day.selected {
    background: var(--calendar-selected);
    color: var(--white);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.calendar-day.has-task::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.calendar-day.today.has-task::after,
.calendar-day.selected.has-task::after {
    background: var(--white);
}

.calendar-day.other-month {
    opacity: 0.3;
    cursor: default;
}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    background: var(--tab-bg);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    padding: 0.5rem;
}

.date-nav-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.date-nav-btn:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.date-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.selected-date-info {
    margin-bottom: 1rem;
}

.selected-date-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.progress-bar {
    flex: 1;
    height: 10px;
    background: var(--tab-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--green));
    border-radius: 20px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 80px;
    text-align: right;
    transition: color 0.3s ease;
}

.input-area {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.input-area input[type="text"] {
    flex: 1 1 200px;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 40px;
    background: var(--input-bg);
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.input-area input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
}

.input-area input[type="text"]::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.difficulty-select,
.filter-select {
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 40px;
    background: var(--input-bg);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
}

.difficulty-select:focus,
.filter-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
}

.btn-add {
    background: var(--accent);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.9rem 1.8rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 10px 18px -8px rgba(59, 130, 246, 0.4);
    transition: background 0.2s, transform 0.1s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-add:hover {
    background: var(--accent-hover);
}

.btn-add:active {
    transform: scale(0.96);
}

.filter-area {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-select {
    flex: 1;
    min-width: 130px;
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

.task-list {
    list-style: none;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 4px;
}

.task-list::-webkit-scrollbar {
    width: 6px;
}

.task-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 20px;
}

.task-item {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    padding: 0.9rem 1.2rem;
    border-radius: 30px;
    gap: 0.8rem;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    transition: all 0.2s;
    animation: itemPop 0.2s ease;
}

@keyframes itemPop {
    0% {
        opacity: 0;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.task-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.2);
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    min-width: 26px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: var(--input-bg);
    position: relative;
}

.task-checkbox:hover {
    border-color: var(--accent);
}

.task-checkbox:checked {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.task-checkbox:checked::after {
    content: "✓";
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.task-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    word-break: break-word;
    transition: color 0.2s, text-decoration 0.2s;
    cursor: pointer;
    padding: 0 2px;
}

.task-text:hover {
    color: var(--accent);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-mudah {
    background: rgba(16, 185, 129, 0.2);
    color: var(--green);
}

.badge-sedang {
    background: rgba(245, 158, 11, 0.2);
    color: var(--yellow);
}

.badge-sulit {
    background: rgba(239, 68, 68, 0.2);
    color: var(--red);
}

.btn-edit {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.1s;
    padding: 4px 6px;
    border-radius: 50%;
}

.btn-edit:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.btn-delete {
    background: transparent;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, transform 0.1s;
    line-height: 1;
    padding: 6px 8px;
    border-radius: 30px;
}

.btn-delete:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.empty-message {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-muted);
    font-style: italic;
    background: var(--tab-bg);
    border-radius: 40px;
    border: 2px dashed var(--border-color);
    margin-top: 0.6rem;
    font-weight: 500;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.monthly-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.monthly-summary {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

.monthly-summary::-webkit-scrollbar {
    width: 6px;
}

.monthly-summary::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 20px;
}

.monthly-day-group {
    margin-bottom: 1.5rem;
}

.monthly-day-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--tab-bg);
    border-radius: 10px;
}

.monthly-task-item {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    padding: 0.7rem 1rem;
    border-radius: 20px;
    gap: 0.6rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.monthly-task-item:hover {
    border-color: var(--accent);
    background: var(--tab-active);
}

.monthly-task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.stats-container {
    padding: 1rem;
}

.stats-container h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

.stats-detail {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.2rem;
    margin-bottom: 1rem;
}

.stats-detail h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.btn-export,
.btn-import {
    background: var(--accent);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    cursor: pointer;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.1s;
    margin: 0.5rem;
}

.btn-export:hover,
.btn-import:hover {
    background: var(--accent-hover);
}

.btn-export:active,
.btn-import:active {
    transform: scale(0.96);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.modal h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.modal-task-text {
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.5rem;
    background: var(--input-bg);
    border-radius: 10px;
    margin: 0.5rem 0 1rem 0;
}

.edit-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.edit-form label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.edit-form input[type="text"] {
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    background: var(--input-bg);
    font-size: 1rem;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
    color: var(--text-primary);
}

.edit-form input[type="text"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.2);
}

.edit-form .difficulty-select {
    width: 100%;
}

.modal-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-cancel,
.btn-confirm-delete,
.btn-confirm-edit {
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.btn-cancel {
    background: var(--tab-bg);
    color: var(--text-primary);
}

.btn-cancel:hover {
    background: var(--tab-active);
}

.btn-confirm-delete {
    background: var(--red);
    color: var(--white);
}

.btn-confirm-delete:hover {
    background: #dc2626;
    transform: scale(1.05);
}

.btn-confirm-edit {
    background: var(--accent);
    color: var(--white);
}

.btn-confirm-edit:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 550px) {
    .app-card {
        padding: 1.5rem 1.1rem;
        border-radius: 2rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .datetime-container {
        flex-direction: column;
        align-items: stretch;
    }

    .prayer-times {
        justify-content: space-between;
    }

    .prayer-item {
        min-width: 60px;
        padding: 0.4rem 0.5rem;
    }

    .tabs {
        gap: 0.3rem;
    }

    .tab-btn {
        font-size: 0.85rem;
        padding: 0.7rem 0.5rem;
        gap: 3px;
    }

    .input-area {
        flex-direction: column;
    }

    .btn-add {
        justify-content: center;
        width: 100%;
    }

    .task-item {
        padding: 0.75rem 0.9rem;
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .filter-area {
        flex-direction: column;
    }

    .calendar-day {
        font-size: 0.8rem;
    }

    .date-navigation {
        flex-direction: row;
        gap: 0.5rem;
    }

    .date-nav-title {
        font-size: 0.9rem;
    }
}