/* Arquivo: css/quiosque-calendar.css */
/* Estilos principais do calendário - versão flat e clean */
.rq-monthly-calendar-wrapper {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    position: relative;
}

/* Header e controles do calendário */
.rq-calendar-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 10px;
}

.rq-calendar-navigation {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 4px;
    padding: 5px 15px;
}

.rq-calendar-navigation h2 {
    margin: 0 20px;
    font-size: 22px;
    color: #333;
    font-weight: 600;
}

.rq-nav-button {
    background-color: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
}

.rq-nav-button:hover {
    background-color: #4caf50;
    border-color: #4caf50;
    color: white;
}

.rq-calendar-filters {
    margin-top: 0;
}

#rq-calendar-quiosque-selector {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
    min-width: 240px;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

#rq-calendar-quiosque-selector:focus {
    border-color: #4caf50;
    outline: none;
}

/* Calendário principal */
.rq-monthly-calendar {
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    background-color: white;
    border: 1px solid #e0e0e0;
}

.rq-calendar-grid {
    width: 100%;
}

.rq-calendar-grid table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.rq-calendar-row {
    width: 100%;
}

.rq-calendar-row.rq-calendar-header {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
}

.rq-calendar-cell {
    height: 100px;
    padding: 8px;
    border: 1px solid #e8e8e8;
    position: relative;
    vertical-align: top;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.rq-calendar-header .rq-calendar-cell {
    height: auto;
    padding: 12px 8px;
    text-align: center;
    border-color: rgba(255, 255, 255, 0.2);
    vertical-align: middle;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
}

.rq-day-number {
    display: inline-block;
    padding: 4px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    text-align: center;
    line-height: 20px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.rq-calendar-cell.rq-clickable:hover {
    background-color: #f9f9f9;
}

.rq-calendar-cell.rq-clickable:hover .rq-day-number {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
}

.rq-past-date {
    color: #aaa;
    background-color: #f9f9f9;
}

.rq-past-date .rq-day-number {
    color: #999;
}

/* NOVO: Estilos para datas desabilitadas (dias da semana não permitidos) */
.rq-disabled-date {
    color: #aaa;
    background-color: #f9f9f9;
    position: relative;
}

.rq-disabled-date .rq-day-number {
    color: #999;
}

.rq-disabled-date:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
    pointer-events: none;
}

.rq-disabled-date .rq-availability-indicator {
    opacity: 0.5;
}

.rq-empty {
    background-color: #f9f9f9;
}

.rq-availability-indicator {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 50%;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rq-high-availability {
    background-color: #c8e6c9;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.rq-medium-availability {
    background-color: #ffe0b2;
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.rq-low-availability {
    background-color: #ffccbc;
    border: 1px solid rgba(255, 87, 34, 0.2);
}

.rq-clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.rq-calendar-cell.rq-selected {
    background-color: #e8f5e9;
    position: relative;
    z-index: 1;
}

.rq-calendar-cell.rq-selected::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #4caf50;
    pointer-events: none;
}

.rq-calendar-cell.rq-selected .rq-day-number {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
}

.rq-loading-mini {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.rq-calendar-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: white;
}

.rq-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-left-color: #4caf50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.rq-calendar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    gap: 20px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.rq-legend-item {
    display: flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.rq-legend-color {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border-radius: 3px;
}

.rq-legend-color.rq-high-availability {
    background-color: #c8e6c9;
}

.rq-legend-color.rq-medium-availability {
    background-color: #ffe0b2;
}

.rq-legend-color.rq-low-availability {
    background-color: #ffccbc;
}

.rq-legend-color.rq-past-date {
    background-color: #f9f9f9;
}

/* NOVO: Cor para dias desabilitados na legenda */
.rq-legend-color.rq-disabled-date {
    background-color: #f9f9f9;
    position: relative;
}

.rq-legend-color.rq-disabled-date:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.05), rgba(0,0,0,0.05) 5px, rgba(0,0,0,0.02) 5px, rgba(0,0,0,0.02) 10px);
}

.rq-legend-text {
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

/* Lista de quiosques */
#rq-quiosques-list {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    display: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.rq-quiosques-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.rq-quiosques-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-left: 10px;
}

.rq-quiosques-header h3:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background-color: #4caf50;
    border-radius: 3px;
}

.rq-quiosques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
}

.rq-quiosque-card {
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rq-quiosque-card.rq-available {
    border-left: 3px solid #4caf50;
}

.rq-quiosque-card.rq-unavailable {
    border-left: 3px solid #f44336;
    opacity: 0.8;
}

.rq-quiosque-card:hover {
    transform: translateY(-3px);
}

.rq-quiosque-card-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fafafa;
}

.rq-quiosque-card-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.rq-quiosque-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.rq-quiosque-status.rq-available {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.rq-quiosque-status.rq-unavailable {
    background-color: #ffebee;
    color: #c62828;
}

.rq-quiosque-card-body {
    padding: 15px;
    flex: 1;
}

.rq-quiosque-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rq-quiosque-info-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    transition: transform 0.2s ease;
}

.rq-quiosque-info-item .dashicons {
    margin-right: 10px;
    color: #4caf50;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.rq-quiosque-card-footer {
    padding: 15px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    background-color: #fafafa;
}

.rq-reserve-button {
    padding: 8px 16px !important;
    background-color: #4caf50 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    letter-spacing: 0.5px;
    font-size: 14px !important;
}

.rq-reserve-button:hover {
    background-color: #388e3c !important;
}

.rq-reserve-button.success {
    background-color: #388e3c !important;
}

.rq-reserve-button.error {
    background-color: #f44336 !important;
}

.rq-button-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-left-color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

/* Mensagem de sucesso */
.rq-success-message {
    background-color: #e8f5e9;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border-left: 3px solid #4caf50;
}

.rq-success-icon {
    width: 60px;
    height: 60px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 15px;
}

.rq-success-message h3 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 18px;
}

.rq-success-message p {
    margin: 0 0 10px 0;
    color: #555;
    font-size: 14px;
}

.rq-no-quiosques, 
.rq-error {
    text-align: center;
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-size: 14px;
    margin: 20px 0;
    border: 1px solid #e0e0e0;
}

.rq-error {
    background-color: #ffebee;
    color: #c62828;
    border-left: 3px solid #f44336;
}

.rq-loading {
    text-align: center;
    padding: 20px;
}

.rq-loading p {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* Animações */
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Botão de vídeo */
.rq-video-btn {
    background-color: transparent;
    color: #4caf50;
    border: 1px solid #4caf50;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    margin-top: 5px;
    transition: all 0.2s ease;
}

.rq-video-btn:hover {
    background-color: #f1f9f1;
}

.rq-video-btn .dashicons {
    font-size: 14px;
    margin-right: 4px;
}

/* Modal de vídeo */
.rq-video-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.rq-video-modal-content {
    position: relative;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.rq-video-close {
    position: absolute;
    right: 10px;
    top: 10px;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1;
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.rq-video-container {
    padding-top: 56.25%; /* Proporção 16:9 */
    position: relative;
}

.rq-video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilo para o seletor de anos */
#rq-calendar-year-selector {
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #e2e4e7;
    min-width: 120px;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    margin-right: 10px;
}

#rq-calendar-year-selector:focus {
    border-color: #4caf50;
    outline: none;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .rq-quiosques-grid {
        grid-template-columns: 1fr;
    }
    
    .rq-calendar-cell {
        padding: 5px;
        height: 60px;
    }
    
    .rq-availability-indicator {
        height: 40%;
    }
    
    .rq-calendar-header-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .rq-calendar-navigation {
        justify-content: space-between;
    }
    
    .rq-calendar-filters {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    #rq-calendar-year-selector,
    #rq-calendar-quiosque-selector {
        width: 100%;
        margin-right: 0;
    }
}

/* Estilo para datas bloqueadas para eventos */
.rq-blocked-date {
    color: #fff;
    background-color: #f44336; /* Vermelho */
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rq-blocked-date:hover {
    background-color: #e53935; /* Vermelho mais escuro ao passar o mouse */
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.rq-blocked-date .rq-day-number {
    color: #fff;
    font-weight: bold;
}

.rq-blocked-date .rq-availability-indicator {
    background-color: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-weight: 500;
    font-size: 0.85em;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    padding: 2px 4px;
    text-align: center;
}

.rq-blocked-date .rq-availability-indicator span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.rq-blocked-date:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
    pointer-events: none;
}

/* Adicionar na legenda do calendário */
.rq-legend-color.rq-blocked-date {
    background-color: #f44336;
}

/* Estilos para o popup de eventos */
.rq-event-details-popup {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rq-event-details-popup h3 {
    color: #333;
    font-size: 1.5em;
    margin: 0 0 5px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.rq-event-date-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95em;
}

.rq-event-date-info .dashicons {
    color: #f44336;
}

.rq-event-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .rq-event-content {
        flex-direction: row;
    }
}

.rq-event-image {
    flex: 0 0 auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .rq-event-image {
        max-width: 300px;
        margin-right: 20px;
    }
}

.rq-event-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rq-event-description {
    flex: 1;
    line-height: 1.6;
    color: #444;
}

.rq-event-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.rq-event-info-message {
    background-color: #fef8e8;
    border-left: 4px solid #f7c35f;
    padding: 12px 15px;
    color: #876429;
    font-size: 0.9em;
    margin: 0;
}