.mx-calendar-block {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mx-calendar-filters {
    margin-bottom: 24px;
}

.filter-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.filter-group {
    position: relative;
}

.filter-select {
    appearance: none;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 14px;
    color: #1d1d1f;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-select:hover {
    background: #e8e8ed;
}

.filter-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,125,250,0.6);
}

.filter-group::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>') no-repeat center;
    pointer-events: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #f5f5f7;
    border-radius: 16px;
    padding: 4px 12px;
    font-size: 13px;
    color: #1d1d1f;
}

.filter-tag .remove {
    margin-left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #dededf;
    color: #636366;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    transition: all 0.2s;
}

.filter-tag .remove:hover {
    background: #636366;
    color: #fff;
}

.mx-calendar-month h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8ed;
}

.mx-calendar-event {
    padding: 12px 16px;
    margin-bottom: 8px;
    background: #f5f5f7;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.mx-calendar-event:hover {
    background: #e8e8ed;
}

/* mx-calendar.css */
.mx-calendar-events {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.event-item:hover {
    background-color: #f8f8f8;
}

.event-date {
    min-width: 100px;
    font-weight: 500;
    text-transform: uppercase;
}

.event-title {
    flex-grow: 1;
    margin: 0 20px;
    font-weight: 500;
}

.event-country {
    min-width: 80px;
    text-align: right;
    color: #666;
}

/* Modal styles */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.event-detail {
    display: flex;
    gap: 30px;
}

.detail-date {
    min-width: 120px;
    padding-right: 30px;
    border-right: 2px solid #eee;
    font-size: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
}

.detail-content {
    flex-grow: 1;
}

.detail-content h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #333;
}

.detail-content p {
    margin: 8px 0;
    color: #666;
}

.detail-content a {
    color: #0066cc;
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

.organizer-name {
    font-weight: 500;
    cursor: pointer;
    color: #0066cc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.mx-calendar-block {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mx-calendar-filters {
    margin-bottom: 30px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.event-item:hover {
    background-color: #f8f8f8;
}

.event-date {
    min-width: 100px;
    font-weight: 500;
    text-transform: uppercase;
}

.event-title {
    flex-grow: 1;
    margin: 0 20px;
    font-weight: 500;
}

.event-country {
    min-width: 80px;
    text-align: right;
    color: #666;
}

.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    position: relative;
    background-color: #fff;
    width: 90%;
    max-width: 700px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: 24px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.event-detail {
    display: flex;
    gap: 30px;
}

.detail-date {
    min-width: 120px;
    padding-right: 30px;
    border-right: 2px solid #eee;
    font-size: 1.2em;
    font-weight: 500;
    text-transform: uppercase;
}

.detail-content {
    flex-grow: 1;
}

.detail-content h2 {
    margin: 0 0 15px 0;
    font-size: 1.8em;
    color: #333;
}

.detail-content p {
    margin: 8px 0;
    color: #666;
}

.detail-content a {
    color: #0066cc;
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

.organizer-name {
    font-weight: 500;
}

.organizer-name[onclick] {
    color: #0066cc;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.no-events {
    text-align: center;
    color: #666;
    padding: 30px;
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 30px;
}

.month-header {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    text-transform: uppercase;
}

.mx-calendar-month {
    margin-bottom: 20px;
}

.mx-calendar-month:first-child .month-header {
    margin-top: 0;
}

/*
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999999;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 500px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
}
*/

/* Sidebar Calendar Widget Styles */
.mx-calendar-sidebar-widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mx-calendar-sidebar-events {
    margin-bottom: 15px;
}

.sidebar-event-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    gap: 12px;
}

.sidebar-event-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-event-item:first-child {
    padding-top: 0;
}

.sidebar-event-date {
    min-width: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    text-align: center;
    background: #f5f5f7;
    padding: 6px 8px;
    border-radius: 4px;
    line-height: 1.2;
}

.sidebar-event-content {
    flex: 1;
}

.sidebar-event-title {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.sidebar-event-country {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.sidebar-event-location {
    font-size: 11px;
    color: #999;
}

.sidebar-view-all {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.view-all-events {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all-events:hover {
    color: #0052a3;
    text-decoration: underline;
}

.sidebar-event-item .no-events {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px 0;
}

/* Responsive styles for sidebar */
@media (max-width: 768px) {
    .mx-calendar-sidebar-widget {
        padding: 15px;
    }
    
    .sidebar-event-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .sidebar-event-date {
        align-self: flex-start;
        min-width: auto;
    }
}

/* Add this to your mx-calendar.css file */

.mx-calendar-shortcode-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mx-calendar-filters-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: white;
}

.mx-calendar-event-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.event-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.event-item:hover {
    background-color: #f8f8f8;
}

.event-item:last-child {
    border-bottom: none;
}

.event-left {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 200px;
}

.event-date-single {
    text-align: center;
    min-width: 60px;
}

.event-date-day {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.event-date-year {
    font-size: 12px;
    color: #666;
}

.event-country {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
}

.event-divider {
    width: 1px;
    height: 40px;
    background: #eee;
    margin: 0 20px;
}

.event-right {
    flex: 1;
}

.event-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-series {
    font-size: 14px;
    color: #666;
    margin-bottom: 2px;
}

.event-location {
    font-size: 12px;
    color: #999;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #666;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #dc3545;
}

.no-events {
    text-align: center;
    padding: 40px;
    color: #666;
}