/* Estilos minimalistas para o calendário de agendamentos */

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    padding: 20px;
}

/* Título da página */
#titulo {
    color: #0d6efd;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding: 0 20px 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    animation: fadeIn 1s ease-in-out;
}

#titulo:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #6ea8fe);
    transform: translateX(-50%);
    border-radius: 3px;
    animation: slideIn 1.5s ease-out;
}

#titulo:before {
    content: '📅';
    margin-right: 12px;
    font-size: 1.1em;
    animation: pulse 2s infinite;
    display: inline-block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 80px; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Estilos do calendário */
.calendar-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px;
}

.fc {
    font-size: 0.9em;
}

.fc-header-toolbar {
    margin-bottom: 1.2em !important;
    padding: 0 10px;
}

.fc-theme-bootstrap a {
    color: #0d6efd;
    text-decoration: none;
}

.fc-daygrid-day {
    padding: 2px;
    transition: all 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: #f0f0f0;
}

.fc-daygrid-day.fc-day-today {
    background-color: rgba(13, 110, 253, 0.08) !important;
}

.fc-daygrid-day-number {
    font-size: 0.85em;
    font-weight: 500;
    padding: 3px 6px !important;
}

.fc-daygrid-dot-event {
    padding: 0 4px !important;
}

.fc-button-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    font-weight: 400 !important;
    box-shadow: none !important;
    font-size: 0.85em !important;
    padding: 0.3em 0.65em !important;
}

.fc-button-primary:hover {
    background-color: #0b5ed7 !important;
    border-color: #0b5ed7 !important;
}

/* Cabeçalho do calendário */
h3:not(#titulo) {
    color: #0d6efd;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Estilos para a lista de eventos */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.card-header {
    background-color: #0d6efd;
    padding: 12px 15px;
    border-bottom: none;
}

.card-header h5 {
    font-size: 1.1em;
    font-weight: 500;
}

.list-group-item {
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
}

/* Responsividade */
@media (max-width: 991px) {
    .calendar-container {
        margin-bottom: 30px;
    }
    
    .card {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .fc-header-toolbar {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .fc {
        font-size: 0.85em;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 10px;
    }
    
    .calendar-container {
        padding: 10px;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    .input-group {
        width: 100%;
    }
}

/* Estilos para o modal de agendamento */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.modal-header {
    background-color: #ffffff;
    border-bottom: none;
    padding: 20px 25px 10px;
}

.modal-header .modal-title {
    color: #0d6efd;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header .modal-title i {
    font-size: 1.5rem;
    color: #0d6efd;
}

.modal-body {
    padding: 15px 25px 20px;
    overflow-x: hidden;
}

.modal-footer {
    border-top: none;
    padding: 10px 25px 20px;
    justify-content: space-between;
}

/* Estilos para os campos do formulário */
.form-label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-label i {
    color: #0d6efd;
    font-size: 1rem;
    width: auto;
}

.form-control, .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 0.95rem;
    background-color: #fcfcfc;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
    font-size: 0.95rem;
}

/* Botões do modal */
.modal-footer .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-content {
        border-radius: 12px;
        width: 100%;
    }
    
    .modal-header {
        padding: 15px 20px 5px;
    }
    
    .modal-body {
        padding: 10px 20px 15px;
    }
    
    .modal-footer {
        padding: 5px 20px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .form-control, .form-select {
        font-size: 0.9rem;
        padding: 10px 12px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col-md-6 {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* Animações para o formulário do modal */
.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects para botões */
.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

.modal-footer .btn:hover {
    transform: translateY(-2px);
}

/* Estilos para o modal de exclusão de eventos */
#modal_excluir_evento .modal-header .modal-title i {
    margin-right: 10px;
}

#modal_excluir_evento .alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
    border-radius: 8px;
    padding: 15px;
}

#modal_excluir_evento .alert-heading {
    color: #664d03;
    font-weight: 600;
    display: flex;
    align-items: center;
}

#modal_excluir_evento .event-details {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

#modal_excluir_evento .event-details h6 {
    color: #0d6efd;
    font-weight: 600;
}

#modal_excluir_evento .event-details p {
    margin-bottom: 10px;
}

#modal_excluir_evento .event-details strong {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}

#modal_excluir_evento .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

#modal_excluir_evento .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}

/* Estilos para os botões de exclusão na lista de eventos */
.delete-event-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.delete-event-btn:hover {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(220, 53, 69, 0.2);
}

.list-group-item:hover .delete-event-btn {
    opacity: 1;
}

/* Ajustes gerais do modal */
.modal-dialog {
    max-width: 500px;
}

/* Estilos para os campos de horário */
.horarios-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.horario-grupo {
    margin-bottom: 5px;
}

.horario-label {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 500;
}

.horario-campo {
    position: relative;
    display: flex;
    align-items: center;
}

.horario-icone {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.horario-campo .form-control {
    padding-left: 40px;
    height: 42px;
}

.horario-icone i {
    font-size: 1rem;
}

.horario-campo input[type="time"] {
    color: #495057;
    min-height: 42px;
}

/* Ajustes para os campos de data e tempo */
input[type="date"] {
    min-height: 42px;
}

/* Animação nos campos de horário */
.horario-campo:hover .form-control {
    border-color: #ced4da;
}

.horario-campo .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

/* Estilos para a mensagem de nenhum evento */
.no-events-message {
    opacity: 0.9;
    transition: all 0.3s ease;
}

.empty-calendar-icon {
    font-size: 3rem;
    opacity: 0.6;
    display: block;
    margin-bottom: 0.5rem;
}

.no-events-message h6 {
    font-weight: 500;
    color: #6c757d;
}

.no-events-message p {
    color: #adb5bd;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.no-events-message .btn {
    transition: all 0.3s ease;
    opacity: 0.9;
}

.no-events-message .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.15);
    opacity: 1;
}
