/**
 * Purpose: Defines the shared layout, colors, cards, forms, tables, and responsive styles for the web app.
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #eef2f7;
    margin: 0;
    color: #1f2d3d;
}

.dashboard-container {
    width: 92%;
    max-width: 1200px;
    margin: 30px auto;
}

a {
    text-decoration: none;
    color: #0d6efd;
}



.login-container,
.dashboard-container {
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.app-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.login-box {
    max-width: 420px;
    margin: 60px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #1c2b4a;
}
h2 {
    margin-bottom: 10px;
    font-weight: 600;
}

h3 {
    margin-bottom: 12px;
    color: #16325c;
}

.info-box {
    background: #f7f9fc;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 10px;
    line-height: 1.6;
}

input, button {
    width: 100%;
    padding: 12px 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #d0d7e2;
    font-size: 15px;
}

input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

button {
    background: linear-gradient(135deg, #0d6efd, #3a8bfd);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}

.logout-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 18px;
    background: #dc3545;
    color: white;
    border-radius: 8px;
}

.logout-btn:hover {
    background: #bb2d3b;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.top-bar h2 {
    margin: 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #e6ecf3;
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.card h3 {
    margin-bottom: 15px;
    color: #16325c;
}

.info-box {
    background: #f8fbff;
    border-left: 4px solid #0d6efd;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.center {
    text-align: center;
}

.qr-box img {
    max-width: 200px;
    margin: 10px auto;
    display: block;
    border: 1px solid #ddd;
    padding: 8px;
    background: white;
    border-radius: 10px;
}

.table-box {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    background: white;
    overflow: hidden;

}

table th,
table td {
    
    padding: 12px;
    
    border-bottom: #eef2f7;
}

table th {
    background: #16325c;
    color: white;
    padding: 12px;
    font-size: 14px;
}
table tr:hover {
    background: #f7f9fc;
}
.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.badge-active {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-ended {
    background: #f8d7da;
    color: #842029;
}

.section-title {
    margin: 30px 0 15px;
    color: #16325c;
}

.video-frame {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: 14px;
    background: #eef3f9;
}

.small-text {
    font-size: 14px;
    color: #666;
}

.success-msg {
    color: green;
    font-weight: bold;
    margin-top: 10px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.action-link {
    display: inline-block;
    padding: 8px 12px;
    background: #198754;
    color: white;
    border-radius: 8px;
}

.action-link:hover {
    background: #157347;
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .login-box {
        width: 92%;
    }

    .dashboard-container {
        padding: 20px;
    }

    .video-frame {
        height: 280px;
    }
}

.navbar {
    background: linear-gradient(135deg, #16325c, #1c3d72);
    color: white;
    padding: 16px 24px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.navbar .brand {
    font-size: 20px;
    font-weight: 600;
}

.navbar .nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.navbar .nav-links a {
    color: white;
    background: rgba(255,255,255,0.12);
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.3s;
}

.navbar .nav-links a:hover {
    background: rgba(255,255,255,0.25);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: linear-gradient(135deg, #0d6efd, #3a8bfd);
    color: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(13,110,253,0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: "";
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.stat-card h4 {
    margin-bottom: 8px;
    font-size: 14px;
    opacity: 0.95;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
}

.badge-pending {
    background: #fff3cd;
    color: #664d03;
}

.badge-present {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-remote {
    background: #cff4fc;
    color: #055160;
}

.badge-classroom {
    background: #e2d9f3;
    color: #4c3575;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.badge-approved {
    background: #d1e7dd;
    color: #0f5132;
}

.badge-rejected {
    background: #f8d7da;
    color: #842029;
}

.badge-pending {
    background: #fff3cd;
    color: #664d03;
}

.live-badge {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.75;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.app-layout {
    display: flex;
    min-height: 100vh;
    background: #eef2f7;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #16325c, #0f2446);
    color: white;
    padding: 24px 18px;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    box-shadow: 4px 0 14px rgba(0,0,0,0.08);
    overflow-y: auto;
}

.sidebar h2 {
    color: white;
    font-size: 22px;
    margin-bottom: 30px;
}

.sidebar .menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar .menu a {
    color: white;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    transition: 0.2s;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
    background: rgba(255,255,255,0.18);
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 30px;
}

.top-header {
    background: white;
    padding: 18px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.top-header h1 {
    font-size: 24px;
    margin: 0;
    color: #16325c;
}

.top-header p {
    margin: 0;
    color: #666;
}

.page-grid {
    display: grid;
    gap: 20px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.logout-link {
    display: inline-block;
    background: #dc3545;
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
}

.logout-link:hover {
    background: #bb2d3b;
}

.card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.live-update-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.live-update-heading .lecturer-panel-title {
    margin-bottom: 0;
}

.live-update-meta {
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
}

.live-row-new {
    animation: liveRowPulse 2.6s ease-out;
}

@keyframes liveRowPulse {
    0% {
        background: #dcfce7;
    }

    60% {
        background: #ecfdf5;
    }

    100% {
        background: transparent;
    }
}

.reset-token-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.68);
    padding: 20px;
}

.reset-token-modal {
    width: min(560px, 100%);
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.reset-token-modal h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 24px;
}

.reset-token-modal textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-family: Consolas, monospace;
    font-size: 13px;
    resize: none;
}

.reset-token-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 14px;
}

.reset-token-actions button {
    width: auto;
    margin: 0;
}

.session-history-filter {
    min-width: 180px;
}

.session-history-filter .lecturer-select {
    margin: 0;
}

.app-card {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #e6ecf3;
}

.app-card h3 {
    margin: 0 0 12px 0;
    color: #16325c;
}

.muted {
    color: #6b7280;
    font-size: 14px;
}

.session-highlight {
    border-left: 5px solid #0d6efd;
    background: #f7fbff;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #0d6efd, #3a8bfd);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.primary-btn:hover {
    opacity: 0.95;
}

.danger-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.danger-btn:hover {
    background: #bb2d3b;
}

.stream-box {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stream-box iframe {
    width: 100%;
    height: 420px;
    border: none;
}

.qr-panel {
    text-align: center;
}

.qr-panel img {
    max-width: 220px;
    border-radius: 12px;
    background: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

@media (max-width: 900px) {
    .report-filter-grid {
        grid-template-columns: 1fr;
    }

    .report-chart-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .report-chart-row strong {
        text-align: left;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .app-layout {
        display: block;
    }
}
.audio-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.audio-modal-content {
    background: #ffffff;
    width: 95%;
    max-width: 1000px;
    height: 85vh;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.audio-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #16325c;
    color: white;
}

.audio-modal-header h3 {
    margin: 0;
    color: white;
    font-size: 18px;
}

.audio-close-btn {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.audio-close-btn:hover {
    background: #bb2d3b;
}

.audio-modal-body {
    flex: 1;
    background: #111827;
}

.audio-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}
textarea {
    font-family: inherit;
    font-size: 15px;
    resize: vertical;
}

.primary-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.primary-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}
.main-content {
  background: var(--bg);
  padding: 25px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sidebar {
  background: #111827;
  color: white;
}

.sidebar a {
  display: block;
  padding: 10px 15px;
  border-radius: 8px;
  color: #d1d5db;
  text-decoration: none;
  margin-bottom: 5px;
}

.sidebar a.active,
.sidebar a:hover {
  background: var(--primary);
  color: white;
}

.primary-btn {
  background: #2563eb; /* strong blue */
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.primary-btn:hover {
  background: #1e40af;
}

.primary-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.app-card form {
  margin-top: 15px;
}
* {
  transition: all 0.15s ease-in-out;
}


.page-hero {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.page-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-hero h1 {
    margin: 0;
    color: #111827;
    font-size: 30px;
    font-weight: 700;
}

.page-hero p {
    margin: 6px 0 0 0;
    color: #6b7280;
    font-size: 15px;
}

.card-section-title {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.session-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    margin-bottom: 12px;
}

.session-label {
    color: #374151;
    font-weight: 600;
}

.session-value {
    color: #111827;
    font-weight: 600;
}

.participation-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.raise-hand-wrap {
    margin-top: 16px;
}

.raise-hand-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.raise-hand-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.32);
}

.raise-hand-btn:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.9;
}

.status-row {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.status-title {
    font-weight: 700;
    color: #111827;
}

.info-note {
    margin-top: 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.stream-card {
    margin-top: 20px;
}

.stream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.stream-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.stream-frame {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #0f172a;
    min-height: 420px;
}

.stream-frame iframe,
.stream-frame video {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    background: #000;
}

.audio-join-box {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.audio-join-box p {
    margin: 0 0 10px 0;
    color: #1e3a8a;
    font-weight: 600;
}

.mobile-audio-link {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #059669;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-audio-link:hover {
    opacity: 0.95;
}

@media (max-width: 900px) {
    .stream-frame iframe,
    .stream-frame video {
        height: 300px;
    }

    .page-hero h1 {
        font-size: 24px;
    }

    .card-section-title,
    .stream-title {
        font-size: 20px;
    }

    .session-highlight {
        flex-direction: column;
        align-items: flex-start;
    }
}


.admin-hero {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    padding: 28px;
    border-radius: 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.admin-hero h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: white;
}

.admin-hero p {
    margin: 8px 0 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.admin-stat-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::after {
    content: "";
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50%;
}

.admin-stat-title {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.admin-stat-value {
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    margin: 0;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.admin-action-card {
    display: block;
    text-decoration: none;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.09);
}

.admin-action-card h3 {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
}

.admin-action-card p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.admin-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.admin-section-title {
    margin: 0 0 16px 0;
    color: #111827;
    font-size: 22px;
    font-weight: 800;
}

.admin-two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.soft-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.admin-table td,
.admin-table th {
    text-align: left;
}

@media (max-width: 1000px) {
    .admin-stats-grid,
    .admin-action-grid,
    .admin-two-col {
        grid-template-columns: 1fr;
    }
}

.admin-form-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.admin-form-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.admin-form-subtitle {
    margin: 0 0 18px 0;
    color: #6b7280;
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-actions {
    margin-top: 18px;
}

.admin-info-card {
    background: linear-gradient(135deg, #eff6ff, #f8fbff);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.admin-info-card h3 {
    margin: 0 0 14px 0;
    font-size: 22px;
    font-weight: 800;
    color: #1e3a8a;
}

.admin-info-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.admin-info-item strong {
    color: #111827;
}

.admin-table-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-top: 24px;
}

.admin-table-section h2 {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

@media (max-width: 900px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.auth-brand-side {
    padding: 60px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-brand-side::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -80px;
    top: -80px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.auth-brand-side::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -70px;
    bottom: -70px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.auth-brand-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}

.auth-brand-title {
    margin: 0 0 16px 0;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 800;
    color: white;
}

.auth-brand-text {
    margin: 0 0 28px 0;
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    line-height: 1.8;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
}

.auth-feature-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    font-size: 18px;
}

.auth-feature-item strong {
    display: block;
    color: white;
    margin-bottom: 4px;
    font-size: 15px;
}

.auth-feature-item span {
    color: rgba(255,255,255,0.82);
    font-size: 14px;
    line-height: 1.5;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #f8fafc;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 34px 30px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.auth-card-header {
    margin-bottom: 24px;
}

.auth-card-title {
    margin: 0 0 8px 0;
    color: #111827;
    font-size: 30px;
    font-weight: 800;
}

.auth-card-subtitle {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-label {
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    font-size: 15px;
    color: #111827;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #6b7280;
    font-weight: 700;
    font-size: 13px;
}

.auth-submit {
    margin-top: 8px;
    width: 100%;
    border: none;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3);
}

.auth-footer-text {
    margin-top: 18px;
    color: #6b7280;
    font-size: 13px;
    text-align: center;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.auth-alert.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-side {
        padding: 40px 24px;
    }

    .auth-brand-title {
        font-size: 32px;
    }

    .auth-form-side {
        padding: 24px 18px 36px;
    }

    .auth-card {
        max-width: 560px;
    }
}

.password-icon {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    transition: color 0.2s ease, transform 0.2s ease;
}

.password-icon:hover {
    color: #2563eb;
    transform: translateY(-50%) scale(1.1);
}

.student-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.student-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.student-hero h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.student-hero p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 15px;
}

.student-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.student-stat-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.student-stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.student-stat-card p {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: white;
}

.student-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.student-panel-title {
    margin: 0 0 14px 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.student-panel-subtitle {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.quick-actions-grid {
    display: grid;
    gap: 14px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-decoration: none;
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    padding: 13px 16px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.18);
}

.quick-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(5, 150, 105, 0.25);
}

.session-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 14px;
}

.session-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.join-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.join-btn:hover {
    opacity: 0.96;
}

.course-code-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.active-session-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.empty-state {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 1000px) {
    .student-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .student-stats-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .student-hero h1 {
        font-size: 26px;
    }
}

.lecturer-hero {
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.lecturer-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lecturer-hero h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #111827;
}

.lecturer-hero p {
    margin: 8px 0 0 0;
    color: #6b7280;
    font-size: 15px;
}

.lecturer-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.lecturer-stat-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
}

.lecturer-stat-card h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}

.lecturer-stat-card p {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    color: white;
}

.lecturer-panel {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.lecturer-panel-title {
    margin: 0 0 14px 0;
    font-size: 24px;
    font-weight: 800;
    color: #111827;
}

.lecturer-panel-subtitle {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.lecturer-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.lecturer-input,
.lecturer-select,
.lecturer-textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lecturer-input:focus,
.lecturer-select:focus,
.lecturer-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.lecturer-primary-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}

.lecturer-primary-btn:hover {
    opacity: 0.96;
}

.lecturer-danger-btn {
    width: 100%;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.2);
    margin-top: 10px;
}

.lecturer-danger-btn:hover {
    opacity: 0.96;
}

.qr-panel {
    text-align: center;
}

.qr-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.qr-box img {
    max-width: 220px;
    width: 100%;
    border-radius: 14px;
    background: white;
    padding: 10px;
    border: 1px solid #e5e7eb;
}

.info-chip {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
}

.request-action-wrap {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.request-btn-approve,
.request-btn-reject {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.request-btn-approve {
    background: #dcfce7;
    color: #166534;
}

.request-btn-reject {
    background: #fee2e2;
    color: #991b1b;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #e5e7eb;
    color: #374151;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
}

.secondary-btn:hover {
    background: #d1d5db;
    color: #111827;
}

.report-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    align-items: end;
}

.report-filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.report-filter-actions .primary-btn,
.report-filter-actions .secondary-btn {
    margin: 0;
    min-height: 44px;
}

.report-chart-row {
    display: grid;
    grid-template-columns: 110px 1fr 50px;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.report-chart-row span {
    color: #374151;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.report-chart-row strong {
    color: #111827;
    text-align: right;
}

.report-chart-track {
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.report-chart-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

.report-chart-fill.remote {
    background: #0891b2;
}

.report-chart-fill.classroom {
    background: #7c3aed;
}

.session-chart-list {
    display: grid;
    gap: 4px;
}

.empty-state {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.inline-check,
.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    color: #374151;
    font-weight: 600;
}

.inline-check input,
.choice-row input {
    width: auto;
    margin: 0;
}

.question-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #f8fafc;
}

.question-card h3 {
    margin-bottom: 10px;
    font-size: 17px;
}

.rubric-row {
    display: grid;
    grid-template-columns: 1.4fr 130px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f7;
}

.muted {
    color: #6b7280;
    font-size: 13px;
}

.question-bank-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.question-bank-category {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    background: #f8fafc;
}

.question-bank-category strong,
.question-bank-category span {
    display: block;
}

.question-bank-category span {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
    margin: 6px 0;
}

.question-bank-category p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.compact-link {
    width: auto;
    min-width: 150px;
}

.link-button-danger {
    width: auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    box-shadow: none;
}

.link-button {
    width: auto;
    margin: 0;
    padding: 8px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: none;
}

.assistant-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.assistant-main,
.assistant-side {
    min-width: 0;
}

.assistant-material-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.assistant-form {
    display: grid;
    gap: 14px;
}

.assistant-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.assistant-chip {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.assistant-chip:hover {
    background: #dbeafe;
}

.assistant-question {
    min-height: 120px;
    line-height: 1.6;
}

.assistant-answer {
    color: #111827;
    line-height: 1.75;
}

.assistant-source-row {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
}

.assistant-source-row strong {
    color: #111827;
    overflow-wrap: anywhere;
}

.assistant-history-list {
    display: grid;
    gap: 10px;
}

.assistant-history-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 12px;
    background: #f9fafb;
}

.assistant-history-item summary {
    cursor: pointer;
    color: #111827;
    font-weight: 800;
    font-size: 13px;
}

.assistant-history-item p {
    color: #374151;
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 0;
}

@media (max-width: 1000px) {
    .lecturer-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .assistant-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .lecturer-stats-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .lecturer-hero h1 {
        font-size: 26px;
    }

    .rubric-row {
        grid-template-columns: 1fr;
    }
}

/* Professional login experience */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
    background:
        linear-gradient(120deg, rgba(15, 23, 42, 0.04) 0 1px, transparent 1px 44px),
        linear-gradient(30deg, rgba(37, 99, 235, 0.05) 0 1px, transparent 1px 48px),
        #f5f7fb;
    color: #111827;
}

.auth-brand-side {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: clamp(34px, 6vw, 78px);
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(140deg, rgba(6, 78, 59, 0.82), rgba(15, 23, 42, 0.96) 46%, rgba(30, 64, 175, 0.92)),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
}

.auth-brand-side::before,
.auth-brand-side::after {
    display: none;
}

.auth-brand-content {
    width: min(640px, 100%);
    max-width: none;
    position: relative;
    z-index: 1;
}

.auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 42px;
}

.auth-logo-mark {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #ffffff;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.auth-brand-name,
.auth-brand-kicker {
    display: block;
}

.auth-brand-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.auth-brand-kicker {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-brand-title {
    margin: 0 0 20px;
    max-width: 680px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-brand-text {
    max-width: 610px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.75;
}

.auth-highlight-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 580px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.auth-highlight-panel > div {
    padding: 18px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(14px);
}

.auth-highlight-label {
    display: block;
    margin-bottom: 6px;
    color: #99f6e4;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-highlight-panel strong {
    display: block;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
}

.auth-system-preview {
    max-width: 620px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.auth-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-preview-label {
    display: block;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-preview-head strong {
    display: block;
    color: #ffffff;
    font-size: 17px;
}

.auth-live-pill {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.auth-preview-grid div {
    min-height: 74px;
    padding: 13px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.28);
}

.auth-preview-grid span {
    display: block;
    color: rgba(255, 255, 255, 0.67);
    font-size: 12px;
    font-weight: 800;
}

.auth-preview-grid strong {
    display: block;
    margin-top: 8px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
}

.auth-progress-track {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.auth-progress-fill {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2dd4bf, #fde68a);
}

.auth-feature-list {
    display: grid;
    gap: 12px;
    max-width: 620px;
}

.auth-feature-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.auth-feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(20, 184, 166, 0.16);
    color: #ccfbf1;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
}

.auth-feature-item span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
    line-height: 1.55;
}

.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(24px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.5);
}

.auth-card {
    width: min(100%, 468px);
    padding: 36px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
}

.auth-card-header {
    margin-bottom: 26px;
}

.auth-card-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-card-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
}

.auth-card-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-group {
    display: grid;
    gap: 8px;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-label {
    color: #1f2937;
    font-size: 13px;
    font-weight: 900;
}

.auth-inline-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 800;
}

.auth-inline-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    width: 100%;
    min-height: 52px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #0f172a;
    font-size: 15px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-password-input {
    padding-right: 78px;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.password-icon {
    position: absolute;
    top: 50%;
    right: 8px;
    width: auto;
    min-width: 58px;
    margin: 0;
    padding: 8px 10px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: #f1f5f9;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
    box-shadow: none;
    cursor: pointer;
}

.password-icon:hover {
    transform: translateY(-50%);
    background: #e0f2fe;
    color: #075985;
    opacity: 1;
}

.auth-submit {
    width: 100%;
    min-height: 54px;
    margin: 4px 0 0;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.24);
    cursor: pointer;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 42px rgba(15, 118, 110, 0.25);
    opacity: 1;
}

.auth-footer-text {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}

.auth-alert {
    margin-bottom: 16px;
    padding: 13px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.auth-alert.error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
}

.auth-alert.success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #047857;
}

@media (max-width: 980px) {
    .auth-page {
        grid-template-columns: 1fr;
    }

    .auth-brand-side {
        min-height: auto;
        padding: 34px 22px;
    }

    .auth-brand-mark {
        margin-bottom: 28px;
    }

    .auth-brand-title {
        font-size: 36px;
    }

    .auth-form-side {
        min-height: auto;
        padding: 24px 18px 38px;
    }

    .auth-card {
        width: min(100%, 560px);
    }
}

@media (max-width: 640px) {
    .auth-brand-title {
        font-size: 31px;
    }

    .auth-brand-text {
        font-size: 15px;
    }

    .auth-highlight-panel {
        grid-template-columns: 1fr;
    }

    .auth-preview-grid {
        grid-template-columns: 1fr;
    }

    .auth-feature-item {
        grid-template-columns: 40px minmax(0, 1fr);
        padding: 14px;
    }

    .auth-feature-icon {
        width: 40px;
        height: 40px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .auth-card-title {
        font-size: 29px;
    }
}

/* Smart Classroom dashboard theme */
:root {
    --sc-bg: #f4f7fb;
    --sc-surface: #ffffff;
    --sc-surface-soft: #f8fafc;
    --sc-navy: #0a2540;
    --sc-navy-2: #0f3446;
    --sc-teal: #0f766e;
    --sc-teal-2: #14b8a6;
    --sc-blue: #2563eb;
    --sc-text: #0f172a;
    --sc-muted: #64748b;
    --sc-border: #dbe5ef;
    --sc-border-strong: #cbd5e1;
    --sc-danger: #dc2626;
    --sc-success: #047857;
    --sc-warning: #b45309;
    --sc-radius: 18px;
    --sc-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    --sc-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.06);
}

body {
    background: var(--sc-bg);
    color: var(--sc-text);
}

.app-layout,
.app-layout * {
    letter-spacing: 0;
    transition-property: background-color, border-color, color, box-shadow, transform, opacity;
    transition-duration: 0.16s;
    transition-timing-function: ease;
}

.app-layout {
    min-height: 100vh;
    display: flex;
    background:
        radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.09), transparent 28%),
        radial-gradient(circle at 95% 5%, rgba(37, 99, 235, 0.08), transparent 30%),
        var(--sc-bg);
}

.sidebar {
    width: 270px;
    position: fixed;
    inset: 0 auto 0 0;
    padding: 26px 18px;
    overflow-y: auto;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(10, 37, 64, 0.98), rgba(14, 78, 94, 0.96)),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: auto, 42px 42px;
    box-shadow: 12px 0 38px rgba(15, 23, 42, 0.18);
}

.sidebar h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1.2;
}

.sidebar h2::before {
    content: "SC";
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--sc-teal);
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.sidebar .menu {
    display: grid;
    gap: 7px;
}

.sidebar .menu a,
.sidebar a {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    background: transparent;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.sidebar .menu a:hover,
.sidebar .menu a.active,
.sidebar a.active,
.sidebar a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

.sidebar .menu a[href*="logout"],
.sidebar .menu a[href="../logout.php"] {
    margin-top: 12px;
    color: #fee2e2;
    background: rgba(220, 38, 38, 0.12);
}

.main-content {
    width: calc(100% - 270px);
    min-height: 100vh;
    margin-left: 270px;
    padding: 30px;
    background: transparent;
}

.admin-hero,
.student-hero,
.lecturer-hero,
.page-hero,
.top-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    padding: 26px 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(10, 37, 64, 0.98), rgba(14, 78, 94, 0.93)),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: auto, 44px 44px;
    box-shadow: var(--sc-shadow);
}

.admin-hero::after,
.student-hero::after,
.lecturer-hero::after,
.page-hero::after,
.top-header::after {
    content: "";
    position: absolute;
    right: -72px;
    top: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.13);
}

.admin-hero > *,
.student-hero > *,
.lecturer-hero > *,
.page-hero > *,
.top-header > * {
    position: relative;
    z-index: 1;
}

.admin-hero h1,
.student-hero h1,
.lecturer-hero h1,
.page-hero h1,
.top-header h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 900;
    line-height: 1.15;
}

.admin-hero p,
.student-hero p,
.lecturer-hero p,
.page-hero p,
.top-header p {
    max-width: 780px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.65;
}

.admin-stats-grid,
.student-stats-grid,
.lecturer-stats-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card,
.student-stat-card,
.lecturer-stat-card,
.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 20px;
    border: 1px solid var(--sc-border);
    border-radius: 18px;
    background: var(--sc-surface);
    color: var(--sc-text);
    box-shadow: var(--sc-shadow-soft);
}

.admin-stat-card::before,
.student-stat-card::before,
.lecturer-stat-card::before,
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--sc-blue), var(--sc-teal-2));
}

.admin-stat-card::after,
.student-stat-card::after,
.lecturer-stat-card::after,
.stat-card::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -44px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.09);
}

.admin-stat-card:hover,
.student-stat-card:hover,
.lecturer-stat-card:hover,
.stat-card:hover,
.admin-action-card:hover,
.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(15, 23, 42, 0.11);
}

.admin-stat-title,
.student-stat-card h4,
.lecturer-stat-card h4,
.stat-card h4 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: var(--sc-muted);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.admin-stat-value,
.student-stat-card p,
.lecturer-stat-card p,
.stat-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--sc-text);
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
}

.app-card,
.admin-section,
.admin-table-section,
.student-panel,
.lecturer-panel,
.card,
.login-container,
.dashboard-container {
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    background: var(--sc-surface);
    box-shadow: var(--sc-shadow-soft);
}

.app-card,
.admin-section,
.admin-table-section,
.student-panel,
.lecturer-panel,
.card {
    padding: 22px;
    margin-bottom: 22px;
}

.app-card:hover,
.admin-section:hover,
.student-panel:hover,
.lecturer-panel:hover,
.card:hover {
    transform: none;
    box-shadow: var(--sc-shadow);
}

.admin-section-title,
.student-panel-title,
.lecturer-panel-title,
.card-section-title,
.app-card h3,
.card h3,
.admin-table-section h2 {
    margin: 0 0 14px;
    color: var(--sc-text);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
}

.student-panel-subtitle,
.lecturer-panel-subtitle,
.muted,
.empty-state,
.small-text,
.info-note {
    color: var(--sc-muted);
}

.admin-action-grid,
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.admin-action-card,
.quick-action-btn {
    display: block;
    min-height: 116px;
    padding: 18px;
    border: 1px solid var(--sc-border);
    border-radius: 18px;
    background: var(--sc-surface);
    color: var(--sc-text);
    box-shadow: var(--sc-shadow-soft);
    text-decoration: none;
}

.admin-action-card h3 {
    margin: 0 0 7px;
    color: var(--sc-text);
    font-size: 17px;
    font-weight: 900;
}

.admin-action-card p {
    margin: 0;
    color: var(--sc-muted);
    font-size: 14px;
    line-height: 1.55;
}

.quick-action-btn {
    min-height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-teal));
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.16);
}

.table-box {
    overflow-x: auto;
    border: 1px solid var(--sc-border);
    border-radius: 16px;
    background: #ffffff;
}

table,
.admin-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
}

table th,
table td,
.admin-table th,
.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #e8eef5;
    color: #334155;
    font-size: 14px;
    vertical-align: middle;
}

table th,
.admin-table th {
    background: #f8fafc;
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

table tr:last-child td,
.admin-table tr:last-child td {
    border-bottom: 0;
}

table tr:hover,
.admin-table tr:hover {
    background: #f8fafc;
}

input,
select,
textarea,
.form-input,
.form-select,
.form-textarea,
.lecturer-input,
.lecturer-select,
.lecturer-textarea,
.session-input {
    width: 100%;
    margin-top: 0;
    border: 1px solid var(--sc-border-strong);
    border-radius: 12px;
    background: #ffffff;
    color: var(--sc-text);
    font-size: 14px;
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.lecturer-input:focus,
.lecturer-select:focus,
.lecturer-textarea:focus,
.session-input:focus {
    border-color: var(--sc-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
    outline: none;
}

button,
.primary-btn,
.lecturer-primary-btn,
.join-btn,
.raise-hand-btn,
.auth-submit {
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sc-blue), var(--sc-teal));
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

button:hover,
.primary-btn:hover,
.lecturer-primary-btn:hover,
.join-btn:hover,
.raise-hand-btn:hover,
.auth-submit:hover {
    transform: translateY(-1px);
    opacity: 1;
    box-shadow: 0 18px 36px rgba(15, 118, 110, 0.22);
}

.danger-btn,
.lecturer-danger-btn,
.logout-link,
.logout-btn {
    background: linear-gradient(135deg, var(--sc-danger), #991b1b);
    color: #ffffff;
}

.secondary-btn,
.link-button {
    background: #eef2f7;
    color: #334155;
    box-shadow: none;
}

.link-button-danger,
.request-btn-reject {
    background: #fee2e2;
    color: #991b1b;
}

.request-btn-approve {
    background: #dcfce7;
    color: #166534;
}

.badge,
.course-code-badge,
.info-chip,
.active-session-pill,
.live-badge {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.badge-active,
.badge-approved {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-ended,
.badge-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.badge-remote {
    background: #e0f2fe;
    color: #075985;
}

.badge-classroom {
    background: #ccfbf1;
    color: #0f766e;
}

.course-code-badge,
.info-chip {
    background: #eef2ff;
    color: #3730a3;
}

.active-session-pill,
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    background: #ecfeff;
    color: #0e7490;
    animation: none;
}

.session-highlight,
.audio-join-box,
.question-card,
.assistant-history-item,
.question-bank-category {
    border: 1px solid var(--sc-border);
    border-left: 4px solid var(--sc-teal);
    border-radius: 14px;
    background: #f8fafc;
}

.stream-box,
.stream-frame {
    border: 1px solid #163247;
    border-radius: 18px;
    background: #061724;
}

.admin-two-col,
.two-col,
.assistant-layout {
    gap: 18px;
}

@media (max-width: 1100px) {
    .admin-stats-grid,
    .student-stats-grid,
    .lecturer-stats-grid,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        position: relative;
        width: 100%;
        min-height: auto;
        padding: 18px;
        box-shadow: none;
    }

    .sidebar h2 {
        margin-bottom: 16px;
    }

    .sidebar .menu {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 22px 16px;
    }
}

@media (max-width: 640px) {
    .admin-stats-grid,
    .student-stats-grid,
    .lecturer-stats-grid,
    .stats-grid,
    .admin-action-grid,
    .quick-actions-grid,
    .two-col,
    .admin-two-col,
    .assistant-layout {
        grid-template-columns: 1fr;
    }

    .admin-hero,
    .student-hero,
    .lecturer-hero,
    .page-hero,
    .top-header,
    .app-card,
    .admin-section,
    .admin-table-section,
    .student-panel,
    .lecturer-panel,
    .card {
        border-radius: 16px;
        padding: 18px;
    }
}
