/* === Global Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f9fafb;
    color: #1f2937;
}

/* === Navbar === */
nav {
    background-color: #4f46e5;
    color: white;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav a {
    color: #e0e7ff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

nav a:hover {
    color: #000;
}

/* === Dashboard cards === */
.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.stat-card h3 {
    color: #6b7280;
    font-size: 0.9rem;
}

.stat-card p {
    font-size: 1.6rem;
    font-weight: 700;
}

/* === Buttons === */
.btn {
    background-color: #4f46e5;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: 0.2s;
}

.btn:hover {
    background-color: #4338ca;
}

/* === Tables === */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

thead {
    background-color: #f3f4f6;
}

th,
td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

tr:nth-child(even) {
    background-color: #f9fafb;
}

/* === Forms === */
input,
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
    font-size: 0.9rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px #4f46e5;
}

/* === Alerts / Messages === */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* === Activity Feed === */
.activity {
    background: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.activity ul {
    list-style: none;
}

.activity li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.activity li:last-child {
    border-bottom: none;
}

.activity span.user {
    font-weight: 600;
    color: #4f46e5;
}

.activity span.time {
    float: right;
    font-size: 0.75rem;
    color: #9ca3af;
}

/* === Responsive === */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    th {
        background: #eef2ff;
    }

    td {
        border: none;
        border-bottom: 1px solid #e5e7eb;
    }
}