* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}

/* Responsive Typography */
@media (max-width: 576px) {
    html {
        font-size: 14px;
    }
}

.navbar {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar h1 {
    font-size: clamp(18px, 5vw, 24px);
    flex: 1;
}

.navbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    background-color: #555;
    border-radius: 4px;
    transition: all 0.3s;
    font-size: clamp(12px, 2vw, 14px);
    white-space: nowrap;
}

.navbar nav a:hover {
    background-color: #777;
    transform: translateY(-2px);
}

.container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive padding */
@media (max-width: 576px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
}

.container h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: clamp(20px, 5vw, 28px);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: clamp(13px, 2vw, 14px);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* Mobile form optimization */
@media (max-width: 576px) {
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: clamp(12px, 2vw, 14px);
}

table thead {
    background-color: #f8f9fa;
}

table th,
table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

@media (max-width: 576px) {
    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px;
    }

    /* Stack table on mobile */
    table thead {
        display: none;
    }

    table, table tbody, table tr, table td {
        display: block;
        width: 100%;
    }

    table tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        overflow: hidden;
    }

    table td {
        text-align: left;
        padding-left: 50%;
        position: relative;
        border: none;
    }

    table td::before {
        content: attr(data-label);
        position: absolute;
        left: 6px;
        font-weight: bold;
        text-align: left;
    }
}

table tr:hover {
    background-color: #f5f5f5;
}

table a {
    color: #007bff;
    text-decoration: none;
    margin-right: 10px;
    transition: all 0.3s;
}

table a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}
