@font-face {
    font-display: swap;
    font-family: 'TwemojiCountryFlags';
    font-style: normal;
    font-weight: normal;
    src: url('fonts/TwemojiCountryFlags.woff2') format('woff2');
}

body {
    background-color: #f9fafb;
    color: #111827;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.02rem;
    margin: 0;
    min-height: 100vh;
    padding: 0;
}

button {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.02rem;
}

a {
    text-decoration: none;
}

.site-header {
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.site-header .logo img {
    height: 32px;
    margin-right: 0.5rem;
}

.site-footer {
    background-color: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: auto;
    padding: 1rem 2rem;
    text-align: left;
}

.logo {
    width: 120px;
}

.profile-section {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.profile-picture {
    border-radius: 50%;
    width: 37px;
    border: 3px solid #e84d09;
}

.logout-btn {
    background-color: #e84d09;
    border: 1px solid #e84d09;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100px;
}

.new-btn {
    background-color: #e84d09;
    border: 1px solid #e84d09;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.5rem 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 200px;
    height: 40px;
}

.btn:hover {
    background-color: #f3f6fa;
}

.new-btn:hover,
.logout-btn:hover,
.btn-primary:hover {
    border: 1px solid #c73c08;
    background-color: #c73c08;
}

.container {
    padding: 2rem;
}

.title {
    color: #e84d09;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    width: 100%;
    align-items: center;
}

.title h1 {
    margin: 0 0 1rem 0;
}

table {
    border-collapse: collapse;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    overflow: hidden;
    width: 100%;
}

thead {
    background-color: #fdeacc;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem;
    padding-left: 1.25rem;
    text-align: left;
}

th:nth-child(3),
td:nth-child(3) {
    text-align: right;
    padding-right: 1.25rem;
}

th:nth-child(6),
td:nth-child(6) {
    text-align: right;
    padding-right: 1.25rem;
}

tr {
    color: #e84d09;
    font-size: 0.95rem;
    font-weight: 500;
}

th {
    color: #e84d09;
    font-size: 1rem;
}

tbody tr {
    background-color: #ffffff;
}

tbody tr:hover {
    background-color: #f3f6fa;
}

.assessmentName {
    color: #e84d09;
    font-size: 1rem;
    font-weight: 700;
}

.small {
    font-size: 0.7rem;
    line-height: 1.5;
    text-align: justify;
    font-weight: 400;
}

label {
    font-weight: 600;
}

.btn-long {
    width: 200px !important;
}

.info {
    color: #e84d09;
    font-weight: 600;
}

body.logged-out>*:not(.site-header):not(.site-footer) {
    display: none !important;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    z-index: 100;
}

.modal {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.2);
    padding: 1.5rem 2rem;
    width: 500px;
    max-width: calc(100% - 2rem);
}

h2 {
    margin: 0 0 2rem 0;
    color: #e84d09;
    font-weight: 800;
}

.modal form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal label {
    font-size: 0.85rem;
    color: #374151;
}

.modal input[type="text"],
.modal input[type="file"],
.modal input[type="number"],
.modal select {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn {
    color: #e84d09;
    background-color: #fff;
    border: 1px solid #e84d09;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 100px;
    height: 40px;
    font-weight: 700;
}

.btn-primary {
    background-color: #e84d09;
    color: #fff;
}

.warning {
    color: #e84d09;
    padding: 2rem;
    font-weight: 700;
}

.cap {
    font-size: 0.95rem;
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(2, 6, 23, 0.06);
    padding: 1rem 1rem;
    flex: 1 1 0;
    margin-bottom: 1rem;
    text-align: left;
}

.stat-card .label {
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.stat-card .number {
    color: #e84d09;
    font-size: 1.5rem;
    font-weight: 800;
}

.details-table th:nth-child(2),
.details-table td:nth-child(2) {
    text-align: right;
    padding-right: 1.25rem;
}

legend {
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.75rem;
}