body {
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    margin: 0;
    padding: 0;
    color: #1f2937;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

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

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

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

.card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.login-card {
    max-width: 420px;
    margin: 60px auto;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}

input, textarea, button {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 12px;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

button, .button {
    display: inline-block;
    background: #111827;
    color: white;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    text-align: center;
}

.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.flash-success {
    background: #dcfce7;
    color: #166534;
}

.flash-error {
    background: #fee2e2;
    color: #991b1b;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 14px;
    margin-top: 10px;
}

.badge.active {
    background: #dcfce7;
    color: #166534;
}

.badge.planned {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge.ended {
    background: #e5e7eb;
    color: #374151;
}
.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.button.secondary {
    background: #374151;
}
.public-page {
    background: #eef2f7;
}

.mobile-wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px 14px 40px;
}

.public-card {
    margin-top: 20px;
}

.student-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.student-card {
    max-width: 700px;
}

.stars-form {
    margin-top: 14px;
}

select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 12px;
    font-size: 16px;
}
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
    font-size: 2rem;
    margin: 8px 0 12px;
}

.star-rating input {
    display: none;
}

.star-rating label {
    cursor: pointer;
    color: #ccc;
    transition: color 0.2s ease;
    line-height: 1;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
    color: #f5b301;
}

.star-rating input:checked ~ label {
    color: #f5b301;
}