* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    min-height: 100vh;
}

/* ===== Sidebar Menu ===== */
.sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(10px);
    color: white;
    padding: 30px 20px;
    transition: left 0.35s ease;
    z-index: 1000;
}

.sidebar.open {
    left: 0;
}

.sidebar h2 {
    margin-bottom: 25px;
    font-weight: 600;
}

.sidebar ul {
    padding: 0;
}

.sidebar ul li {
    list-style: none;
    margin-bottom: 14px;
}

.sidebar ul li button {
    width: 100%;
    padding: 12px;
    background: rgba(255,255,255,0.12);
    border: none;
    border-radius: 10px;
    color: white;
    text-align: left;
    cursor: pointer;
    transition: background 0.25s;
}

.sidebar ul li button:hover {
    background: rgba(255,255,255,0.22);
}

/* ===== Main ===== */
.main-content {
    padding: 24px;
}

/* ===== Top Bar ===== */
.top-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

/* ===== Stats ===== */
.stats {
    display: flex;
    gap: 16px;
    margin: 24px 0;
}

.stat-card {
    background: white;
    padding: 18px;
    flex: 1;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ===== Add Task ===== */
.add-task {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.add-task input,
.add-task select {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: #ffffff;
}
/* ===== Filters ===== */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.filters button {
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    background: rgba(99,102,241,0.12);
    color: #1e1b4b;
    font-size: 13px;
}

.filters button.active {
    background: #4f46e5;
    color: white;
}


/* BIG ADD BUTTON */
.add-task button {
    padding: 14px 26px;
    font-size: 15px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    box-shadow: 0 8px 18px rgba(37,99,235,0.3);
}

/* ===== Task Card ===== */
/* ===== Task Cards (To-Do Style) ===== */

.task-card {
    background: white;
    padding: 16px 18px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.task-card.high {
    border-left: 6px solid #ef4444;
}

.task-main h4 {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.task-main p {
    font-size: 12px;
    color: #6b7280;
}

/* Action icons */
.actions button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: white;
}

.actions button:first-child {
    background: #10b981;
}

.actions button:last-child {
    background: #ef4444;
}

/* Completed tasks */
.completed-list .task-card {
    opacity: 0.55;
}



.completed-list h3 {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}
