/* Sistema de Atividades - Estilos CSS */

/* Modais de Atividades */
.activity-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.activity-modal.active {
    display: flex;
}

.activity-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

.modal-title {
    color: #0066cc;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Formulário de Criação de Atividade */
.create-activity-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #334155;
    font-size: 1.275rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Cards de Atividades */


.activity-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    position: relative;
}

.activity-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.activity-card.responded {
    border-color: #10b981;
    background: #f0fdf4;
}

.activity-card.overdue {
    border-color: #ef4444;
    background: #fef2f2;
}

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

.activity-title {
    color: #1e293b;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

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

.btn-icon {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.btn-icon.view {
    color: #0066cc;
}

.btn-icon.view:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.btn-icon.delete {
    color: #ef4444;
}

.btn-icon.delete:hover {
    background: #fee2e2;
    color: #dc2626;
}

.activity-description {
    margin-bottom: 1rem;
}

.activity-description p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

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

.meta-item i {
    color: #0066cc;
}

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

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Status Badges */
.activity-status {
    display: flex;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.responded {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.overdue {
    background: #fee2e2;
    color: #991b1b;
}

/* Detalhes da Atividade */
.activity-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.activity-description h4,
.activity-info h4 {
    color: #334155;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.activity-info {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item i {
    color: #0066cc;
    width: 16px;
}

/* Resposta Existente */
.existing-response {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
}

.response-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #065f46;
    font-weight: 500;
}

.response-status i {
    color: #10b981;
}

.response-details p {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 0.875rem;
}

.response-text,
.response-file {
    margin-top: 0.75rem;
}

.response-text strong,
.response-file strong {
    color: #374151;
    font-size: 0.875rem;
}

.response-text p {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1fae5;
    margin-top: 0.5rem;
    line-height: 1.5;
}

/* Formulário de Resposta */
.response-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.response-form h4 {
    color: #334155;
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Upload de Arquivo */
.file-upload-area {
    position: relative;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #0066cc;
    background: #f8fafc;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
}

.file-upload-text i {
    font-size: 2rem;
    color: #cbd5e1;
}

.file-upload-text span {
    font-weight: 500;
}

.file-upload-text small {
    font-size: 0.75rem;
    color: #94a3b8;
}

.file-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #374151;
    font-size: 0.875rem;
}

.file-info i {
    color: #0066cc;
}

.file-name {
    font-weight: 500;
}

.file-size {
    color: #64748b;
    font-size: 0.75rem;
}

/* Ações do Formulário */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 0.975rem;
}
#buttonIicial{
    font-size: 1.2rem !important;
}
.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f1f5f9;
    color: #334155;
}

/* Lista de Respostas */
.responses-content {
    max-height: 60vh;
    overflow-y: auto;
}

.responses-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

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

.summary-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.25rem;
}

.summary-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.response-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
}

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

.student-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
}

.student-info i {
    color: #0066cc;
    font-size: 1rem;
}

.student-name {
    font-weight: 500;
    color: #334155;
}

.submission-time {
    color: #94a3b8;
    font-size: 0.75rem;
}

.btn-download {
    background: #10b981;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-download:hover {
    background: #059669;
    transform: translateY(-1px);
}

.response-text h4,
.response-file h4 {
    color: #374151;
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.response-text p {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 0;
    line-height: 1.5;
    color: #374151;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #64748b;
}

.empty-state i {
    font-size: 3rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

#materialAdicionar{
    font-size: 2rem !important;
    margin-bottom: 0px !important;
}

.empty-state p {
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
}

.empty-state small {
    font-size: 0.875rem;
    color: #94a3b8;
}

.empty-state .btn {
    margin-top: 1rem;
}

/* Seções de Atividades */
.activities-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

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

.activities-header h2 {
    color: #0066cc;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.activities-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-create {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-create:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* Responsividade */
@media (max-width: 768px) {
    .activity-modal-content {
        margin: 1rem;
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    .activities-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .activities-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .activity-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .activity-actions {
        justify-content: flex-end;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .activity-stats {
        justify-content: center;
    }
    
    .responses-summary {
        grid-template-columns: 1fr;
    }
    
    .response-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .activity-modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .activity-card {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1.5rem;
    }
    
    .file-upload-text i {
        font-size: 1.5rem;
    }
}
