/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-blue: #0066cc;
    --primary-blue-dark: #0052a3;
    --primary-blue-light: #3385d6;
    --secondary-blue: #e6f2ff;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* Cores de status */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    /* Sombras */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    /* Espaçamentos */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 1.6rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}


.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing) var(--spacing);

}


.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    cursor: pointer;
    transition: var(--transition);
}

.logo:hover {
    color: var(--primary-blue-dark);
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
}

.nav {
    display: flex;
    gap: var(--spacing-sm);
}

.navCelular {
    display: none;
    gap: var(--spacing-sm);
}

#inicio {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing);
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

#maisOpcao {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing);
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.nav-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navCelular {
    color: var(--white);
    box-shadow: var(--shadow-md);
}

#sair {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing);
    background: transparent;
    border: 2px solid #dc2626;
    color: var(--primary-blue);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: #dc2626;
}

#inicio:checked,
#sair:checked {
    transform: scale(0.9);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 70px);
    padding: var(--spacing-lg) 0;
}

/* Home Page Styles */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.hero-section {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--white) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-icon {
    color: var(--primary-blue);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.user-type-buttons {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.features-section {
    padding: var(--spacing-2xl) 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Panel Pages */
.panel-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}

.panel-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.panel-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing);
}

.panel-header p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.panel-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing);
}

.panel-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-sm);
}

.panel-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Content Sections */
.content-sections {
    margin-top: var(--spacing-2xl);
}

.content-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#material-section-header {
    width: 100%;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing);
    border-bottom: 2px solid var(--gray-200);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
}



.tituloMaterial {
    color: var(--primary-blue) !important;
}

.section-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing);
}

.loading-spinner p {
    color: var(--gray-600);
    font-weight: 500;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 90px;
    right: var(--spacing);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    background: var(--white);
    padding: var(--spacing) var(--spacing-md);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-left-color: var(--success);
}

.toast.error {
    border-left-color: var(--error);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast.info {
    border-left-color: var(--info);
}

.toast i {
    font-size: 1.25rem;
}

.toast.success i {
    color: var(--success);
}

.toast.error i {
    color: var(--error);
}

.toast.warning i {
    color: var(--warning);
}

.toast.info i {
    color: var(--info);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-sm);
    }


    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .user-type-buttons {
        flex-direction: column;
        align-items: center;
    }

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

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

    .section-header {
        flex-direction: column;
        gap: var(--spacing);
        align-items: stretch;
    }

    .section-actions {
        justify-content: center;
    }

    .toast-container {
        left: var(--spacing-sm);
        right: var(--spacing-sm);
    }

    .toast {
        min-width: auto;
    }
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .nav {
    margin-top: 20px;
}

.header {
    overflow: hidden;
    transition: max-height 0.4s ease;
    min-height: 65px;
}


.nav {
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.scanner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.buttonMaterial {
    display: flex;
    gap: 10px;
}

@keyframes menuAparecer {
    from {
        min-height: 70px;
    }

    to {
        min-height: 130px;
    }
}

@keyframes menuSumir {
    from {
        min-height: 130px;
    }

    to {
        min-height: 70px;
    }
}

@keyframes buttonAparecer {
    from {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
    }

    to {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    #materials-management-section {
        padding: 1.2rem !important;
    }

    .materials-list {
        width: 70% !important;
        display: flex;
        justify-content: center;
    }

    .material-item {
        padding: 0px !important;
    }

    .header.aparecer {
        animation: menuAparecer 0.8s ease;
    }

    .header.sumir {
        animation: menuSumir 0.8s ease;
    }

    .panel-header h1 {
        font-size: 1.8rem !important;
        flex-direction: column;
        gap: 8px;
    }

    .panel-header h1>i {
        font-size: 2.5rem;
    }

    .header.expandido {
        min-height: 130px;
    }

    .header .container {
        flex-direction: column;
        align-items: stretch;
    }

    .navCelular {
        display: flex;
    }

    .nav {
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-top: 8px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(-20px);
        pointer-events: none;
        z-index: 999;
    }

    /* Quando mostrar o menu */
    .nav.show {
        display: flex !important;
        pointer-events: all;
        transform: translateY(0);
        animation: buttonAparecer 0.5s ease forwards;
        /* ⏱ aparece depois da expansão do header */
    }

    .nav {
        display: none;
    }

    /* Quando esconder o menu */
    .nav.sumirb {
        animation: buttonAparecer 0.5s ease reverse forwards;
    }

    .nav button {
        width: 90%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .code-info {
        justify-content: center;
        flex-direction: column;
        /* display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; */
    }

    .code-info span {
        width: 100%;
        text-align: center;
        font-size: 1.25rem;
    }

    .code-info span.code-value {
        text-align: center;
        font-size: 1.8rem;
    }

    #quiz-management-section {
        padding: 1.1rem;
    }

    .create-quiz-form {
        padding: 0 !important;
    }

    .section-header {
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .raised-hand-item {
        flex-direction: column;
    }

    .hand-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: row-reverse;
        gap: 5px;
    }
}

@media (max-width: 360px) {

    .access-header h2,
    .code-header h2,
    .scanner-header h2 {
        font-size: 2.2rem !important;
    }
}


/* Student Access Styles */
.student-access-section,
.code-input-section,
.qr-scanner-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, #dae7f1 0%, #cee0f5 100%);
    border-radius: 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.access-content,
.code-input-content,
.qr-scanner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.access-header,
.code-header,
.scanner-header {
    margin-bottom: 2rem;
}

.access-header h2,
.code-header h2,
.scanner-header h2 {
    color: #0066cc;
    margin-bottom: 0.3rem;
    font-size: 3rem;
}

.access-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 2fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.access-option {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.access-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.15);
    border-color: #0066cc;
}

.option-icon {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.access-option h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.access-option p {
    color: #64748b;
    font-size: 0.9rem;
}

/* Code Input Styles */
.code-form {
    margin-bottom: 2rem;
}

.code-input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.code-input {
    font-size: 2rem;
    text-align: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    width: 200px;
    letter-spacing: 0.5rem;
    font-weight: bold;
    color: #0066cc;
}

.code-input:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* QR Scanner Styles */
.scanner-container {
    margin-bottom: 2rem;
}

.scanner-frame {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

#qr-video {
    width: 100%;
    height: auto;
    display: block;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scanner-box {
    width: 200px;
    height: 200px;
    border: 3px solid #0066cc;
    border-radius: 12px;
    position: relative;
}

.scanner-box::before,
.scanner-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #0066cc;
}

.scanner-box::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.scanner-box::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

/* Teacher Panel Room Code Styles */
.room-code-display {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
    border-left: 4px solid #0066cc;
}

.code-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.code-label {
    font-weight: 600;
    color: #374151;
}



.code-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0066cc;
    font-family: 'Courier New', monospace;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
}

.room-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.status-indicator {
    font-size: 0.8rem;
}

.status-indicator.active {
    color: #10b981;
}

.student-count {
    font-weight: 600;
    color: #0066cc;
}

/* QR Code Section Styles */
.qr-code-content {
    text-align: center;
}

.qr-code-display {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.qr-code-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.qr-code-info p {
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 22px;
}

.qr-code-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Student Room Styles */
.student-room-page {
    min-height: 100vh;
}

.div-header {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.room-header {
    width: 83%;
    border-radius: 40px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: white;
    padding: 2rem 0;
}

.room-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.room-info h1 {
    margin-bottom: 1rem;
}

.room-details {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.room-code {
    font-size: 1.1rem;
}

.room-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.room-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.room-content {
    padding: 3rem 0;
}

.welcome-message {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.welcome-message h2 {
    color: #0066cc;
    margin-bottom: 1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-icon {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Panel Card Danger Style */
.panel-card.danger {
    border-left: 4px solid #ef4444;
}

.panel-card.danger:hover {
    border-color: #dc2626;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.panel-card.danger .card-icon {
    color: #ef4444;
}

/* Chat Styles */
.room-chat {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.chat-header {
    background: #0066cc;
    color: white;
    padding: 1rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-messages {
    height: 300px;
    overflow-y: auto;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
}

.chat-input input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .code-input-group {
        flex-direction: column;
    }

    .code-input {
        width: 100%;
        max-width: 250px;
    }

    .room-details {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .room-actions {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .room-chat {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 2rem;
    }

    .qr-code-actions {
        flex-direction: column;
    }

    .access-options {
        grid-template-columns: 1fr;
    }
}

/* Animation for QR Scanner */
@keyframes scan-line {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.scanner-box::after {
    animation: scan-line 2s linear infinite;
}


/* Student Name Modal Styles */
.student-name-modal-content {
    max-width: 400px;
    width: 90%;
}

.student-name-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.student-name-input:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: #0066cc;
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 0 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

/* Quiz Modal Styles */
.quiz-modal-content {
    max-width: 600px;
}

.quiz-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.quiz-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.quiz-option:hover {
    border-color: #0066cc;
    background: #f8fafc;
}

.quiz-option.selected {
    border-color: #0066cc;
    background: #e6f2ff;
}

.quiz-option input[type="radio"] {
    margin-right: 0.75rem;
}

/* Material Upload Styles */
.material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: white;
}

.material-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.material-icon {
    font-size: 1.5rem;
    color: #0066cc;
}

.material-details h4 {
    margin: 0 0 0.25rem 0;
    color: #1a202c;
}

.material-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

.material-actions {
    display: flex;
    gap: 0.5rem;
}

/* Raised Hand Notification */
.raised-hand-notification {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: #fbbf24;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.raised-hands-list {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    margin-bottom: 1rem;
}

.raised-hand-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.raised-hand-item:last-child {
    border-bottom: none;
}

.hand-student-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hand-icon {
    color: #fbbf24;
    font-size: 1.25rem;
}

.hand-time {
    color: #64748b;
    font-size: 0.9rem;
}

/* Student Info Display */
.student-info-display {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border-left: 4px solid #0066cc;
}

.student-welcome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.student-avatar {
    width: 40px;
    height: 40px;
    background: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
}

.student-details h3 {
    margin: 0;
    color: #1a202c;
}

.student-details p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .access-header h2,
    .code-header h2,
    .scanner-header h2 {
        color: #0066cc;
        margin-bottom: 0.3rem;
        font-size: 2.5rem;
    }

    .modal-content {
        margin: 1rem;
        width: calc(100% - 2rem);
    }

    .raised-hand-notification {
        right: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .material-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .panel-header h1 {
        font-size: 2.3rem;
        flex-direction: column;
        gap: 8px;
    }

    .panel-header h1>i {
        font-size: 2.5rem;
    }
}


/* Quiz Styles */
.create-quiz-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-quiz-form h3 {
    color: #0066cc;
    margin-bottom: 1.5rem;
}

.quiz-options-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.certo-input {
    display: flex;
    gap: 10px;
}



.option-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.option-input input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.option-input input[type="radio"] {
    margin: 0;
}

.option-input label {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
}

.active-quiz {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.quiz-header h3 {
    color: #0066cc;
    margin: 0;
}

.quiz-actions {
    display: flex;
    gap: 1rem;
}

.quiz-question {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.quiz-option-display {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    background: #f8fafc;
    position: relative;
}

.quiz-option-display.correct-option {
    border-color: #10b981;
    background: #ecfdf5;
}

.correct-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
}

.quiz-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #0066cc;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

/* Quiz Results Styles */
.quiz-results {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-card {
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.summary-card.correct {
    background: #ecfdf5;
    border-color: #10b981;
}

.summary-card.incorrect {
    background: #fef2f2;
    border-color: #ef4444;
}

.summary-card.total {
    background: #eff6ff;
    border-color: #0066cc;
}

.summary-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.summary-number.correct {
    color: #10b981;
}

.summary-number.incorrect {
    color: #ef4444;
}

.summary-number.total {
    color: #0066cc;
}

.summary-label {
    font-size: 0.9rem;
    color: #64748b;
}

.responses-list {
    margin-top: 2rem;
}

.response-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.response-item.correct {
    border-color: #10b981;
    background: #ecfdf5;
}

.response-item.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
}

.response-student {
    font-weight: 600;
}

.response-answer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.response-icon {
    font-size: 1.25rem;
}

.response-icon.correct {
    color: #10b981;
}

.response-icon.incorrect {
    color: #ef4444;
}

/* Responsive Quiz Styles */
@media (max-width: 768px) {
    .quiz-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .quiz-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .option-input {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .results-summary {
        grid-template-columns: 1fr;
    }

    .response-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}


/* Materials Styles */
.materials-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.materials-header h3 {
    color: #0066cc;
    margin: 0;
}

.materials-grid {
    display: grid;
    gap: 1rem;
}

.material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.material-item:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.material-item.student-material {
    border-left: 4px solid #0066cc;
}

.material-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.material-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0066cc;
}

.material-details h4 {
    margin: 0 0 0.5rem 0;
    color: #1a202c;
    font-size: 1.1rem;
}

.material-details p {
    margin: 0 0 0.5rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

.material-details small {
    display: block;
    color: #94a3b8;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.material-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Add Material Form */
.add-material-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.form-header h3 {
    color: #0066cc;
    margin: 0;
}

.material-type-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.type-option {
    flex: 1;
}

.type-option input[type="radio"] {
    display: none;
}

.type-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    text-align: center;
}

.type-option label:hover {
    border-color: #0066cc;
    background: #f8fafc;
}

.type-option input[type="radio"]:checked+label {
    border-color: #0066cc;
    background: #e6f2ff;
    color: #0066cc;
}

.type-option label i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input[type="file"] {
    padding: 0.75rem;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    width: 100%;
}

.form-group input[type="file"]:hover {
    border-color: #0066cc;
    background: #f1f5f9;
}

/* Materials Modal */
.materials-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
}

.student-materials-list {
    max-height: 60vh;
    overflow-y: auto;
}

/* File Type Icons */
.material-icon .fa-file-pdf {
    color: #dc2626;
}

.material-icon .fa-file-word {
    color: #2563eb;
}

.material-icon .fa-file-excel {
    color: #059669;
}

.material-icon .fa-file-powerpoint {
    color: #ea580c;
}

.material-icon .fa-file-image {
    color: #7c3aed;
}

.material-icon .fa-file-video {
    color: #dc2626;
}

.material-icon .fa-file-audio {
    color: #059669;
}

.material-icon .fa-external-link-alt {
    color: #0066cc;
}

#img-Logo{
    width:190px;
    height:50px;
}
#img-Pagina{
    width:190px;
    height:50px;
}

footer {
    position: relative;
    color: rgb(0, 0, 0);
    background-color: rgb(249, 254, 255);
    text-align: center;
    padding-top: 30px;
    padding-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    border:1px solid var(--gray-200);
    border-radius: 5px 5px 10px 10px;
}


footer .contato a {
    color: rgb(7, 115, 187);
    font-size: 2.3rem;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

footer .contato a {
    color: rgb(7, 115, 187);
    font-size: 2.3rem;
    margin: 0 10px;
    text-decoration: none;
    transition: transform 0.3s, color 0.3s;
}

footer .contato a:hover{
    transform: scale(1.2);
    text-shadow: 1px 1px 1.5px rgb(7, 115, 187, 0.6);
}

footer p {
    font-size: 14px;
}



/* Responsive Materials */
@media (max-width: 768px) {
    .materials-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .material-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .material-info {
        width: 100%;
    }

    .material-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .material-type-options {
        flex-direction: column;
    }

    .form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .materials-list {
        width: 90%;
        display: flex;
        justify-content: center;
    }
}