/* ================================
   Shared Classroom UI
   Used by Session + Chamber Board
================================ */
.classroom-student-card .panel-body {
    min-height: 168px;
}

.classroom-student-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    background: #5fa2dd;
    color: #fff;
    margin-right: 0;
}

.classroom-student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.classroom-status-label {
    margin-top: 6px;
    display: inline-block;
}

.classroom-student-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-group.classroom-student-actions {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    white-space: normal;
}

.classroom-student-actions .btn[disabled] {
    opacity: 1;
}

.btn-group.classroom-student-actions .btn {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
}

/* ================================
   Teacher Session View
   Views/Classroom/Session.cshtml
================================ */
.join-qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-qr-inner {
    text-align: center;
}

.join-qr-actions {
    margin-top: 12px;
}

.join-qr-actions .btn {
    margin-bottom: 8px;
    width: 100%;
}

.join-qr-modal-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 360px;
}

.join-qr-modal-wrap #join-qr-code-modal img {
    max-width: 100%;
    height: auto;
}

.live-vote-board-shell {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 10px;
    background-image: linear-gradient(rgba(52, 59, 71, 0.9), rgba(52, 59, 71, 0.9)), url("https://images.legislativelabs.ai/images/CapitolFogWide.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#session-timer {
    display: block;
    width: 100%;
    text-align: center;
}

#session-timer-label {
    display: block;
    margin-bottom: 10px;
}

.session-timer-host {
    display: flex;
    justify-content: center;
    width: 100%;
}

#session-timer.flip-clock-wrapper,
#session-timer .flip-clock-wrapper {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
}

#session-timer.flip-clock-wrapper ul,
#session-timer .flip-clock-wrapper ul {
    float: left;
}

.vote-history-row {
    cursor: pointer;
}

.vote-history-chevron {
    display: inline-block;
    margin-right: 6px;
    transition: transform 0.2s ease;
}

.vote-history-row.expanded .vote-history-chevron {
    transform: rotate(90deg);
}

.vote-history-detail-cell {
    padding: 0 !important;
}

.vote-history-detail-table {
    margin-bottom: 0;
    background-color: #343b47 !important;
}

.vote-history-detail-table > thead > tr > th,
.vote-history-detail-table > tbody > tr > td {
    background-color: #3b4354 !important;
}

.vote-history-detail-table > thead > tr > th:not(:last-child),
.vote-history-detail-table > tbody > tr > td:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.vote-pulse {
    animation: votePulse 0.7s ease;
}

/* Shared loading indicator used in classroom bill detail panels. */
.legitron-spinner {
    width: 22px;
    height: 22px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #5fa2dd;
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    animation: legitronSpin 0.8s linear infinite;
}

.legitron-loading-indicator {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    padding: 0;
    border: 0;
    background: transparent;
    margin-bottom: 14px;
}

/* ================================
   Chamber Board View
   Views/Classroom/ChamberBoard.cshtml
================================ */
#chamber-session-timer {
    display: block;
    width: 100%;
    text-align: center;
}

#chamber-session-timer-label {
    display: block;
    margin-bottom: 10px;
}

.chamber-session-timer-host {
    display: none;
    justify-content: center;
    width: 100%;
}

#chamber-session-timer.flip-clock-wrapper,
#chamber-session-timer .flip-clock-wrapper {
    position: static !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    float: none !important;
    display: inline-block !important;
    width: auto !important;
}

#chamber-session-timer.flip-clock-wrapper ul,
#chamber-session-timer .flip-clock-wrapper ul {
    float: left;
}

/* ================================
   Student Room View
   Views/Classroom/Room.cshtml
================================ */
.student-vote-actions {
    display: flex;
    gap: 10px;
}

.student-vote-actions .vote-button {
    flex: 1 1 0;
}

.classroom-timeline-reveal {
    animation: classroomTimelineReveal 0.7s ease;
}

/* ================================
   Shared Lesson Plan Modal
   Views/Classroom/Shared/_LessonPlanModal.cshtml
================================ */
.lesson-plan-modal .modal-content {
    background-color: #343b47;
    color: #f4f6fb;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lesson-plan-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lesson-plan-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.lesson-plan-modal .close {
    color: #ffffff;
    opacity: 0.9;
}

.lesson-plan-modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.lesson-plan-brand {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8fc6ff;
    margin-bottom: 8px;
    display: inline-block;
}

.lesson-plan-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.lesson-plan-section h5 {
    margin-top: 0;
    margin-bottom: 8px;
    color: #ffffff;
}

.lesson-plan-section p,
.lesson-plan-section li {
    color: #dbe3f3;
}

.lesson-plan-section ul {
    margin-bottom: 0;
    padding-left: 18px;
}

/* ================================
   Shared Legitron Collapsible
   Views/Classroom/Shared/_legitronCollapsible.cshtml
================================ */
.legitron-collapsible-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    margin: 0;
}

.legitron-collapsible.is-expanded .legitron-collapsible-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.legitron-collapsible.is-measuring .legitron-collapsible-text {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.legitron-collapsible-toggle {
    display: block;
    width: fit-content;
    margin-top: 8px;
    margin-left: auto;
}

/* ================================
   Classroom Marketing Landing
   Views/Classroom/Demo.cshtml
================================ */
.classroom-demo-page {
    margin-bottom: 24px;
}

.home-classroom-hero-fullbleed {
    position: static;
    left: auto;
    right: auto;
    width: auto;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 18px;
    padding: 0;
}

.home-classroom-hero-panel {
    margin-bottom: 0;
    background-image: linear-gradient(125deg, rgba(10, 24, 46, 0.95), rgba(16, 39, 69, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-classroom-hero-body {
    padding: 30px;
}

.home-classroom-hero-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 46px;
    line-height: 1.12;
    color: #ffffff;
}

.home-classroom-hero-lead {
    font-size: 19px;
    line-height: 1.6;
    color: #e8eefc;
}

.home-classroom-hero-sublead {
    color: #d0dcf5;
    font-size: 15px;
    margin-bottom: 20px;
}

.home-classroom-hero-image {
    margin-top: 10px;
}

.classroom-demo-hero {
    background-image: linear-gradient(125deg, rgba(10, 24, 46, 0.95), rgba(16, 39, 69, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.classroom-demo-hero .panel-body {
    padding: 30px;
}

.classroom-demo-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8fc6ff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.classroom-demo-title {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 40px;
    line-height: 1.15;
    color: #ffffff;
}

.classroom-demo-lead {
    font-size: 19px;
    line-height: 1.6;
    color: #e8eefc;
}

.classroom-demo-sublead {
    color: #d0dcf5;
    font-size: 15px;
}

.classroom-demo-cta-group {
    margin-top: 22px;
}

.classroom-demo-cta-group .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}

.classroom-demo-section {
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.classroom-demo-section .panel-heading {
    padding: 30px 30px 0;
}

.classroom-demo-section .panel-body {
    padding: 14px 30px 30px;
}

.classroom-demo-heading {
    font-size: 30px;
    line-height: 1.25;
    margin-top: 0;
    margin-bottom: 14px;
}

.classroom-demo-section .classroom-demo-heading {
    float: none;
    display: block;
    clear: both;
    white-space: normal;
    overflow: visible;
}

.classroom-demo-image {
    width: 100%;
    max-width: 520px;
    max-height: 360px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
}

.classroom-demo-hero-image {
    margin-top: 10px;
}

.classroom-demo-list {
    padding-left: 20px;
    margin-bottom: 18px;
}

.classroom-demo-list li {
    margin-bottom: 6px;
}

.classroom-demo-practice-card {
    min-height: 245px;
}

.classroom-demo-practice-featured {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    transform: translateY(-4px);
}

.classroom-demo-card-title {
    margin-top: 0;
    margin-bottom: 8px;
}

.classroom-demo-outcome {
    min-height: 156px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background-color: rgba(255, 255, 255, 0.04);
}

.classroom-demo-outcome h3 {
    margin-top: 0;
}

.classroom-demo-section-feature {
    background: linear-gradient(160deg, rgba(38, 166, 154, 0.17), rgba(19, 40, 74, 0.2));
}

.classroom-demo-grid-image {
    min-height: 210px;
}

.classroom-demo-step {
    min-height: 216px;
}

.classroom-demo-step-number {
    display: inline-block;
    min-width: 30px;
    padding: 2px 9px;
    border-radius: 20px;
    background-color: #26a69a;
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
}

.classroom-demo-mid-cta .btn {
    margin-top: 10px;
}

.classroom-demo-final-cta {
    background-image: linear-gradient(140deg, rgba(8, 22, 42, 0.96), rgba(6, 15, 29, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.classroom-demo-final-cta h2 {
    margin-top: 4px;
}

/* ================================
   Animations
================================ */
@keyframes legitronSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes votePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.45);
    }

    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes classroomTimelineReveal {
    0% {
        opacity: 0.45;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   Responsive Rules
================================ */
@media (min-width: 768px) {
    .join-top-row {
        display: flex;
        align-items: center;
    }

    .classroom-student-col {
        width: 20%;
    }
}

@media (max-width: 767px) {
    .home-classroom-hero-body {
        padding: 22px 18px;
    }

    .home-classroom-hero-title {
        font-size: 34px;
    }

    .home-classroom-hero-lead {
        font-size: 18px;
    }

    .classroom-demo-title {
        font-size: 30px;
    }

    .classroom-demo-heading {
        font-size: 24px;
    }

    .classroom-demo-cta-group .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .classroom-demo-practice-featured {
        transform: none;
    }

    .classroom-demo-grid-image {
        margin-bottom: 12px;
    }

    .student-vote-actions {
        display: block;
    }

    .student-vote-actions .vote-button {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .student-vote-actions .vote-button:last-child {
        margin-bottom: 0;
    }
}
