/* Agenda page styles */

.agenda-breadcrumb {
    background-color: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.agenda-breadcrumb-item a {
    color: #666;
    text-decoration: none;
}

.agenda-breadcrumb-item.active {
    color: #333;
}

/* Agenda header */
.agenda-header {
    background: linear-gradient(135deg, #1A5E34 0%, #0F4A26 100%);
    color: white;
    min-height: 180px;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Agenda section */
.agenda-section {
    background-color: #f8f9fa;
    min-height: 500px;
    padding: 2rem 0;
}

.agenda-title {
    color: #1A5E34;
    font-size: 1.5rem;
}

/* Month navigation */
.month-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.month-nav-arrow {
    opacity: 0.7;
    font-size: 0.75rem;
}

.month-name {
    font-size: 0.8rem;
    font-weight: 500;
}

.year-display {
    font-size: 1.4rem;
    font-weight: bold;
}

.month-display {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Loading spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
}

.loading-spinner.active {
    display: block;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1A5E34;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animações de transição */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.fade-in {
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

/* Eventos container */
#eventos-mes-container {
    position: relative;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

/* Grupo de eventos */
.evento-grupo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.evento-grupo.sabados {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 4px solid #2196F3;
}

.evento-grupo.normal {
    background-color: #f8f9fa;
    border-left: 4px solid #1A5E34;
}

.evento-grupo-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.evento-grupo-title.sabados {
    color: #1565C0;
}

.evento-grupo-title.normal {
    color: #1A5E34;
}

.evento-info {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* Turno badges */
.turno-badge {
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem 0.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.turno-emoji {
    font-size: 1rem;
}

.turno-time {
    color: #6c757d;
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

/* Eventos carousel */
.eventos-carousel {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    display: flex;
    flex-wrap: nowrap;
}

.evento-card-wrapper {
    flex: 0 0 auto;
    width: 100%;
    max-width: 350px;
}

.evento-card {
    height: 100%;
    overflow: hidden;
}

.evento-card-header {
    height: 6px;
}

.evento-card-body {
    padding: 1rem;
}

.evento-badge {
    color: white;
}

.evento-emoji {
    font-size: 1.8rem;
}

.evento-details {
    font-size: 0.9rem;
}

.evento-detail-item {
    margin-bottom: 0.5rem;
}

.evento-detail-icon {
    margin-right: 0.5rem;
}

.evento-status {
    color: #28a745;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}

.evento-footer {
    background-color: white;
    border: none;
    padding-bottom: 0.75rem;
    padding-top: 0;
    margin-top: auto;
}

/* Button styles */
.agenda-button {
    background-color: #1A5E34;
    color: white;
    font-weight: 500;
    padding: 12px 32px;
    border: none;
}

.agenda-button:hover {
    background-color: #0F4A26;
    color: white;
}

/* No events message */
.no-events-message {
    padding: 3rem 0;
}

/* Carousel de meses para telas pequenas */
@media (max-width: 767px) {
    .month-carousel {
        display: flex;
        overflow: hidden;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        padding: 1rem 0;
        perspective: 1000px;
    }

    .month-card {
        flex: 0 0 90px;
        text-align: center;
        padding: 1rem 0.75rem;
        background: white;
        border: 2px solid #e0e0e0;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 500;
        font-size: 0.9rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        user-select: none;
        -webkit-user-select: none;
        outline: none !important;
        -webkit-tap-highlight-color: transparent !important;
        -webkit-appearance: none;
        border-color: #e0e0e0 !important;
    }

    .month-card:focus,
    .month-card:focus-visible,
    .month-card:focus-within,
    .month-card:active {
        outline: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border-color: #e0e0e0 !important;
        background-color: white !important;
    }

    .month-card.current {
        background-color: #1A5E34;
        color: white;
        border-color: #1A5E34;
        font-weight: bold;
        font-size: 1rem;
        box-shadow: 0 8px 20px rgba(26, 94, 52, 0.25);
        transform: scale(1.15);
        z-index: 10;
    }

    .month-card.current:focus,
    .month-card.current:focus-visible,
    .month-card.current:focus-within,
    .month-card.current:active {
        outline: none !important;
        box-shadow: 0 8px 20px rgba(26, 94, 52, 0.25) !important;
        border-color: #1A5E34 !important;
        background-color: #1A5E34 !important;
    }

    .month-card.prev,
    .month-card.next {
        opacity: 0.65;
        color: #888;
        background-color: #f5f5f5;
        border-color: #ddd;
    }

    .month-card.prev:focus,
    .month-card.prev:focus-visible,
    .month-card.prev:focus-within,
    .month-card.prev:active,
    .month-card.next:focus,
    .month-card.next:focus-visible,
    .month-card.next:focus-within,
    .month-card.next:active {
        outline: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border-color: #ddd !important;
        background-color: #f5f5f5 !important;
    }

    .month-card.prev:hover,
    .month-card.next:hover {
        opacity: 0.85;
        background-color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
        border-color: #1A5E34;
        transform: translateY(-2px);
    }

    .month-card.current:hover {
        box-shadow: 0 12px 24px rgba(26, 94, 52, 0.35);
        transform: scale(1.2);
    }

    .month-card:active {
        transform: scale(0.95);
    }

    .month-buttons {
        display: none;
    }
}

@media (min-width: 768px) {
    .month-carousel {
        display: none;
    }
}
