/* INfoY Cursos - Aula Online Stylesheet */
.aula-page {
    background-color: var(--dark-gray);
}

/* Classroom Layout */
.classroom {
    padding: 2rem 0;
    color: var(--white);
}

.classroom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.course-info h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.course-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--light-gray);
}

.live-badge {
    background-color: #f44336;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.classroom-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.viewer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-gray);
}

/* Video Container */
.classroom-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-container {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.video-area {
    position: relative;
    width: 100%;
    background-color: #000;
}

#video-player {
    width: 100%;
    display: block;
    max-height: 70vh;
}

.live-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.live-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.live-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.live-btn.active {
    background-color: var(--orange);
}

.video-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.reaction-buttons {
    display: flex;
    gap: 0.5rem;
}

.reaction-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.reaction-btn:hover {
    transform: scale(1.1);
}

.reaction-btn[data-reaction="like"]:hover {
    background-color: #4CAF50;
}

.reaction-btn[data-reaction="question"]:hover {
    background-color: #2196F3;
}

.reaction-btn[data-reaction="slow"]:hover {
    background-color: #FFC107;
}

.reaction-btn[data-reaction="got-it"]:hover {
    background-color: #9C27B0;
}

/* Video Info and Tabs */
.video-info {
    padding: 1.5rem;
}

.tabs-container {
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.tabs {
    display: flex;
    background-color: #333;
    border-bottom: 1px solid #444;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.tab-btn.active {
    color: var(--white);
    border-bottom: 3px solid var(--orange);
    background-color: #2a2a2a;
}

.tab-btn:hover:not(.active) {
    background-color: #3a3a3a;
}

.tab-content {
    height: 400px;
    overflow-y: auto;
}

.tab-pane {
    display: none;
    padding: 1.5rem;
}

.tab-pane.active {
    display: block;
}

/* Chat Tab */
.chat-messages {
    height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.message {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.message-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.message-author {
    font-weight: 500;
}

.message.instructor .message-author {
    color: var(--orange);
}

.message-time {
    font-size: 0.8rem;
    color: #888;
}

.message-text {
    line-height: 1.5;
}

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

.chat-input textarea {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #444;
    background-color: #333;
    border-radius: 4px;
    resize: none;
    color: var(--white);
    height: 60px;
}

.chat-input textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.send-btn {
    width: 60px;
    background-color: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.send-btn:hover {
    background-color: #e67e22;
}

/* Questions Tab */
.questions-container {
    margin-bottom: 1rem;
}

.question-item {
    background-color: #333;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.question-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.question-avatar img, .answer-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.question-meta, .answer-meta {
    flex: 1;
    margin-left: 1rem;
}

.question-author, .answer-author {
    font-weight: 500;
    display: block;
}

.instructor .answer-author {
    color: var(--orange);
}

.question-time, .answer-time {
    font-size: 0.8rem;
    color: #888;
}

.question-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vote-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.vote-btn:hover {
    color: var(--orange);
}

.question-content, .answer-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.question-actions {
    display: flex;
    justify-content: flex-end;
}

.action-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.action-btn:hover {
    color: var(--orange);
}

.question-answer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #444;
}

.answer-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.ask-question {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ask-question textarea {
    padding: 0.8rem;
    border: 1px solid #444;
    background-color: #333;
    border-radius: 4px;
    resize: none;
    color: var(--white);
    height: 80px;
}

.ask-question textarea:focus {
    outline: none;
    border-color: var(--orange);
}

.ask-btn {
    background-color: var(--orange);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.ask-btn:hover {
    background-color: #e67e22;
}

/* Materials Tab */
.materials-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.material-item {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s;
}

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

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

.material-icon i {
    color: var(--orange);
}

.material-info {
    flex: 1;
    margin-left: 1rem;
}

.material-info h4 {
    margin-bottom: 0.3rem;
}

.material-info p {
    font-size: 0.9rem;
    color: #aaa;
}

.material-actions {
    display: flex;
}

.material-btn {
    background: none;
    border: none;
    color: var(--light-gray);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.material-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--orange);
}

/* Notes Tab */
.notes-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

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

.notes-btn {
    background-color: #444;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.notes-btn:hover {
    background-color: var(--orange);
}

.notes-editor {
    flex: 1;
}

.notes-editor textarea {
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 1px solid #444;
    background-color: #333;
    border-radius: 4px;
    resize: none;
    color: var(--white);
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

.notes-editor textarea:focus {
    outline: none;
    border-color: var(--orange);
}

/* Classroom Footer */
.classroom-footer {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.next-classes {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.next-classes h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.next-classes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.next-class-item {
    display: flex;
    align-items: center;
    background-color: #333;
    border-radius: 8px;
    padding: 1rem;
    transition: transform 0.3s;
}

.next-class-item:hover {
    transform: translateY(-3px);
}

.next-class-date {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background-color: var(--orange);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.next-class-date .date {
    font-size: 1.5rem;
    font-weight: 700;
}

.next-class-date .month {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.next-class-info {
    margin-left: 1rem;
}

.next-class-info h4 {
    margin-bottom: 0.5rem;
}

.next-class-info p {
    font-size: 0.9rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.progress-info {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1.5rem;
}

.progress-info h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.progress-container {
    width: 100%;
    height: 8px;
    background-color: #444;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-bar {
    height: 100%;
    background-color: var(--green);
    border-radius: 4px;
}

.mark-complete-btn {
    display: block;
    width: 100%;
    background-color: var(--green);
    color: var(--white);
    border: none;
    padding: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    margin-top: 1.5rem;
    transition: background-color 0.3s;
}

.mark-complete-btn:hover {
    background-color: #5a7a6d;
}

/* Footer */
footer.classroom-footer {
    background-color: transparent;
    color: var(--light-gray);
    padding: 1rem 0;
    border-top: 1px solid #444;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .classroom-content {
        grid-template-columns: 1fr;
    }
    
    .classroom-footer {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .classroom-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .classroom-controls {
        margin-top: 1rem;
    }
    
    .tab-btn {
        padding: 0.8rem;
    }
}