body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.outer-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    max-width: 1200px;
    overflow: hidden;
    padding: 20px;
}

header {
    background: linear-gradient(to right, #ed1d25, #1d1747fe);
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    justify-content: space-between;
}

header .logo-container {
    background-color: #ffffff;
    padding: 5px;
    border-radius: 5px;
    margin-right: 20px;
    flex-shrink: 0;
}

header .logo-container img {
    height: 50px;
    display: block;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #eee9edfc;
    animation: fadeIn 1.5s ease-in-out;
    flex-grow: 1;
    text-align: center;
}

.logout-button {
    background-color: #fff;
    color: #ed1d25;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.logout-button:hover {
    background-color: #ed1d25;
    color: #fff;
}

.container {
    padding: 20px;
    animation: slideIn 1s ease-in-out;
}

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.card-grid.stretched {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s, color 0.3s;
    color: #333;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #ed1d25;
    transition: width 0.3s;
}

.card:hover::before {
    width: 100%;
}

.card a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.5em;
    z-index: 1;
    position: relative;
}

.card p {
    margin: 10px 0 0;
    font-size: 1em;
    color: #666;
    z-index: 1;
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    background-color: #ed1d25;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.card:hover a,
.card:hover p {
    color: white;
}

form {
    margin-top: 20px;
}

.mini-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    background-color: #eee9edfc;
    padding: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.student-table {
    width: 100%;
    border-collapse: collapse;
}

.student-table th, .student-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.student-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    font-size: 1.2em;
}

.student-table td:hover {
    background-color: #f1f1f1;
}

button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #ed1d25;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

button:hover {
    background-color: #1d1747fe;
    transform: scale(1.05);
    color: #eee9edfc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .mini-header {
        flex-direction: column;
    }

    th, td {
        font-size: 1em;
    }
}

#mockInfo {
    margin-top: 90px;
}

.notification {
    background-color: #ed1d25;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

.mock-table, .language-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.mock-table th, .mock-table td, .language-info-table th, .language-info-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.mock-table th, .language-info-table th {
    background-color: #ed1d25;
    color: white;
    font-weight: bold;
}

.mock-table td, .language-info-table td {
    background-color: #ffffff;
    color: #333;
}

.mock-table td:hover, .language-info-table td:hover {
    background-color: #ed1d25;
    color: white;
}

.language-info-table {
    margin-top: 10px;
}

.language-info-table td {
    font-size: 0.9em;
    line-height: 1.6;
}
