/* Fare66 Calendar Styles */

:root {
    --fare66-primary: #5a8b8f;
    --fare66-secondary: #4a7a7e;
    --fare66-accent: #f5a623;
    --fare66-light: #f5f9fa;
    --fare66-dark: #3d6367;
    --fare66-border: #e5ebed;
    --fare66-today: #f5a623;
    --fare66-event-color: #5a8b8f;
}

.fare66-calendar-wrapper {
    font-family: 'Work Sans', sans-serif;
    color: var(--fare66-primary);
    line-height: 1.6;
    padding: 20px 0;
}

.fare66-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    animation: fare66FadeIn 0.8s ease-out;
}

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

.fare66-calendar-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.fare66-calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--fare66-primary), var(--fare66-accent));
}

.fare66-calendar-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--fare66-dark);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.fare66-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(232, 244, 245, 0.5);
    border-radius: 16px;
}

.fare66-month-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.fare66-btn {
    background: var(--fare66-primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(90, 139, 143, 0.2);
}

.fare66-btn:hover {
    background: var(--fare66-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(90, 139, 143, 0.3);
}

.fare66-current-month {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--fare66-primary);
    min-width: 250px;
    text-align: center;
}

.fare66-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 20px;
}

.fare66-day-header {
    text-align: center;
    font-weight: 600;
    padding: 15px;
    color: var(--fare66-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fare66-day-cell {
    aspect-ratio: 1;
    border: 2px solid transparent;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: white;
    min-height: 80px;
    box-shadow: 0 2px 8px rgba(90, 139, 143, 0.08);
}

.fare66-day-cell:hover {
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 139, 143, 0.15);
}

.fare66-day-cell.has-event {
    background: var(--fare66-event-color);
    color: white;
    box-shadow: 0 4px 12px rgba(90, 139, 143, 0.25);
}

.fare66-day-cell.has-event .fare66-day-number {
    color: white;
}

.fare66-day-cell.today {
    background: var(--fare66-today);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.3);
}

.fare66-day-cell.today .fare66-day-number {
    color: white;
    font-weight: 600;
}

.fare66-day-cell.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.fare66-day-number {
    font-size: 18px;
    font-weight: 500;
    color: var(--fare66-primary);
}

.fare66-event-indicator {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-top: 4px;
    animation: fare66Pulse 2s infinite;
}

@keyframes fare66Pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.fare66-events-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 30px;
    max-height: 90vh;
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

.fare66-events-sidebar h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--fare66-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--fare66-accent);
}

.fare66-event-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.3s ease;
    border-left: 4px solid var(--fare66-event-color);
    box-shadow: 0 2px 8px rgba(90, 139, 143, 0.1);
}

.fare66-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(90, 139, 143, 0.15);
}

.fare66-event-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.fare66-event-date {
    font-weight: 600;
    color: var(--fare66-event-color);
    font-size: 14px;
    margin-bottom: 8px;
}

.fare66-event-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fare66-dark);
    margin-bottom: 8px;
}

.fare66-event-description {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.fare66-delete-event {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--fare66-event-color);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fare66-delete-event:hover {
    background: var(--fare66-dark);
    transform: rotate(90deg);
}

.fare66-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fare66FadeIn 0.3s ease;
}

.fare66-modal.active {
    display: flex;
}

.fare66-modal-content {
    background: white;
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fare66SlideUp 0.4s ease;
}

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

.fare66-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--fare66-dark);
    margin-bottom: 20px;
}

.fare66-form-group {
    margin-bottom: 20px;
}

.fare66-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--fare66-primary);
}

.fare66-form-group input[type="text"],
.fare66-form-group input[type="password"],
.fare66-form-group input[type="file"],
.fare66-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--fare66-border);
    border-radius: 8px;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.fare66-form-group input:focus,
.fare66-form-group textarea:focus {
    outline: none;
    border-color: var(--fare66-accent);
}

.fare66-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.fare66-button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.fare66-btn-cancel {
    background: #95a5a6;
    flex: 1;
}

.fare66-btn-cancel:hover {
    background: #7f8c8d;
}

.fare66-btn-submit {
    background: var(--fare66-event-color);
    flex: 1;
}

.fare66-btn-submit:hover {
    background: var(--fare66-dark);
}

.fare66-no-events {
    text-align: center;
    color: #95a5a6;
    padding: 40px 20px;
    font-style: italic;
}

/* Responsive */
@media (max-width: 1200px) {
    .fare66-container {
        grid-template-columns: 1fr;
    }

    .fare66-events-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .fare66-calendar-section {
        padding: 20px;
    }

    .fare66-calendar-section h1 {
        font-size: 1.8rem;
    }

    .fare66-controls {
        flex-direction: column;
        gap: 15px;
    }

    .fare66-month-nav {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .fare66-month-nav .fare66-btn {
        padding: 10px 16px;
        flex-shrink: 0;
    }

    .fare66-current-month {
        font-size: 1.4rem;
        min-width: auto;
    }

    .fare66-calendar-grid {
        gap: 4px;
    }

    .fare66-day-cell {
        min-height: 60px;
    }

    .fare66-day-header {
        font-size: 11px;
        padding: 10px 5px;
    }

    .fare66-day-number {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .fare66-calendar-wrapper {
        padding: 10px 0;
    }

    .fare66-container {
        gap: 15px;
    }

    .fare66-calendar-section {
        padding: 15px;
    }

    .fare66-calendar-section h1 {
        font-size: 1.5rem;
    }

    .fare66-controls {
        padding: 15px;
    }

    .fare66-month-nav .fare66-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .fare66-current-month {
        font-size: 1.2rem;
    }

    .fare66-day-header {
        font-size: 10px;
        padding: 8px 2px;
    }

    .fare66-day-cell {
        min-height: 50px;
    }

    .fare66-day-number {
        font-size: 14px;
    }

    .fare66-modal-content {
        padding: 25px;
        width: 95%;
    }
}
