/* Sistema SAEB - Estilo Principal */

/* Variáveis */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Ajustes globais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
}

/* Navbar customizada */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* Sidebar */
.sidebar {
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 0.25rem;
    margin-bottom: 0.2rem;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    background-color: var(--primary-color);
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 600;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Formulários */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Dashboard cards */
.dashboard-card {
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* Tabelas */
.table-container {
    overflow-x: auto;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Alternativas */
.alternativa-card {
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
}

.alternativa-card-header {
    padding: 8px 15px;
    font-weight: bold;
}

.alternativa-a .alternativa-card-header {
    background-color: #e3f2fd;
}

.alternativa-b .alternativa-card-header {
    background-color: #e8f5e9;
}

.alternativa-c .alternativa-card-header {
    background-color: #fff8e1;
}

.alternativa-d .alternativa-card-header {
    background-color: #fce4ec;
}

.alternativa-e .alternativa-card-header {
    background-color: #f3e5f5;
}

.gabarito-selecionado {
    border: 2px solid #28a745;
    background-color: #f0fff0;
}

/* Editor de texto Quill customizado */
.ql-toolbar {
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
}

.ql-container {
    border-bottom-left-radius: 0.375rem;
    border-bottom-right-radius: 0.375rem;
    background-color: #fff;
}

.ql-editor {
    min-height: 120px;
    max-height: 300px;
    overflow-y: auto;
}

/* Responsividade */
@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        top: 56px;
        bottom: 0;
        left: 0;
        z-index: 1000;
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
}

/* Status badges */
.badge-rascunho {
    background-color: #e9ecef;
    color: #212529;
}

.badge-enviado {
    background-color: #cff4fc;
    color: #055160;
}

.badge-revisao {
    background-color: #fff3cd;
    color: #664d03;
}

.badge-aprovado {
    background-color: #d1e7dd;
    color: #0f5132;
}

.badge-rejeitado {
    background-color: #f8d7da;
    color: #842029;
}

/* Login page */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.login-form {
    max-width: 400px;
    width: 100%;
    padding: 2rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand i {
    font-size: 3rem;
    color: var(--primary-color);
}

/* Avaliação de itens */
.comentario-card {
    background-color: #f7f7f7;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 0.25rem;
}

.comentario-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comentario-autor {
    font-weight: bold;
}

.comentario-data {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Timeline para revisões */
.timeline {
    position: relative;
    padding-left: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7px;
    width: 2px;
    background-color: #e9ecef;
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: -1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid #fff;
}

.timeline-content {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}