/* ===== ESTILOS MODERNOS PARA CARDS ===== */

/* Grid de Cards */
.plataforma-cards,
.aulas-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem 0 !important;
    padding: 1rem !important;
}

/* Card Base */
.plataforma-card,
.aula-card {
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.1),
        0 4px 10px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(26, 51, 83, 0.08) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
    border: 2px solid rgba(26, 51, 83, 0.1) !important;
    position: relative !important;
    min-height: 400px !important;
    margin-bottom: 2rem !important;
}

/* Barra Superior Colorida */
.plataforma-card::before,
.aula-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 6px !important;
    background: linear-gradient(90deg, #1a3353 0%, #e0bf5e 50%, #ce0001 100%) !important;
    z-index: 2 !important;
}

/* Efeito Hover */
.plataforma-card:hover,
.aula-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(26, 51, 83, 0.15) !important;
    border-color: rgba(26, 51, 83, 0.2) !important;
}

/* Header do Card */
.plataforma-card-header,
.aula-card-header {
    background: linear-gradient(135deg, #1a3353 0%, #2a4a7a 50%, #1a3353 100%);
    color: #ffffff;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Efeito Shimmer no Header */
.plataforma-card-header::before,
.aula-card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(224, 191, 94, 0.2) 0%, transparent 70%);
    animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { 
        transform: translateX(-100%) translateY(-100%) rotate(45deg); 
        opacity: 0;
    }
    50% { 
        transform: translateX(100%) translateY(100%) rotate(45deg); 
        opacity: 1;
    }
}

/* Título do Header */
.plataforma-card-header h6,
.aula-card-header h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 3;
    letter-spacing: 0.5px;
}

/* Checkbox no Header */
.aula-card-header .form-check-input {
    margin: 0;
    transform: scale(1.3);
    border: 3px solid rgba(255, 255, 255, 0.4);
    background-color: transparent;
    border-radius: 6px;
}

.aula-card-header .form-check-input:checked {
    background-color: #e0bf5e;
    border-color: #e0bf5e;
    box-shadow: 0 0 0 3px rgba(224, 191, 94, 0.3);
}

/* Corpo do Card */
.plataforma-card-body,
.aula-card-body {
    padding: 2rem !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%) !important;
    min-height: 320px !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Campos do Card */
.plataforma-field,
.aula-field {
    margin-bottom: 1.5rem !important;
    position: relative !important;
    padding: 0.5rem 0 !important;
    border-bottom: 1px solid rgba(26, 51, 83, 0.05) !important;
}

.plataforma-field:last-child,
.aula-field:last-child {
    margin-bottom: 0;
}

/* Labels dos Campos */
.plataforma-field label,
.aula-field label {
    display: block;
    font-weight: 700;
    color: #1a3353;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #1a3353, #e0bf5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.plataforma-field label::after,
.aula-field label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #1a3353, #e0bf5e);
    border-radius: 1px;
}

/* Valores dos Campos */
.plataforma-field-value,
.aula-field-value {
    font-size: 0.95rem;
    color: #6c757d;
    word-wrap: break-word;
    padding: 0.75rem 1rem;
    border-left: 4px solid #e0bf5e;
    background: linear-gradient(90deg, rgba(224, 191, 94, 0.08) 0%, rgba(224, 191, 94, 0.02) 100%);
    border-radius: 0 12px 12px 0;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Inputs e Selects */
.plataforma-field input,
.plataforma-field select,
.aula-field input,
.aula-field select {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(26, 51, 83, 0.15);
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.05),
        0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.plataforma-field input:focus,
.plataforma-field select:focus,
.aula-field input:focus,
.aula-field select:focus {
    border-color: #1a3353;
    box-shadow: 
        0 0 0 4px rgba(26, 51, 83, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
    outline: none;
    transform: translateY(-2px);
    background: #ffffff;
}

/* Badges */
.plataforma-field .badge,
.aula-field .badge {
    font-size: 0.7rem;
    padding: 0.5em 1em;
    margin: 0.25rem;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.plataforma-field .badge:hover,
.aula-field .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Seção de Ações */
.plataforma-actions,
.aula-actions {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    margin-top: auto !important;
    padding-top: 1.5rem !important;
    border-top: 2px solid rgba(26, 51, 83, 0.08) !important;
    background: linear-gradient(145deg, rgba(26, 51, 83, 0.03) 0%, rgba(224, 191, 94, 0.03) 100%) !important;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    margin: 1.5rem -1rem -1rem -1rem !important;
    position: relative !important;
    z-index: 2 !important;
}

/* Botões de Ação */
.plataforma-actions .btn,
.aula-actions .btn {
    font-size: 0.85rem;
    padding: 0.875rem 1.5rem;
    flex: 1;
    min-width: 120px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border: none;
    position: relative;
    overflow: hidden;
}

.plataforma-actions .btn::before,
.aula-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.plataforma-actions .btn:hover::before,
.aula-actions .btn:hover::before {
    left: 100%;
}

.plataforma-actions .btn:hover,
.aula-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Seção de Pendências */
.pendencia-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(220, 53, 69, 0.08) 0%, rgba(255, 193, 7, 0.08) 100%);
    border-radius: 12px;
    border: 2px solid rgba(220, 53, 69, 0.15);
    position: relative;
    overflow: hidden;
}

.pendencia-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc3545, #ffc107);
}

.pendencia-status .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.pendencia-status .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Formulários de Status */
.aula-status-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(26, 51, 83, 0.05) 0%, rgba(224, 191, 94, 0.05) 100%);
    border-radius: 12px;
    border: 2px solid rgba(26, 51, 83, 0.1);
    margin-top: 1rem;
}

.aula-status-form .form-select,
.aula-status-form .form-control {
    border-radius: 8px;
    border: 2px solid rgba(26, 51, 83, 0.15);
    transition: all 0.3s ease;
}

.aula-status-form .form-select:focus,
.aula-status-form .form-control:focus {
    border-color: #1a3353;
    box-shadow: 0 0 0 3px rgba(26, 51, 83, 0.1);
}

.aula-status-form .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.aula-status-form .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Badges com Gradientes */
.badge.bg-primary {
    background: linear-gradient(135deg, #1a3353, #2a4a7a) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ce0001, #950d0d) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #e0bf5e, #d4b55a) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge.bg-info {
    background: linear-gradient(135deg, #17a2b8, #20c997) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge.bg-dark {
    background: linear-gradient(135deg, #343a40, #495057) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Garantir que os cards não se misturem */
.plataforma-card,
.aula-card {
    isolation: isolate !important;
    contain: layout style paint !important;
}

/* Responsividade */
@media (max-width: 1200px) {
    .plataforma-cards,
    .aulas-cards {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .plataforma-cards,
    .aulas-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }
    
    .plataforma-card-body,
    .aula-card-body {
        padding: 1.5rem;
    }
    
    .plataforma-actions,
    .aula-actions {
        flex-direction: column;
        padding: 1rem;
    }
    
    .plataforma-actions .btn,
    .aula-actions .btn {
        width: 100%;
    }
    
    .aula-status-form {
        flex-direction: column;
        padding: 1rem;
    }
    
    .aula-status-form .form-select,
    .aula-status-form .form-control {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .plataforma-field input,
    .plataforma-field select,
    .aula-field input,
    .aula-field select {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }
    
    .plataforma-card-header,
    .aula-card-header {
        padding: 1.25rem;
    }
    
    .plataforma-card-body,
    .aula-card-body {
        padding: 1rem;
    }
    
    .plataforma-actions,
    .aula-actions {
        padding: 0.75rem;
    }
    
    .aula-status-form {
        padding: 0.75rem;
    }
}

/* ===== TAREFAS - CORES PERSONALIZADAS ===== */
/* Cores para tipos de tarefa */
body .badge.bg-primary[data-tipo="Attendance"],
.container .badge.bg-primary[data-tipo="Attendance"],
.card .badge.bg-primary[data-tipo="Attendance"] {
    background: #0d6efd !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-success[data-tipo="Atualização de Aluno"],
.container .badge.bg-success[data-tipo="Atualização de Aluno"],
.card .badge.bg-success[data-tipo="Atualização de Aluno"] {
    background: #198754 !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-warning[data-tipo="Interação de Vendas"],
.container .badge.bg-warning[data-tipo="Interação de Vendas"],
.card .badge.bg-warning[data-tipo="Interação de Vendas"] {
    background: #ffc107 !important;
    color: #000 !important;
    border: none !important;
}

body .badge.bg-info[data-tipo="Reunião"],
.container .badge.bg-info[data-tipo="Reunião"],
.card .badge.bg-info[data-tipo="Reunião"] {
    background: #0dcaf0 !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-secondary[data-tipo="Relatório"],
.container .badge.bg-secondary[data-tipo="Relatório"],
.card .badge.bg-secondary[data-tipo="Relatório"] {
    background: #6c757d !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-dark[data-tipo="Outro"],
.container .badge.bg-dark[data-tipo="Outro"],
.card .badge.bg-dark[data-tipo="Outro"] {
    background: #212529 !important;
    color: white !important;
    border: none !important;
}

/* Cores para status de tarefa */
body .badge.bg-success[data-status="Concluída"],
.container .badge.bg-success[data-status="Concluída"],
.card .badge.bg-success[data-status="Concluída"] {
    background: #198754 !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-danger[data-status="Cancelada"],
.container .badge.bg-danger[data-status="Cancelada"],
.card .badge.bg-danger[data-status="Cancelada"] {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-primary[data-status="Em andamento"],
.container .badge.bg-primary[data-status="Em andamento"],
.card .badge.bg-primary[data-status="Em andamento"] {
    background: #0d6efd !important;
    color: white !important;
    border: none !important;
}

body .badge.bg-warning[data-status="Pendente"],
.container .badge.bg-warning[data-status="Pendente"],
.card .badge.bg-warning[data-status="Pendente"] {
    background: #ffc107 !important;
    color: #000 !important;
    border: none !important;
}

body .badge.bg-info[data-status="Aguardando"],
.container .badge.bg-info[data-status="Aguardando"],
.card .badge.bg-info[data-status="Aguardando"] {
    background: #0dcaf0 !important;
    color: white !important;
    border: none !important;
}

/* Melhorias visuais para badges das tarefas */
body .table .badge,
body .card .badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease-in-out;
}

body .table .badge:hover,
body .card .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Responsividade para badges das tarefas */
@media (max-width: 768px) {
    body .table .badge,
    body .card .badge {
        font-size: 0.7em;
        padding: 0.25em 0.5em;
    }
}

/* Melhorar legibilidade dos selects coloridos */
.plataforma-field select option[style*="color:green"],
.aula-field select option[style*="color:green"] { 
    color: #28a745 !important; 
    background: rgba(40, 167, 69, 0.1);
}

.plataforma-field select option[style*="color:blue"],
.aula-field select option[style*="color:blue"] { 
    color: #007bff !important; 
    background: rgba(0, 123, 255, 0.1);
}

.plataforma-field select option[style*="color:goldenrod"],
.aula-field select option[style*="color:goldenrod"] { 
    color: #ffc107 !important; 
    background: rgba(255, 193, 7, 0.1);
}

.plataforma-field select option[style*="color:red"],
.aula-field select option[style*="color:red"] { 
    color: #dc3545 !important; 
    background: rgba(220, 53, 69, 0.1);
}

.plataforma-field select option[style*="color:gray"],
.aula-field select option[style*="color:gray"] { 
    color: #6c757d !important; 
    background: rgba(108, 117, 125, 0.1);
}

.plataforma-field select option[style*="color:black"],
.aula-field select option[style*="color:black"] { 
    color: #000000 !important; 
    background: rgba(0, 0, 0, 0.1);
}

.plataforma-field select option[style*="color:purple"],
.aula-field select option[style*="color:purple"] { 
    color: #6f42c1 !important; 
    background: rgba(111, 66, 193, 0.1);
}

.plataforma-field select option[style*="color:darkred"],
.aula-field select option[style*="color:darkred"] { 
    color: #8b0000 !important; 
    background: rgba(139, 0, 0, 0.1);
} 