/* Shared look for teacher pages. Mirrors the /teacher timetable page. Load AFTER styles.css. */
body.ts-body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #0f172a;
    line-height: 1.4;
    background:
        radial-gradient(circle at 8% 0%, rgba(37, 99, 235, 0.15), transparent 44%),
        radial-gradient(circle at 100% 10%, rgba(14, 165, 233, 0.12), transparent 38%),
        #f8fafc;
    min-height: 100vh;
}
.ts-page { max-width: 1100px; margin: 0 auto; padding: 14px 12px 28px; }
.ts-page.ts-wide { max-width: 1500px; }
.ts-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    padding: 14px;
}
.ts-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin-bottom: 10px; }
.ts-logo { width: auto; height: 44px; max-width: 140px; object-fit: contain; display: block; }
.ts-hero h1 { margin: 0; font-size: 1.1rem; color: #1e40af; }
.ts-hero p { margin: 0; color: #64748b; font-size: .92rem; }

.ts-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; padding: 8px 10px; }
.ts-nav a, .ts-nav button {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; margin: 0;
    border-radius: 10px; border: 1px solid #c7d2fe; background: #eef2ff; color: #3730a3;
    font: inherit; font-size: .9rem; font-weight: 700; text-decoration: none; cursor: pointer; width: auto;
}
.ts-nav a:hover, .ts-nav button:hover { background: #e0e7ff; }
.ts-nav a.active { background: #1d4ed8; border-color: #1d4ed8; color: #fff; }
.ts-nav .ts-who { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: #334155; }
.ts-nav .ts-who b { background: #dbeafe; color: #1e3a8a; border-radius: 999px; padding: 4px 10px; }
.ts-nav .ts-who button { background: #e2e8f0; border-color: #cbd5e1; color: #334155; min-height: 32px; padding: 0 10px; font-weight: 600; }

.ts-step { max-width: 460px; margin: 0 auto 12px; }
.ts-step h2 { margin: 0 0 8px; font-size: 1.05rem; color: #1e40af; }
.ts-step p { margin: 0 0 12px; color: #64748b; font-size: .92rem; }
.ts-step label { display: block; margin-bottom: 6px; font-size: .88rem; font-weight: 700; color: #334155; }
.ts-step input, .ts-step select {
    width: 100%; box-sizing: border-box; min-height: 42px; border-radius: 10px; border: 1px solid #cbd5e1;
    font: inherit; font-size: .95rem; padding: 0 12px; background: #fff; margin: 0;
}
.ts-step input:focus, .ts-step select:focus { outline: none; border-color: #1d4ed8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.ts-step button {
    width: 100%; min-height: 42px; margin-top: 12px; border-radius: 10px; border: 1px solid #1d4ed8;
    background: #1d4ed8; color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.ts-step button:disabled { opacity: .6; cursor: not-allowed; }
.ts-error { min-height: 1.2em; color: #b91c1c; font-size: .9rem; margin-top: 10px; }
.ts-status:empty { display: none; }
.ts-status { margin: 0 0 10px; color: #475569; font-size: .92rem; }
.ts-hidden, [hidden].ts-hidden { display: none !important; }

/* Make older shared-stylesheet components match inside teacher pages */
body.ts-body .card { border-radius: 14px; border: 1px solid #e2e8f0; box-shadow: 0 8px 24px rgba(15, 23, 42, .06); }
body.ts-body .btn { border-radius: 10px; font-weight: 700; }
body.ts-body .btn-primary { background: #1d4ed8; }
body.ts-body .btn-primary:hover:not(:disabled) { background: #1e40af; }
body.ts-body .btn-secondary { background: #e2e8f0; color: #334155; }
body.ts-body .btn-secondary:hover:not(:disabled) { background: #cbd5e1; color: #1e293b; }
body.ts-body .btn-warning { background: #b45309; }
body.ts-body .exam-table thead th { background: #eef2ff; color: #3730a3; }
body.ts-body a { color: #1d4ed8; }
body.ts-body .ts-nav a { color: #3730a3; }
body.ts-body .ts-nav a.active { color: #fff; }

@media (max-width: 640px) {
    .ts-nav .ts-who { margin-left: 0; width: 100%; }
}
