* {
    box-sizing: border-box;
}

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

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

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

.login-card p {
    margin: 8px 0 25px;
    color: #6b7280;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

button {
    width: 100%;
    margin-top: 22px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: #2563eb;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

button:hover {
    background: #1d4ed8;
}

.alert {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.topbar {
    height: 64px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.topbar span {
    margin-left: 12px;
    color: #6b7280;
}

.topbar a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
}

.container {
    padding: 28px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    margin-top: 25px;
}

.box {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    font-weight: 700;
}

.app {
    min-height: 100vh;
    display: flex;
}

.sidebar {
    width: 260px;
    background: #0f172a;
    color: white;
    padding: 22px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.brand small {
    display: block;
    color: #94a3b8;
    margin-top: 3px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar nav a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
}

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

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #334155;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.sidebar-footer a {
    color: #fca5a5;
    text-decoration: none;
    font-weight: 700;
}

.main {
    flex: 1;
    padding: 30px;
}

.top-title h1 {
    margin: 0;
    font-size: 30px;
}

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

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

.page-head h1 {
    margin: 0;
    font-size: 30px;
}

.page-head p {
    margin: 6px 0 0;
    color: #6b7280;
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.btn.secondary {
    background: #64748b;
}

.filter-box {
    background: white;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.filter-box input,
.filter-box select {
    margin: 0;
}

.filter-box button {
    width: auto;
    margin: 0;
    padding: 12px 18px;
}

.table-card {
    background: white;
    border-radius: 16px;
    overflow: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

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

th {
    background: #f8fafc;
    text-align: left;
    padding: 14px;
    font-size: 13px;
    color: #475569;
    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: top;
}

td small {
    color: #64748b;
}

.empty {
    text-align: center;
    color: #64748b;
    padding: 30px;
}

.link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    margin-right: 10px;
}

.link.danger {
    color: #dc2626;
}

.badge {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

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

.badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.badge.inactive {
    background: #e5e7eb;
    color: #374151;
}

.badge.rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge.completed {
    background: #dbeafe;
    color: #1e40af;
}

.badge.archived {
    background: #e5e7eb;
    color: #374151;
}

.form-card {
    background: white;
    padding: 22px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    padding: 13px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 15px;
}

.form-card button {
    max-width: 220px;
}

@media (max-width: 768px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .page-head,
    .filter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
}

.session-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 8px 25px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.session-card h2 {
    margin: 10px 0 4px;
    font-size: 26px;
}

.session-card p {
    margin: 0;
    color: #64748b;
}

.box small {
    display: block;
    color: #64748b;
    margin-bottom: 8px;
}

.box strong {
    font-size: 34px;
}

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

.badge.completed{
    background:#DBEAFE;
    color:#1E40AF;
}

.badge.archived{
    background:#E5E7EB;
    color:#374151;
}
.field textarea{
    width:100%;
    padding:13px;
    border:1px solid #d1d5db;
    border-radius:10px;
    font-size:15px;
    resize:vertical;
    font-family:inherit;
}

.filter-box {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.filter-box select,
.filter-box input {
    height: 48px;
    border: 1px solid #d8dee9;
    border-radius: 12px;
    padding: 0 16px;
    font-size: 15px;
    background: #fff;
    outline: none;
}

.filter-box input {
    flex: 1;
    min-width: 260px;
}

.filter-box select {
    min-width: 210px;
}

.filter-box select[name="status"] {
    min-width: 150px;
}

.filter-box select:focus,
.filter-box input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-box button {
    height: 48px;
    border: 0;
    border-radius: 12px;
    padding: 0 24px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.filter-box button:hover {
    background: #1d4ed8;
}

@media (max-width: 768px) {
    .filter-box {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-box input,
    .filter-box select,
    .filter-box button {
        width: 100%;
        min-width: 0;
    }
}

.student-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 16px;
    margin: 22px 0;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e8eef7;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.stat-card span {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.stat-card strong {
    font-size: 32px;
    color: #0f172a;
}

.student-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #fce7f3);
    color: #1e3a8a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-buttons .link {
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.action-buttons .link.danger {
    background: #fff1f2;
    color: #e11d48;
}

.table-card table tbody tr:hover {
    background: #f8fbff;
}

@media (max-width: 900px) {
    .student-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .student-stats {
        grid-template-columns: 1fr;
    }
}

.capacity-box {
    min-width: 130px;
}

.capacity-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 7px;
    color: #475569;
}

.capacity-text strong {
    color: #0f172a;
    font-size: 16px;
}

.capacity-text span {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.capacity-bar {
    height: 9px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    border-radius: 999px;
}

.capacity-fill.normal {
    background: linear-gradient(90deg, #60a5fa, #818cf8);
}

.capacity-fill.warning {
    background: linear-gradient(90deg, #fbbf24, #fb923c);
}

.capacity-fill.full {
    background: linear-gradient(90deg, #34d399, #10b981);
}


