/* Estilos personalizados para o Sistema de Agendamento */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card-header {
    border-radius: 8px 8px 0 0 !important;
    font-weight: 600;
}

.jumbotron {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.table th {
    background-color: #f8f9fa;
}

.badge {
    padding: 6px 10px;
    font-weight: 500;
}

.btn {
    border-radius: 4px;
    font-weight: 500;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

footer {
    border-top: 1px solid #e9ecef;
    margin-top: 30px;
}

/* Cores para tipos de fissura */
.fissura-labial {
    color: #007bff;
}

.fissura-palatina {
    color: #28a745;
}

.fissura-labiopalatina {
    color: #6f42c1;
}

/* Estilos para o calendário de agendamentos */
.calendario-dia {
    min-height: 120px;
    border: 1px solid #dee2e6;
    padding: 8px;
}

.calendario-dia-header {
    font-weight: bold;
    text-align: center;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #dee2e6;
}

.calendario-dia-atual {
    background-color: #e8f4ff;
}

.calendario-evento {
    padding: 4px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendario-evento-agendado {
    background-color: #cfe2ff;
    border-left: 3px solid #0d6efd;
}

.calendario-evento-confirmado {
    background-color: #d1e7dd;
    border-left: 3px solid #198754;
}

.calendario-evento-cancelado {
    background-color: #f8d7da;
    border-left: 3px solid #dc3545;
    text-decoration: line-through;
}

.calendario-evento-realizado {
    background-color: #e2e3e5;
    border-left: 3px solid #6c757d;
}

/* Estilos para a timeline de evolução clínica */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 120px;
    height: 100%;
    width: 4px;
    background: #e9ecef;
}

.timeline-month {
    position: relative;
    margin-left: 150px;
    background-color: #f8f9fa;
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #495057;
    border-left: 4px solid #6c757d;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    text-align: right;
    padding-right: 30px;
    color: #6c757d;
    font-weight: bold;
}

.timeline-content {
    margin-left: 150px;
    position: relative;
}

.timeline-content:before {
    content: '';
    position: absolute;
    left: -33px;
    top: 15px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #007bff;
}

.timeline-content .card-header.bg-danger + .card-body:before {
    border-color: #dc3545;
}

.timeline-content .card-header.bg-success + .card-body:before {
    border-color: #28a745;
}

.timeline-content .card-header.bg-warning + .card-body:before {
    border-color: #ffc107;
}

.timeline-content .card-header.bg-info + .card-body:before {
    border-color: #17a2b8;
}

.timeline-content .card-header.bg-secondary + .card-body:before {
    border-color: #6c757d;
}

/* Cores para tipos de evolução */
.evolucao-consulta {
    border-left: 4px solid #007bff;
}

.evolucao-cirurgia {
    border-left: 4px solid #dc3545;
}

.evolucao-fonoterapia {
    border-left: 4px solid #28a745;
}

.evolucao-ortodontia {
    border-left: 4px solid #ffc107;
}

.evolucao-psicologia {
    border-left: 4px solid #17a2b8;
}

.evolucao-outro {
    border-left: 4px solid #6c757d;
}

/* Responsividade */
@media (max-width: 768px) {
    .jumbotron {
        padding: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .timeline:before {
        left: 60px;
    }
    
    .timeline-month {
        margin-left: 90px;
    }
    
    .timeline-date {
        width: 60px;
        padding-right: 20px;
    }
    
    .timeline-content {
        margin-left: 90px;
    }
    
    .timeline-content:before {
        left: -28px;
    }
}