/* ============================================
   VARIÁVEIS E RESET
   ============================================ */

:root {
    --primary-color: #0052cc;
    --primary-dark: #003d99;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b35;
    --accent-light: #ff9500;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;
    --disabled-color: #cccccc;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #ff9500 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
}

/* ============================================
   TELA DE LOGIN
   ============================================ */

.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    padding: 20px;
}

.login-box {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 60px 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.login-header {
    margin-bottom: 30px;
}

.login-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.login-box h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.login-box .subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.login-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 82, 204, 0.3);
}

.error-message {
    background-color: #ffebee;
    color: var(--error-color);
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 15px;
    border-left: 4px solid var(--error-color);
}

.login-footer {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 20px;
}

/* ============================================
   DASHBOARD - HEADER
   ============================================ */

.dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-light);
}

.header {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 20px 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2px;
}

.header-title p {
    font-size: 12px;
    color: #999;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-logout {
    padding: 8px 16px;
    background-color: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-logout:hover {
    background-color: var(--bg-white);
    color: var(--secondary-color);
}

/* ============================================
   DASHBOARD - CONTAINER
   ============================================ */

.dashboard-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    width: 250px;
    background-color: var(--bg-white);
    border-right: 1px solid var(--border-color);
    padding: 30px 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 12px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.nav-link:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: rgba(0, 82, 204, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    font-weight: 600;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
    padding: 0;
    overflow-y: auto;
}

.course-header {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    text-align: center;
    padding: 40px 20px;
}

.course-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.course-header-content {
    position: relative;
    z-index: 2;
}

.course-header h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.course-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.main-content-inner {
    padding: 40px;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 40px;
    padding: 0 40px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-light);
}

/* ============================================
   CARDS E CONTAINERS
   ============================================ */

.course-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    padding: 0 40px;
}

.info-card {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.info-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.schedule-list {
    list-style: none;
    margin-top: 12px;
}

.schedule-list li {
    font-size: 13px;
    color: var(--text-dark);
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
}

.schedule-list li:last-child {
    border-bottom: none;
}

/* ============================================
   AULAS GRID
   ============================================ */

.aulas-preview {
    padding: 0 40px;
}

.aulas-preview h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 20px;
}

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

.aula-card {
    background: linear-gradient(135deg, rgba(0, 82, 204, 0.1) 0%, rgba(0, 82, 204, 0.05) 100%);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.aula-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 82, 204, 0.15);
    transform: translateY(-4px);
}

.aula-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: var(--bg-white);
    border-radius: 50%;
    line-height: 50px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.aula-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.aula-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.aula-type {
    display: inline-block;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 600;
}

.aula-type.presencial {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.aula-type.online {
    background-color: #e3f2fd;
    color: #1565c0;
}

.aula-type.disabled {
    background-color: #f0f0f0;
    color: #999999;
}

.aula-card.disabled {
    opacity: 0.6;
    background: linear-gradient(135deg, rgba(200, 200, 200, 0.1) 0%, rgba(200, 200, 200, 0.05) 100%);
    border-color: var(--disabled-color);
    cursor: not-allowed;
}

.aula-card.disabled:hover {
    border-color: var(--disabled-color);
    box-shadow: none;
    transform: none;
}

.aula-card.disabled .btn-aula {
    background-color: var(--disabled-color);
    cursor: not-allowed;
}

.aula-card.disabled .btn-aula:hover {
    background-color: var(--disabled-color);
}

.btn-aula {
    width: 100%;
    padding: 10px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-aula:hover {
    background-color: var(--primary-dark);
}

/* ============================================
   AULA DETAIL
   ============================================ */

.aula-detail {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 30px;
    margin: 0 40px 30px 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.aula-detail.disabled {
    opacity: 0.7;
    background-color: #f9f9f9;
}

.aula-detail.disabled .content-block {
    background-color: #f0f0f0;
    border-left-color: var(--disabled-color);
}

.aula-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.aula-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: var(--bg-white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.aula-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.aula-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: var(--text-light);
}

.aula-meta .date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.aula-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.content-block {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
}

.content-block h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.content-block p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-link:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.4);
}

/* ============================================
   MATERIAIS
   ============================================ */

.materiais-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 40px;
}

.material-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.material-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.material-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.material-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ============================================
   TRABALHOS
   ============================================ */

.trabalhos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 40px;
}

.trabalho-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trabalho-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.trabalho-item p {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.trabalho-item ul {
    list-style: none;
    padding-left: 0;
}

.trabalho-item li {
    font-size: 14px;
    color: var(--text-light);
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.trabalho-item li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* ============================================
   AVISOS
   ============================================ */

.avisos-container {
    display: grid;
    gap: 15px;
    padding: 0 40px;
}

.aviso-item {
    background-color: var(--bg-white);
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.aviso-data {
    display: inline-block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 600;
}

.aviso-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.aviso-item p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   SEÇÃO DO PROFESSOR
   ============================================ */

.professor-section {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: var(--bg-white);
    padding: 60px 40px;
    margin: 60px 40px 0 40px;
    border-radius: 12px;
}

.professor-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.professor-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.professor-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.professor-content .subtitle {
    font-size: 16px;
    color: var(--accent-light);
    margin-bottom: 25px;
    font-weight: 600;
}

.professor-content p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.professor-image {
    text-align: center;
}

.professor-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.professor-redes {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.professor-redes a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--bg-white);
    text-decoration: none;
    transition: var(--transition);
    font-size: 20px;
}

.professor-redes a:hover {
    background-color: var(--accent-light);
    transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--secondary-color);
    color: var(--bg-white);
    padding: 40px 30px 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.footer-section p {
    font-size: 13px;
    line-height: 1.6;
    color: #ccc;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #999;
}

/* ============================================
   RESPONSIVO
   ============================================ */

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

    .sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 15px 0;
    }

    .sidebar-nav ul {
        display: flex;
        overflow-x: auto;
        gap: 0;
    }

    .sidebar-nav li {
        flex-shrink: 0;
    }

    .nav-link {
        padding: 10px 15px;
        white-space: nowrap;
    }

    .main-content {
        padding: 20px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .header-left {
        width: 100%;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
    }

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

    .aula-content {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 22px;
    }

    .login-box {
        padding: 40px 25px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .professor-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .professor-content h2 {
        font-size: 24px;
    }

    .professor-image img {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .header-logo {
        width: 40px;
        height: 40px;
    }

    .header-title h1 {
        font-size: 18px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .login-box h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 15px;
    }

    .section-header h2 {
        font-size: 20px;
    }

    .aula-card {
        padding: 15px;
    }

    .aula-detail {
        padding: 15px;
    }

    .content-block {
        padding: 15px;
    }
}

/* ============================================
   EMBEDS DE MIDIA
   ============================================ */

.video-embed-container,
.slides-embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.video-embed-container iframe,
.slides-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.btn-drive-link,
.btn-forms-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 10px 10px 10px 0;
}

.btn-drive-link:hover,
.btn-forms-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 82, 204, 0.3);
}

.aula-media-content {
    margin-top: 20px;
}

/* ===== THUMBNAILS DAS AULAS ===== */
.aula-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.aula-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,82,204,0.18);
}
.aula-card.disabled {
    opacity: 0.7;
    filter: grayscale(30%);
}
.aula-thumb {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
}
.aula-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aula-thumb .aula-number {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #0052cc, #ff6b00);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
}
.aula-card-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aula-card-body h4 {
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    font-weight: 700;
}
.aula-date {
    font-size: 12px;
    color: #666;
    margin: 0;
}
.presencial-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.online-tag {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    color: #1565c0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}
.btn-locked {
    background: #bdbdbd !important;
    color: #666 !important;
    cursor: not-allowed !important;
    font-size: 12px;
}
.btn-locked:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ===== THUMBNAIL NA SEÇÃO DE DETALHE DA AULA - 16:9 ===== */
.aula-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    background: #111;
}
.aula-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ===== MAIS CORES NO HEADER ===== */
.header {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1b4b 50%, #0052cc 100%) !important;
    border-bottom: 3px solid #ff6b00;
}

/* ===== SIDEBAR MAIS COLORIDA ===== */
.sidebar {
    background: linear-gradient(180deg, #0d1b4b 0%, #0a0a2e 100%) !important;
    border-right: 2px solid rgba(0,82,204,0.3);
}
.nav-link.active {
    background: linear-gradient(135deg, #0052cc, #ff6b00) !important;
    color: white !important;
    border-radius: 8px;
}
.nav-link:hover {
    background: rgba(0,82,204,0.2) !important;
    border-radius: 8px;
}

/* ===== BADGES E BOTÕES MAIS COLORIDOS ===== */
.aula-badge {
    background: linear-gradient(135deg, #0052cc, #ff6b00) !important;
    color: white !important;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}
.btn-link, .btn-aula {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%) !important;
    color: white !important;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}
.btn-link:hover, .btn-aula:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #e55a00 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.3);
}

/* ===== CONTENT BLOCKS MAIS COLORIDOS ===== */
.content-block {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border-left: 4px solid #0052cc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}
.content-block:hover {
    border-left-color: #ff6b00;
    box-shadow: 0 4px 16px rgba(0,82,204,0.12);
}
.content-block h4 {
    color: #0052cc;
    font-size: 15px;
    margin-bottom: 6px;
}

/* ===== SECTION HEADER ===== */
.section-header h2 {
    background: linear-gradient(135deg, #0052cc, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 28px;
    font-weight: 800;
}

/* ===== AULAS GRID RESPONSIVO ===== */
.aulas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
@media (max-width: 600px) {
    .aulas-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .aula-thumb {
        height: 110px;
    }
}

/* ===== SIDEBAR REDESENHADA ===== */
.sidebar {
    width: 260px !important;
    background: linear-gradient(180deg, #0d1b4b 0%, #0a0a2e 100%) !important;
    border-right: none !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}
.sidebar-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 3px;
    flex-shrink: 0;
}
.sidebar-logo-text {
    display: flex;
    flex-direction: column;
}
.sidebar-course-name {
    color: white;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
}
.sidebar-course-sub {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
    line-height: 1.3;
}

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
}
.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar-nav li {
    flex-shrink: unset;
}

.nav-link {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 16px !important;
    color: rgba(255,255,255,0.75) !important;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: none !important;
    white-space: nowrap;
}
.nav-link:hover {
    background: rgba(255,255,255,0.12) !important;
    color: white !important;
    border-radius: 10px !important;
}
.nav-link.active {
    background: linear-gradient(135deg, #0052cc, #ff6b00) !important;
    color: white !important;
    border-radius: 10px !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,82,204,0.4);
}
.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}
.nav-text {
    color: inherit;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.btn-sidebar-logout {
    width: 100%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.btn-sidebar-logout:hover {
    background: rgba(244,67,54,0.25);
    color: #ff6b6b;
    border-color: rgba(244,67,54,0.4);
}

/* ===== OCULTAR BOTÃO LOGOUT DO HEADER (REDUNDANTE) ===== */
.header-right .btn-logout {
    display: none;
}

/* ===== RESPONSIVO MOBILE SIDEBAR ===== */
@media (max-width: 768px) {
    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        position: static !important;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .sidebar-logo {
        display: none;
    }
    .sidebar-nav {
        padding: 8px;
        width: 100%;
    }
    .sidebar-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
    }
    .sidebar-nav li {
        flex-shrink: 0;
    }
    .nav-link {
        padding: 8px 12px !important;
        font-size: 12px;
        gap: 6px;
    }
    .nav-icon {
        font-size: 14px;
    }
    .sidebar-footer {
        display: none;
    }
}

/* ===== PROFESSOR NA PÁGINA INICIAL ===== */
.professor-inicio {
    margin-top: 40px;
    background: linear-gradient(135deg, #0d1b4b 0%, #0a0a2e 100%);
    border-radius: 16px;
    padding: 36px;
    color: white;
}
.professor-inicio-inner {
    display: flex;
    gap: 36px;
    align-items: center;
}
.professor-inicio-img {
    flex-shrink: 0;
    width: 200px;
    height: 240px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid rgba(255,107,0,0.5);
}
.professor-inicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}
.professor-inicio-info {
    flex: 1;
}
.professor-label {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b00, #ff9500);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.professor-inicio-info h3 {
    font-size: 26px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}
.professor-apelido {
    color: #ff9500;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}
.professor-bio {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}
.professor-redes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.rede-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.rede-link.linkedin {
    background: #0077b5;
    color: white;
}
.rede-link.linkedin:hover {
    background: #005e8e;
    transform: translateY(-2px);
}
.rede-link.instagram {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}
.rede-link.instagram:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.rede-link.youtube {
    background: #ff0000;
    color: white;
}
.rede-link.youtube:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .professor-inicio-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .professor-inicio-img {
        width: 140px;
        height: 170px;
    }
    .professor-redes {
        justify-content: center;
    }
}

/* ===== PROFESSOR INICIO - LAYOUT AZUL ROYAL COM FOTO GRANDE À DIREITA ===== */
.professor-inicio {
    margin-top: 40px;
    background: #1a4fd6 !important;
    border-radius: 16px;
    padding: 48px 52px;
    color: white;
    overflow: hidden;
    position: relative;
}
.professor-inicio-inner {
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
}
.professor-inicio-info {
    flex: 1;
    min-width: 0;
}
.professor-label {
    display: inline-block;
    background: transparent !important;
    color: #ff9500 !important;
    font-size: 11px;
    font-weight: 700;
    padding: 0 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.professor-inicio-info h3 {
    font-size: 32px;
    font-weight: 800;
    color: white !important;
    margin-bottom: 6px;
    line-height: 1.1;
}
.professor-apelido {
    color: #ff9500 !important;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}
.professor-bio {
    color: rgba(255,255,255,0.88) !important;
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 28px;
}
.professor-redes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.rede-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1.5px solid rgba(255,255,255,0.25);
}
.rede-icon:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.5);
}
.professor-inicio-img {
    flex-shrink: 0;
    width: 280px;
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.professor-inicio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 900px) {
    .professor-inicio {
        padding: 32px 24px;
    }
    .professor-inicio-inner {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 28px;
    }
    .professor-inicio-img {
        width: 200px;
        height: 240px;
    }
    .professor-redes {
        justify-content: center;
    }
    .professor-inicio-info h3 {
        font-size: 24px;
    }
}

/* ===================================================
   RESPONSIVIDADE MOBILE - REVISÃO COMPLETA
   =================================================== */

@media (max-width: 768px) {

    /* --- LAYOUT GERAL --- */
    .dashboard-container {
        flex-direction: column;
    }

    /* --- HEADER --- */
    .header {
        padding: 10px 16px;
    }
    .header-logo img {
        width: 36px;
        height: 36px;
    }
    .header-logo span {
        font-size: 16px;
    }
    .header-subtitle {
        font-size: 11px;
    }
    .header-right {
        gap: 8px;
    }
    .user-name {
        display: none;
    }

    /* --- SIDEBAR MOBILE: barra horizontal no topo --- */
    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        position: sticky !important;
        top: 0;
        z-index: 100;
        flex-direction: column !important;
        padding: 0;
    }
    .sidebar-logo {
        display: none !important;
    }
    .sidebar-footer {
        display: none !important;
    }
    .sidebar-nav {
        padding: 6px 8px !important;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sidebar-nav ul {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 4px !important;
        width: max-content;
    }
    .nav-link {
        padding: 8px 14px !important;
        font-size: 12px !important;
        gap: 5px !important;
        white-space: nowrap;
        border-radius: 20px !important;
    }
    .nav-icon {
        font-size: 14px !important;
    }

    /* --- MAIN CONTENT --- */
    .main-content {
        padding: 0;
        width: 100%;
    }
    .main-content-inner {
        padding: 16px !important;
    }

    /* --- COURSE HEADER BANNER --- */
    .course-header {
        height: 140px;
        background-size: cover;
    }
    .course-header-content h1 {
        font-size: 28px;
    }
    .course-header-content p {
        font-size: 13px;
    }

    /* --- SEÇÃO INÍCIO --- */
    .section-header h2 {
        font-size: 20px;
    }
    .section-header p {
        font-size: 13px;
    }

    /* --- INFO CARDS (Sobre o Curso / Horário) --- */
    .course-info {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .info-card {
        padding: 16px;
    }
    .info-card h3 {
        font-size: 15px;
    }

    /* --- GRID DE AULAS: 1 COLUNA NO MOBILE --- */
    .aulas-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .aula-card {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 14px;
        padding: 12px;
        border-radius: 12px;
    }
    .aula-thumb {
        width: 90px !important;
        height: 90px !important;
        flex-shrink: 0;
        border-radius: 10px;
        overflow: hidden;
        position: relative;
    }
    .aula-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .aula-number {
        font-size: 18px !important;
        width: 32px !important;
        height: 32px !important;
    }
    .aula-card-body {
        flex: 1;
        min-width: 0;
        padding: 0 !important;
    }
    .aula-card-body h4 {
        font-size: 14px !important;
        font-weight: 700;
        margin-bottom: 4px;
        line-height: 1.3;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    .aula-date, .aula-type {
        font-size: 12px;
        margin-bottom: 2px;
    }
    .btn-aula, .btn-locked {
        margin-top: 8px;
        padding: 7px 14px !important;
        font-size: 12px !important;
        width: 100%;
    }

    /* --- DETALHE DA AULA --- */
    .aula-detail {
        padding: 16px !important;
        margin-bottom: 16px;
    }
    .aula-detail-thumb {
        height: 160px !important;
        margin-bottom: 14px;
    }
    .aula-header h3 {
        font-size: 18px;
    }
    .aula-links {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .content-block {
        padding: 14px !important;
    }
    .content-block h4 {
        font-size: 14px;
    }

    /* --- MATERIAIS --- */
    .materiais-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .material-item {
        padding: 16px !important;
    }

    /* --- TRABALHOS --- */
    .trabalhos-container {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    .trabalho-item {
        padding: 16px !important;
    }

    /* --- AVISOS --- */
    .avisos-container {
        gap: 12px;
    }
    .aviso-item {
        padding: 14px !important;
    }

    /* --- PROFESSOR NA HOME --- */
    .professor-inicio {
        padding: 24px 18px !important;
        border-radius: 12px;
    }
    .professor-inicio-inner {
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .professor-inicio-img {
        width: 160px !important;
        height: 200px !important;
        order: -1;
    }
    .professor-inicio-info h3 {
        font-size: 22px !important;
    }
    .professor-bio {
        font-size: 13px !important;
    }
    .professor-redes {
        justify-content: center !important;
    }

    /* --- FOOTER --- */
    .footer {
        padding: 24px 16px 16px;
    }
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .footer-section h4 {
        font-size: 14px;
    }
    .footer-section p {
        font-size: 12px;
    }
    .footer-bottom {
        font-size: 11px;
        text-align: center;
    }
}

/* ===== THUMBNAILS 16:9 NOS CARDS DE AULA ===== */
.aula-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    position: relative;
    background: #111;
}
.aula-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.aula-number {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Mobile: card horizontal com thumb quadrado menor */
@media (max-width: 768px) {
    .aula-thumb {
        width: 100px !important;
        aspect-ratio: 16 / 9 !important;
        height: 56px !important;
        border-radius: 8px !important;
        flex-shrink: 0;
    }
    .aula-card {
        border-radius: 12px;
        overflow: hidden;
    }
}

/* ===================================================
   ESTILOS ADICIONAIS - MATERIAL CARDS, TRABALHOS, AVISOS
   =================================================== */

/* Material cards */
.material-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.material-card:hover {
    box-shadow: 0 6px 20px rgba(0,82,204,0.12);
    transform: translateY(-3px);
}
.material-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0052cc;
    margin: 0;
}
.material-card p {
    font-size: 14px;
    color: #666;
    margin: 0;
    flex: 1;
}
.material-card .btn,
.material-card .btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 4px;
}
.material-card .btn:hover,
.material-card .btn-primary:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #e55a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.3);
}

/* Trabalhos */
.trabalho-info,
.trabalho-dicas {
    background: white;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.trabalho-info h3,
.trabalho-dicas h3 {
    font-size: 17px;
    font-weight: 700;
    color: #0052cc;
    margin-bottom: 14px;
}
.trabalho-info ol,
.trabalho-dicas ul {
    padding-left: 20px;
    margin-bottom: 20px;
}
.trabalho-info li,
.trabalho-dicas li {
    font-size: 14px;
    color: #555;
    padding: 5px 0;
    line-height: 1.5;
}
.trabalho-info .btn,
.trabalho-info .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.trabalho-info .btn:hover,
.trabalho-info .btn-primary:hover {
    background: linear-gradient(135deg, #ff6b00 0%, #e55a00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,107,0,0.3);
}

/* Aviso tipos */
.aviso-item.aviso-urgente {
    border-left-color: #f44336;
    background: #fff8f8;
}
.aviso-item.aviso-info {
    border-left-color: #2196f3;
}
.aviso-item.aviso-sucesso {
    border-left-color: #4caf50;
    background: #f8fff8;
}

/* Loading placeholder */
.loading-placeholder {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 15px;
}

/* Seção de aulas sem padding extra */
#aulas .main-content-inner {
    padding-top: 20px;
}

/* Aula detail margin */
.aula-detail {
    margin-bottom: 30px;
}

/* Aula detail thumb 16:9 - override */
.aula-detail-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #111;
    margin-bottom: 0;
}
.aula-detail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Aula detail banner (background-image version) */
.aula-detail-banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    border-radius: 12px 12px 0 0;
}

/* Seção de aulas - padding lateral */
#aulas-lista .aula-detail {
    margin: 0 0 30px 0;
}

@media (max-width: 768px) {
    .material-card,
    .trabalho-info,
    .trabalho-dicas {
        padding: 18px;
    }
    .materiais-container,
    .trabalhos-container {
        padding: 0 !important;
    }
    .avisos-container {
        padding: 0 !important;
    }
    #aulas-lista .aula-detail {
        margin: 0 0 16px 0;
    }
}

/* ═══════════════════════════════════════════════
   SEÇÃO: DÚVIDAS
   ═══════════════════════════════════════════════ */

.nav-link-duvidas {
    background: rgba(255, 107, 0, 0.08);
    border-left: 4px solid rgba(255, 107, 0, 0.4) !important;
}
.nav-link-duvidas.active {
    background: rgba(255, 107, 0, 0.15) !important;
    color: #e55a00 !important;
    border-left-color: #ff6b00 !important;
}

.duvidas-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    padding: 0 40px 40px;
}
@media (max-width: 900px) {
    .duvidas-layout { grid-template-columns: 1fr; padding: 0 20px 20px; }
}

.duvida-form-card {
    background: white;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 0;
}
.duvida-form-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 6px;
}
.duvida-form-card > p {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}
.duvida-form-card .form-group {
    margin-bottom: 16px;
    text-align: left;
}
.duvida-form-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}
.duvida-form-card .form-group select,
.duvida-form-card .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    resize: vertical;
    background: white;
}
.duvida-form-card .form-group select:focus,
.duvida-form-card .form-group textarea:focus {
    outline: none;
    border-color: #0052cc;
}

.duvidas-lista {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.duvida-item {
    background: white;
    border-radius: 14px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}
.duvida-pergunta {
    padding: 20px 24px;
    border-left: 4px solid #0052cc;
}
.duvida-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.duvida-aula-tag {
    background: rgba(0,82,204,0.1);
    color: #0052cc;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
}
.duvida-data { font-size: 12px; color: #999; }
.duvida-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: auto;
}
.duvida-status.respondida { background: #e8f5e9; color: #2e7d32; }
.duvida-status.aguardando { background: #fff3e0; color: #e65100; }
.duvida-pergunta p { font-size: 14px; color: #1a1a1a; line-height: 1.6; font-weight: 500; }

.duvida-resposta {
    padding: 18px 24px;
    background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
    border-top: 1px solid #d0e4ff;
}
.duvida-resposta-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.prof-avatar-mini {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #0052cc, #ff6b00);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 11px; font-weight: 800; flex-shrink: 0;
}
.prof-nome-resp { display: block; font-size: 13px; font-weight: 700; color: #0052cc; }
.prof-data-resp { display: block; font-size: 11px; color: #888; }
.duvida-resposta p { font-size: 14px; color: #333; line-height: 1.7; }

.duvida-aguardando {
    padding: 14px 24px;
    background: #fffbf0;
    border-top: 1px solid #ffe0b2;
    font-size: 13px;
    color: #e65100;
}
