/* Calendar Wrapper */
.cjvs-em-calendar-wrapper {
    padding: 30px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Tag Filters */
.cjvs-em-tag-filters {
    background: white;
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.cjvs-em-tags-label {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.cjvs-em-tag-filter {
    display: inline-block;
    padding: 8px 18px;
    margin: 5px 8px 5px 0;
    border: 2px solid var(--tag-color);
    background: white;
    color: var(--tag-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.cjvs-em-tag-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cjvs-em-tag-filter.active {
    background: var(--tag-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#cjvs-em-calendar {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* FullCalendar Customization */
.fc {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.fc-header-toolbar {
    padding: 15px 0 20px;
    margin-bottom: 20px !important;
    border-bottom: 2px solid #e9ecef;
}

.fc-toolbar-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #2c3e50;
}

.fc-button {
    padding: 8px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    border: none !important;
    background: #3788d8 !important;
    text-transform: capitalize !important;
    transition: all 0.3s ease !important;
}

.fc-button:hover {
    background: #2c6db8 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(55, 136, 216, 0.3) !important;
}

.fc-button-active {
    background: #1e5a94 !important;
}

.fc-button:disabled {
    background: #95a5a6 !important;
    opacity: 0.6;
}

.fc-button-primary:not(:disabled).fc-button-active,
.fc-button-primary:not(:disabled):active {
    background: #1e5a94 !important;
}

/* Calendar Grid */
.fc-theme-standard td,
.fc-theme-standard th {
    border-color: #e9ecef !important;
}

.fc-theme-standard .fc-scrollgrid {
    border-color: #e9ecef !important;
}

.fc-col-header-cell {
    padding: 12px 0 !important;
    background: #f8f9fa !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #495057;
}

.fc-daygrid-day {
    transition: background-color 0.2s ease;
}

.fc-daygrid-day:hover {
    background-color: #f8f9fa !important;
}

.fc-daygrid-day-number {
    padding: 8px !important;
    font-weight: 600 !important;
    color: #495057;
    font-size: 14px;
}

.fc-day-today {
    background-color: #e3f2fd !important;
}

.fc-day-today .fc-daygrid-day-number {
    background: #3788d8;
    color: white !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px;
}

/* Events */
.fc-event {
    border-radius: 6px !important;
    padding: 4px 6px !important;
    margin: 2px 4px !important;
    border: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    min-height: auto !important;
}

.fc-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.fc-event-title {
    font-weight: 600 !important;
    font-size: 12px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.3 !important;
}

.fc-event-time {
    font-weight: 500 !important;
    font-size: 11px !important;
    white-space: nowrap !important;
}

.fc-event-title-container {
    flex: 1 !important;
    min-width: 0 !important;
}

.fc-event-main-frame {
    display: flex !important;
    gap: 4px !important;
    align-items: flex-start !important;
}

.fc-daygrid-event-dot {
    display: none !important;
}

/* More Events Link */
.fc-daygrid-more-link {
    color: #3788d8 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 4px 8px !important;
    margin: 2px 4px !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.fc-daygrid-more-link:hover {
    background-color: #e3f2fd !important;
    color: #2c6db8 !important;
}

/* List View */
.fc-list-event:hover td {
    background-color: #f8f9fa !important;
}

.fc-list-event-title {
    font-weight: 600;
}

.fc-list-event-time {
    font-weight: 500;
    color: #6c757d;
}

/* Modal Styles */
.cjvs-em-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cjvs-em-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.cjvs-em-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 35px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

.cjvs-em-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #95a5a6;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1;
}

.cjvs-em-modal-close:hover {
    color: #e74c3c;
}

.cjvs-em-modal-content h2 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    padding-right: 30px;
}

.cjvs-em-event-thumbnail {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cjvs-em-event-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid #e9ecef;
}

.cjvs-em-event-details {
    margin-bottom: 25px;
}

.cjvs-em-event-details p {
    margin: 12px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
}

.cjvs-em-event-details strong {
    color: #2c3e50;
    font-weight: 600;
}

.cjvs-em-view-details-btn {
    display: inline-block;
    background: #3788d8;
    color: white !important;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(55, 136, 216, 0.3);
}

.cjvs-em-view-details-btn:hover {
    background: #2c6db8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(55, 136, 216, 0.4);
}

/* Events List */
.cjvs-em-events-list-wrapper {
    background: white;
    padding: 30px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.cjvs-em-events-list-title {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3788d8;
}

.cjvs-em-events-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cjvs-em-event-item {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.cjvs-em-event-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: #3788d8;
}

.cjvs-em-event-item-thumbnail {
    width: 220px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}

.cjvs-em-event-item-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cjvs-em-event-item-header {
    margin-bottom: 12px;
}

.cjvs-em-event-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    line-height: 1.3;
}

.cjvs-em-event-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.cjvs-em-event-item-tag {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.cjvs-em-event-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 12px;
}

.cjvs-em-event-item-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cjvs-em-event-item-meta-item i {
    font-size: 18px;
    color: #3788d8;
}

.cjvs-em-event-item-description {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.cjvs-em-event-item-link {
    color: #3788d8;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.cjvs-em-event-item-link:hover {
    color: #2c6db8;
    gap: 8px;
}

.cjvs-em-event-item-no-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 48px;
}

.cjvs-em-no-events {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.cjvs-em-no-events i {
    font-size: 64px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.cjvs-em-no-events p {
    font-size: 18px;
    font-weight: 500;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cjvs-em-calendar-wrapper {
        padding: 15px 10px;
    }

    #cjvs-em-calendar {
        padding: 15px;
    }

    .fc-toolbar-title {
        font-size: 20px !important;
    }

    .fc-button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    .fc-header-toolbar {
        flex-direction: column;
        gap: 10px;
    }

    .fc-toolbar-chunk {
        margin: 5px 0;
    }

    .cjvs-em-modal-content {
        padding: 25px;
        width: 95%;
    }

    .cjvs-em-modal-content h2 {
        font-size: 22px;
    }

    .cjvs-em-event-item {
        flex-direction: column;
    }

    .cjvs-em-event-item-thumbnail {
        width: 100%;
        height: 200px;
    }

    .cjvs-em-event-item-title {
        font-size: 18px;
    }

    .cjvs-em-event-item-meta {
        flex-direction: column;
        gap: 8px;
    }
}

/* Time Grid View */
.fc-timegrid-slot {
    height: 3em !important;
}

.fc-timegrid-event {
    border-radius: 4px !important;
    padding: 4px 6px !important;
}

/* Navigation Links */
.fc-daygrid-day-number {
    cursor: pointer;
}

/* Scrollbar Styling */
.cjvs-em-modal-content::-webkit-scrollbar {
    width: 8px;
}

.cjvs-em-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cjvs-em-modal-content::-webkit-scrollbar-thumb {
    background: #3788d8;
    border-radius: 10px;
}

.cjvs-em-modal-content::-webkit-scrollbar-thumb:hover {
    background: #2c6db8;
}
