* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #111827;
    padding: 25px;
}

.brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 30px;
}

.sidebar a {
    display: block;
    color: #d1d5db;
    text-decoration: none;
    padding: 12px 10px;
    margin-bottom: 6px;
    border-radius: 7px;
}

.sidebar a:hover {
    background: #1f2937;
    color: white;
}

.main {
    margin-left: 240px;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.topbar p {
    color: #6b7280;
    margin-top: 5px;
}

.languages a {
    text-decoration: none;
    margin-left: 15px;
    color: #2563eb;
    font-weight: bold;
}

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

.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.card h3 {
    font-size: 15px;
    color: #6b7280;
    margin-bottom: 15px;
}

.card strong {
    font-size: inherit;
}

/* Large figures belong only to the dashboard metric cards.  The previous
   global rule also enlarged names inside operational tables and forms. */
.cards > .card > strong {
    display: block;
    font-size: 34px;
}


.form-card {
    margin-bottom: 25px;
}

.form-card h2,
.table-card h2 {
    margin-bottom: 20px;
}

.form-card form {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px 25px;
    max-width: 850px;
}

.form-card label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
}

.form-card input,
.form-card select {
    width: 100%;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: white;
    font-size: 14px;
}

.form-card button {
    height: 42px;
    padding: 0 25px;
    border: none;
    border-radius: 7px;
    background: #2563eb;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.table-card {
    margin-top: 25px;
    overflow-x: auto;
}

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

th {
    text-align: left;
    padding: 13px 16px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 13px;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 15px 16px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
}

tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 900px) {
    .form-card form {
        grid-template-columns: 1fr;
    }
}


/* V18: clearly show the current administration section. */
.sidebar a.nav-active {
    position: relative;
    background: #1f2937;
    color: #ffffff;
    font-weight: 800;
    box-shadow: inset 3px 0 0 #60a5fa;
}

.sidebar a.nav-active::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #60a5fa;
    transform: translateY(-50%);
}
