/* General styles */
body {
    font-family: sans-serif;
    margin-top: 10px;
    background-color: #f4f4f4;
}

.container {
    min-height: 10vh;
    width: 80%;
    margin: 50px auto 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.dashboard-container {
    margin: 30px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.dashboard-container h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    color: #337ab7;
    font-weight: 600;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 90px;
    border-left: 4px solid #337ab7;
    transition: box-shadow 0.2s;
}

.dashboard-card label {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

.dashboard-card span {
    font-size: 1.3rem;
    color: #222;
    font-weight: 700;
}

@media (max-width: 600px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-container {
        padding: 10px;
    }
}
nav {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 3px;
}

nav a.active,
nav a:hover {
    background-color: #555;
}

/* Card layout */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    flex: 1 1 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card.logout {
    background-color: #f44336;
    color: white;
}

/* Form styles */
form {
    margin-top: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
select {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

button {
    background-color: #337ab7;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #286090;
}

.error {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }
}