* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    color: #333;
}

/* ── Navigation ── */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}
.navbar a { color: #ccc; text-decoration: none; margin-left: 20px; font-size: 14px; }
.navbar a:hover { color: white; }
.navbar .brand { font-size: 18px; font-weight: bold; color: white; }

/* ── Layout ── */
.container { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.page-title { font-size: 22px; font-weight: 600; margin-bottom: 20px; color: #2c3e50; }

/* ── Cards ── */
.card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.15);
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn-primary { background: #3498db; color: white; }
.btn-success { background: #27ae60; color: white; }
.btn-danger  { background: #e74c3c; color: white; }
.btn-warning { background: #f39c12; color: white; }
.btn-secondary { background: #95a5a6; color: white; }
.btn-sm { padding: 5px 12px; font-size: 12px; }

/* ── Alerts ── */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── Login Page ── */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2c3e50, #3498db);
}
.login-box {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.login-box h2 { text-align: center; margin-bottom: 8px; color: #2c3e50; }
.login-box p  { text-align: center; color: #999; margin-bottom: 24px; font-size: 14px; }

/* ── Task Lists Grid ── */
.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.list-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 5px solid #3498db;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.list-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }
.list-card h3 { margin-bottom: 6px; color: #2c3e50; }
.list-card p  { color: #777; font-size: 13px; }
.list-card .meta { margin-top: 12px; font-size: 12px; color: #aaa; }

/* ── Task Items ── */
.task-item {
    background: white;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-left: 4px solid #ddd;
}
.task-item.priority-high   { border-left-color: #e74c3c; }
.task-item.priority-medium { border-left-color: #f39c12; }
.task-item.priority-low    { border-left-color: #27ae60; }

.task-item .task-title { font-weight: 500; margin-bottom: 4px; }
.task-item .task-meta  { font-size: 12px; color: #999; }
.task-item .task-actions { margin-left: auto; display: flex; gap: 6px; flex-shrink: 0; }

/* ── Status Badges ── */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-pending            { background: #ffeaa7; color: #856404; }
.badge-in_progress        { background: #d1ecf1; color: #0c5460; }
.badge-completed_pending_approval { background: #fff3cd; color: #856404; }
.badge-approved           { background: #d4edda; color: #155724; }
.badge-rejected           { background: #f8d7da; color: #721c24; }

/* ── Priority Badge ── */
.priority-badge { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.priority-high   { background: #fde; color: #c0392b; }
.priority-medium { background: #fef9e7; color: #d68910; }
.priority-low    { background: #eafaf1; color: #1e8449; }

/* ── Table ── */
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
table th { background: #f8f9fa; font-weight: 600; color: #555; }
table tr:hover td { background: #fafafa; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 2px solid #eee; }
.tab-btn {
    padding: 8px 18px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #777;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.tab-btn.active { color: #3498db; border-bottom-color: #3498db; font-weight: 600; }

/* ── Dashboard Stats ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-box { background: white; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,0.07); }
.stat-box .number { font-size: 32px; font-weight: 700; color: #2c3e50; }
.stat-box .label  { font-size: 13px; color: #999; margin-top: 4px; }