html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f1f5f9;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: #2563eb;
    color: white;
}

.navbar h2 {
    margin: 0;
}

.nav-links a {
    margin-left: 25px;
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 500;
}

.nav-links a:hover {
    color: #ffffff;
}

.container {
    flex: 1;
    width: 90%;
    max-width: 1100px;
    margin: auto;
    margin-top: 40px;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    margin-top: 0;
    color: #475569;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0 0 0;
}

form {
    margin-top: 20px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

input,
select {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    margin-bottom: 18px;
    border-radius: 8px;
    border: 1px solid #cbd5f5;
    font-size: 14px;
    box-sizing: border-box;
}

button {
    padding: 10px 18px;
    border: none;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #1d4ed8;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

th,
td {
    padding: 14px;
    text-align: left;
}

th {
    background: #f8fafc;
}

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

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons button {
    padding: 6px 12px;
    font-size: 13px;
}

.form-card {
    max-width: 500px;
    margin: auto;
}

.dashboard .card {
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #64748b;
}

@media (max-width: 900px) {

    .dashboard {
        grid-template-columns: repeat(2, 1fr);
    }

    .container {
        width: 95%;
    }

    .navbar {
        flex-direction: column;
        gap: 10px;
    }

    .nav-links {
        display: flex;
        gap: 15px;
    }
}

@media (max-width: 500px) {

    .dashboard {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 14px;
    }

    button {
        padding: 8px 12px;
    }
}