body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #f4f6f8;
    color: #111;
}

header {
    background: #ffffff;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
}

h1 {
    margin: 0;
    font-size: 28px;
}

main {
    padding: 20px;
}

.button, button {
    background: #1f7a4d;
    color: white;
    border: 0;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 18px;
    text-decoration: none;
}

.secondary {
    background: #555;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 2px 8px #0001;
}

.card h2 {
    margin-top: 0;
    font-size: 30px;
}

.class {
    color: #666;
    font-size: 20px;
}

.empty {
    background: white;
    border-radius: 18px;
    padding: 40px;
    text-align: center;
    font-size: 24px;
}

.form {
    background: white;
    border-radius: 18px;
    padding: 20px;
    max-width: 600px;
}

label {
    display: block;
    margin-top: 16px;
    font-weight: bold;
}

input, select {
    width: 100%;
    box-sizing: border-box;
    font-size: 20px;
    padding: 14px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

.form button {
    margin-top: 24px;
    width: 100%;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

section {
    background: white;
    border-radius: 18px;
    padding: 20px;
}

footer {
    padding: 20px;
    text-align: center;
}

.actions {
    display: flex;
    gap: 10px;
}

.hint {
    color: #666;
    font-size: 18px;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 18px;
    padding: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 18px;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background: #f0f2f4;
}
.area-card h2 {
    font-size: 28px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.free {
    opacity: 0.75;
}

.free-text {
    font-size: 32px;
    color: #2e7d32;
    font-weight: bold;
    margin: 20px 0;
}

.visit {
    border-radius: 14px;
    padding: 14px;
    margin-top: 14px;
    background: #f8f9fa;
}

.visit h3 {
    margin: 0;
    font-size: 26px;
}

.visit.green {
    border-left: 12px solid #2e7d32;
}

.visit.yellow {
    border-left: 12px solid #f9a825;
}

.visit.red {
    border-left: 12px solid #c62828;
}
.card h2 {
    font-size: 22px;
}

.visit h3 {
    font-size: 20px;
}

.class {
    font-size: 14px;
}

.visit p {
    font-size: 14px;
    margin: 4px 0;
}
.capacity {
    font-size: 14px;
    font-weight: bold;
    margin: 4px 0 10px;
}

.capacity.available {
    color: #2e7d32;
}

.capacity.almost-full {
    color: #f9a825;
}

.capacity.full {
    color: #c62828;
}

.full-text {
    display: inline-block;
    background: #c62828;
    color: white;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.inline-edit {
    display: grid;
    grid-template-columns: 1fr 90px 90px auto;
    gap: 8px;
    margin-top: 12px;
}

.inline-delete {
    margin-bottom: 18px;
}

.danger {
    background: #b3261e;
}

@media (max-width: 700px) {
    .inline-edit {
        grid-template-columns: 1fr;
    }
}
