/* --- Modern Light Mode (Memorization Notes) --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;800&display=swap');

:root {
    --bg-page: #f0f4f8;
    --card-bg: #ffffff;
    --primary: #4776e6;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --accent-bg: #eef2ff;
    --danger: #ef4444;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.container {
    width: 95%;
    max-width: 1150px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(to right, #4776e6, #8e54e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Grouping Buttons */
.nav-group {
    display: flex;
    gap: 12px;
}

header a {
    text-decoration: none;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    transition: 0.3s;
    font-size: 14px;
}

.btn-quran {
    color: var(--primary);
    background: var(--accent-bg);
}

.btn-quran:hover {
    background: var(--primary);
    color: white;
}

.btn-logout {
    color: var(--danger);
    background: #fff5f5;
}

.btn-logout:hover {
    background: var(--danger);
    color: white;
}

/* --- Form Section --- */
#addTodoForm {
    display: flex;
    gap: 20px;
    background: var(--accent-bg);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
    align-items: flex-end;
}

.form-group { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.flex-wide { flex: 2; }

label {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

input {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    background: white;
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

button[type="submit"] {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0 30px;
    height: 52px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* --- Table Section --- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

th {
    text-align: left;
    padding: 0 20px;
    font-size: 12px;
    color: var(--text-muted);
}

tbody tr { background: white; transition: 0.3s ease; }
td { padding: 20px; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
td:first-child { border-left: 1px solid #f1f5f9; border-top-left-radius: 16px; border-bottom-left-radius: 16px; }
td:last-child { border-right: 1px solid #f1f5f9; border-top-right-radius: 16px; border-bottom-right-radius: 16px; }

tr.completed td { opacity: 0.5; }
.btn-delete {
    background: #fff5f5;
    color: var(--danger);
    border: 1px solid #fed7d7;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}