* { box-sizing: border-box; }

:root {
    --sesi-blue: #0055A5;
    --sesi-blue-dark: #003B73;
    --sesi-green: #75BF43;
    --sesi-gray: #5f6368;
    --bg: #f4f8fc;
    --card: #ffffff;
    --text: #172033;
    --border: #dbe4ef;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px;
}

.header {
    background: linear-gradient(135deg, var(--sesi-blue), var(--sesi-blue-dark));
    color: white;
    padding: 22px 24px 28px;
    border-bottom: 8px solid var(--sesi-green);
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand img {
    background: white;
    border-radius: 14px;
    padding: 10px;
    max-width: 230px;
    height: auto;
}

.header h1 {
    margin: 0 0 6px;
    font-size: 25px;
}

.header p {
    margin: 0;
    opacity: .94;
}

.card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 85, 165, 0.10);
    border: 1px solid var(--border);
    margin-bottom: 18px;
}

.section-title {
    border-left: 6px solid var(--sesi-green);
    padding-left: 10px;
    color: var(--sesi-blue-dark);
}

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

label {
    font-weight: 700;
    display: block;
    margin-bottom: 7px;
}

input[type="text"], input[type="date"], input[type="file"], textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #c8d4e3;
    border-radius: 12px;
    font-size: 15px;
    background: #fff;
}

textarea {
    min-height: 115px;
    resize: vertical;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

button, .btn {
    border: 0;
    background: var(--sesi-blue);
    color: white;
    padding: 11px 15px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 700;
}

button:hover, .btn:hover {
    background: var(--sesi-blue-dark);
}

.btn.secondary, button.secondary {
    background: var(--sesi-green);
    color: #103400;
}

.btn.light {
    background: #eaf2fb;
    color: var(--sesi-blue-dark);
}

.lesson {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-top: 1px solid var(--border);
    padding: 14px 0;
}

.lesson:first-child {
    border-top: 0;
}

.lesson-main {
    flex: 1;
}

.muted {
    color: var(--sesi-gray);
    font-size: 14px;
}

.rating-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rating-option {
    border: 1px solid #c8d4e3;
    border-radius: 14px;
    padding: 10px 12px;
    cursor: pointer;
    background: #fff;
}

.rating-option input {
    margin-right: 6px;
}

.photos {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo {
    width: 5cm;
    height: 5cm;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #c8d4e3;
}

.report-photos .photo {
    margin: 4px;
}

.notice {
    background: #edf9e8;
    border: 1px solid #b9e4a6;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 12px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    background: #eaf2fb;
    color: var(--sesi-blue-dark);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 13px;
    margin: 2px 4px 2px 0;
}

.report-title {
    color: var(--sesi-blue-dark);
    border-bottom: 4px solid var(--sesi-green);
    padding-bottom: 8px;
}

@media (max-width: 760px) {
    .grid { grid-template-columns: 1fr; }
    .container { padding: 14px; }
    .brand { flex-direction: column; align-items: flex-start; }
    .brand img { max-width: 190px; }
    .header h1 { font-size: 21px; }
}

@media print {
    body { background: white; }
    .no-print { display: none !important; }
    .card { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .container { max-width: 100%; }
    .header { background: white; color: black; border-bottom: 4px solid #75BF43; }
    .brand img { max-width: 180px; border: 0; }
}


.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.nav a {
    background: rgba(255,255,255,.14);
    color: white;
    border: 1px solid rgba(255,255,255,.3);
    padding: 9px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.nav a:hover {
    background: rgba(255,255,255,.25);
}

select {
    appearance: auto;
}

.inline-form {
    display: inline;
}

.filter-card {
    border-left: 6px solid var(--sesi-blue);
}

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

.small-table th, .small-table td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 10px 8px;
}

.small-table th {
    color: var(--sesi-blue-dark);
}

@media print {
    .nav { display: none !important; }
}
