/**
 * Estilos Customizados - Calendário de Agendamentos
 * MovvaTech
 */

:root {
    --movva-blue: #094281;
    --movva-orange: #FFA500;
    --movva-light-blue: #E3F2FD;
}

/* ============================================================================
   CALENDÁRIO FULLCALENDAR - CUSTOMIZAÇÕES
   ============================================================================ */

.fc {
    font-family: 'Inter', sans-serif;
}

/* Cabeçalho */
.fc .fc-button-primary {
    background-color: var(--movva-blue) !important;
    border-color: var(--movva-blue) !important;
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: #063452 !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #063452 !important;
    box-shadow: inset 0 0 0 2px var(--movva-orange) !important;
}

.fc .fc-button-primary:disabled {
    background-color: #ccc !important;
    opacity: 0.7;
}

/* Título do mês */
.fc .fc-toolbar-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--movva-blue);
}

/* Dias da semana (header) */
.fc .fc-daygrid-day-frame {
    min-height: 120px;
}

.fc .fc-col-header-cell {
    background-color: var(--movva-light-blue);
    color: var(--movva-blue);
    font-weight: 600;
    padding: 12px 4px;
}

/* Células do calendário */
.fc .fc-daygrid-day {
    border-color: #e0e0e0;
}

.fc .fc-daygrid-day:hover {
    background-color: rgba(9, 66, 129, 0.03);
}

.fc .fc-daygrid-day.fc-day-other {
    opacity: 0.3;
}

/* Dia de hoje */
.fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(255, 165, 0, 0.1) !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background-color: var(--movva-orange);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Eventos (Slots) */
.fc-event {
    border-radius: 5px !important;
    border: none !important;
    padding: 2px 4px !important;
}

.fc .fc-daygrid-event {
    margin-top: 1px;
}

.fc-event-title {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: normal !important;
    overflow: visible !important;
}

.slot-livre {
    background-color: var(--movva-blue) !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-livre:hover {
    background-color: #063452 !important;
    box-shadow: 0 2px 8px rgba(9, 66, 129, 0.3);
    transform: scale(1.02);
}

/* Grid no modo semana */
.fc-timegrid-slot {
    height: 3em;
}

.fc .fc-timegrid-slot {
    border-color: #f0f0f0;
}

.fc .fc-col-time-cell {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================================================
   MODAL DE AGENDAMENTO
   ============================================================================ */

#modal-agendamento {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-agendamento-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Inputs do formulário */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    transition: all 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(9, 66, 129, 0.1) !important;
}

/* Botão de submit */
button[type="submit"] {
    background-color: var(--movva-blue);
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: #063452;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 66, 129, 0.3);
}

button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ============================================================================
   MENSAGENS DE FEEDBACK
   ============================================================================ */

.bg-green-50 {
    background-color: #f0fdf4;
}

.border-l-4.border-green-500 {
    border-left-color: #22c55e;
}

.text-green-800 {
    color: #166534;
}

.text-green-700 {
    color: #15803d;
}

.text-green-600 {
    color: #16a34a;
}

.bg-red-50 {
    background-color: #fef2f2;
}

.border-l-4.border-red-500 {
    border-left-color: #ef4444;
}

.text-red-800 {
    color: #991b1b;
}

.text-red-700 {
    color: #b91c1c;
}

.text-red-500 {
    color: #ef4444;
}

/* ============================================================================
   RESPONSIVIDADE
   ============================================================================ */

@media (max-width: 768px) {
    .fc .fc-toolbar-title {
        font-size: 1.4rem;
    }
    
    .fc .fc-daygrid-day-frame {
        min-height: 80px;
    }
    
    .fc .fc-timegrid-slot {
        height: 2.5em;
    }
    
    .fc-event-title {
        font-size: 0.75rem;
    }
    
    .modal-agendamento-content {
        max-width: 95vw;
    }
}

@media (max-width: 640px) {
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 10px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2rem;
        margin: 10px 0;
    }
    
    .fc .fc-button-group {
        width: 100%;
    }
    
    .fc .fc-button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ============================================================================
   VARIÁVEIS CUSTOMIZADAS TAILWIND (Se usar inline)
   ============================================================================ */

.text-movva-blue {
    color: var(--movva-blue);
}

.bg-movva-blue {
    background-color: var(--movva-blue);
}

.text-movva-orange {
    color: var(--movva-orange);
}

.bg-movva-orange {
    background-color: var(--movva-orange);
}

.border-movva-blue {
    border-color: var(--movva-blue);
}

.hover\:bg-movva-blue:hover {
    background-color: var(--movva-blue);
}

.focus\:ring-movva-blue:focus {
    box-shadow: 0 0 0 3px rgba(9, 66, 129, 0.1);
    border-color: var(--movva-blue);
}

/* ============================================================================
   ANIMAÇÕES ÚTEIS
   ============================================================================ */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spin {
    animation: spin 1s linear infinite;
}

/* ============================================================================
   UTIL: Solução Tailwind inline
   ============================================================================ */

/* Se precisar usar classes Tailwind diretamente no HTML */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pt-4 { padding-top: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.ml-4 { margin-left: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }

.rounded-lg { border-radius: 0.5rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); }
.border { border: 1px solid #e5e7eb; }

.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }

.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }

.space-y-4 > * + * { margin-top: 1rem; }

.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-50 { z-index: 50; }
.top-4 { top: 1rem; }
.right-4 { right: 1rem; }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-2xl { font-size: 1.5rem; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.float-right { float: right; }
.text-center { text-align: center; }

.opacity-50 { opacity: 0.5; }

.bg-black { background-color: black; }
.bg-white { background-color: white; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-gray-300 { background-color: #d1d5db; }
.bg-gray-700 { background-color: #374151; }
.bg-opacity-50 { opacity: 0.5; }

.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }

.hover\:text-gray-700:hover { color: #374151; }
.hover\:bg-gray-300:hover { background-color: #d1d5db; }
