.emc-events-map-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.emc-legend {
    background: transparent;
    border: none;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.emc-project-button {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    color: #333333;
}

.emc-project-button:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.emc-project-button.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
    box-shadow: 0 4px 8px rgba(0,115,170,0.3);
}

.emc-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.emc-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-top: 4px;
}

.emc-dropdown.show {
    display: block;
}

.emc-dropdown-export {
    padding: 10px 12px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    position: sticky;
    bottom: 0;
}

.emc-export-button {
    width: 100%;
    border: none;
    background: #0073aa;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.emc-export-button:hover {
    background: #005f8d;
    transform: translateY(-1px);
}

.emc-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    transition: background-color 0.2s ease;
    border-radius: 0;
    min-height: 60px;
}

.emc-dropdown-item:hover {
    background: #f8f9fa;
}

.emc-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.emc-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.emc-dropdown-item:only-child {
    border-radius: 8px;
    border-bottom: none;
}

.emc-past-event {
    opacity: 0.5;
    background: #f5f5f5;
}

.emc-past-event:hover {
    opacity: 0.7;
    background: #eeeeee;
}

.emc-map {
    border: none;
    flex: 1;
    min-height: 500px;
}

.emc-content-wrapper {
    display: flex;
    align-items: stretch;
    gap: 20px;
    min-height: 500px;
}

.emc-calendar {
    flex: 0 0 50%;
    max-width: 50%;
    border: none;
    background: transparent;
    min-height: 500px;
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.emc-map-container {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 500px;
}

.emc-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: transparent;
    margin: 10px;
    width: 100%;
    flex: 1;
    min-height: 0;
}

.emc-calendar-header {
    background: transparent;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.emc-calendar-day-header {
    background: transparent;
    padding: 8px 4px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: #666;
}

.emc-calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

.emc-calendar-nav {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: #333;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emc-calendar-nav:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.emc-calendar-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emc-calendar-month-title {
    flex: 1;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 0 14px;
    height: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.emc-calendar-month-title:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    color: #111;
}

.emc-calendar-day {
    background: white;
    min-height: 60px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.emc-calendar-day:hover {
    background: #f9f9f9;
}

.emc-calendar-day.today {
    background: #fff3cd;
    border-color: #ffc107;
}

.emc-calendar-day.today.highlighted {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.emc-calendar-day-number {
    font-weight: bold;
    font-size: 12px;
    color: #666;
}

.emc-calendar-event {
    font-size: 10px;
    padding: 2px 4px;
    margin: 2px 0;
    border-radius: 3px;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

.emc-calendar-event:hover {
    opacity: 0.8;
}

.emc-calendar-event.highlighted {
    border: 2px solid #2196f3;
    box-shadow: 0 0 4px rgba(33, 150, 243, 0.5);
    transform: scale(1.05);
}

.emc-calendar-day.highlighted {
    background: #e3f2fd;
    border: 2px solid #2196f3;
}

.emc-project-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;
}

.emc-export-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.emc-export-modal.show {
    display: flex;
}

.emc-export-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.emc-export-modal-content {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    color: #333333;
}

.emc-export-modal-content h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
}

.emc-export-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #444;
}

.emc-export-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.emc-export-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.emc-export-options label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.emc-export-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.emc-export-section.emc-export-project {
    grid-template-columns: 1fr;
}

.emc-export-section label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.emc-export-section input,
.emc-export-section select {
    border: 1px solid #d6d6d6;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 13px;
}

.emc-export-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.emc-export-actions button {
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.emc-export-cancel {
    background: #f3f3f3;
    color: #333333;
}

.emc-export-download {
    background: #0073aa;
    color: #ffffff;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    .emc-legend {
        flex-direction: column;
        gap: 12px;
        padding: 10px;
    }
    
    .emc-project-wrapper {
        width: 100%;
        flex: none;
    }
    
    .emc-project-button {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .emc-content-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .emc-calendar {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: auto;
        min-height: 400px;
        margin-bottom: 15px;
    }
    
    .emc-map-container {
        width: 100%;
        max-width: 100%;
        flex: none;
        height: 400px;
    }
    
    .emc-map {
        width: 100%;
        height: 400px;
    }
    
    .emc-calendar-grid {
        margin: 5px;
        gap: 3px;
    }
    
    .emc-calendar-header {
        padding: 10px;
        font-size: 16px;
    }
    
    .emc-calendar-day {
        min-height: 50px;
        padding: 3px;
    }
    
    .emc-calendar-day-number {
        font-size: 11px;
    }
    
    .emc-calendar-event {
        font-size: 9px;
        padding: 2px 3px;
        margin: 1px 0;
    }
    
    .emc-dropdown {
        position: relative;
        margin-top: 8px;
        max-height: 340px;
    }

    .emc-export-section {
        grid-template-columns: 1fr;
    }
}
