.export-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 1001;
    backdrop-filter: blur(0px);
    transition: background-color 0.5s ease, backdrop-filter 0.5s ease;
}

.export-modal.show {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.export-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% + 50px));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    color: #fff;
    font-family: 'InfraRegular', monospace;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
}

.export-modal.show .export-modal-content {
    transform: translate(-50%, -50%);
    opacity: 1;
}

.export-modal h2 {
    margin: 0 0 20px 0;
    font-family: 'InfraBold', monospace;
    font-size: 24px;
    text-align: center;
    color: #fff;
}

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

.export-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.export-form-group select,
.export-form-group input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'InfraRegular', monospace;
    font-size: 14px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.export-form-group select:focus,
.export-form-group input[type="date"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

.export-form-group select option {
    background: #2a2a2a;
    color: #fff;
}

.export-form-group select:hover,
.export-form-group input[type="date"]:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
}

/* Date input disabled date styling */
.export-form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
}

.export-form-group input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #fff;
}

.export-form-group input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.7);
}

.export-form-group input[type="date"]::-webkit-datetime-edit-month-field,
.export-form-group input[type="date"]::-webkit-datetime-edit-day-field,
.export-form-group input[type="date"]::-webkit-datetime-edit-year-field {
    color: #fff;
}

/* Style for disabled/out-of-range dates - this affects the calendar popup */
.export-form-group input[type="date"]::-webkit-calendar-picker-indicator:disabled {
    opacity: 0.5;
}

/* Additional styling for better date input appearance */
.export-form-group input[type="date"]:invalid {
    border-color: rgba(255, 100, 100, 0.5);
}

.export-form-group input[type="date"]:valid {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Firefox date input styling */
@-moz-document url-prefix() {
    .export-form-group input[type="date"] {
        color: #fff;
        background: rgba(255, 255, 255, 0.1);
        -moz-appearance: textfield;
    }
    
    .export-form-group select {
        -moz-appearance: none;
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
    }
    
    .export-form-group select option {
        background: #2a2a2a;
        color: #fff;
        border: none;
    }
    
    .quick-select-btn {
        -moz-appearance: none;
        background-color: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .export-btn {
        -moz-appearance: none;
    }
}

/* Universal styling for better cross-browser consistency */
.export-form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

.export-form-group input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.quick-select-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.export-btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.export-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.export-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.export-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: 'InfraRegular', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.export-btn-primary {
    background: linear-gradient(135deg, #44ffb2, #36d999);
    color: #000;
    font-weight: 600;
}

.export-btn-primary:hover {
    box-shadow: 0 5px 15px rgba(68, 255, 178, 0.3);
}

.export-btn-primary:disabled {
    background: rgba(68, 255, 178, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
    transform: none;
}

.export-btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.export-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.export-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.export-progress {
    display: none;
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.export-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.export-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #44ffb2, #36d999);
    width: 0%;
    transition: width 0.3s ease;
    animation: progressPulse 2s infinite ease-in-out;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.export-info {
    background: rgba(68, 255, 178, 0.1);
    border: 1px solid rgba(68, 255, 178, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}

.export-info h4 {
    margin: 0 0 10px 0;
    color: #44ffb2;
    font-family: 'InfraMedium', monospace;
}

.export-info ul {
    margin: 10px 0;
    padding-left: 20px;
}

.export-info li {
    margin: 5px 0;
    color: var(--text-secondary);
}

.export-info li[data-translate="export.info.pdf"] {
    font-weight: 500;
    color: var(--accent-color);
}

.export-form-group select option[value="pdf"] {
    font-weight: 500;
}

/* Close button */
.export-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.export-modal-close:hover {
    color: rgba(255, 255, 255, 1);
}

/* Quick Select Buttons */
.export-quick-select {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.quick-select-btn {
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'InfraRegular', monospace;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 100px;
}

.quick-select-btn:hover:not(:disabled):not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.quick-select-btn:active:not(:disabled):not(.disabled) {
    background: rgba(68, 255, 178, 0.2);
    border-color: rgba(68, 255, 178, 0.4);
}

.quick-select-btn:disabled,
.quick-select-btn.disabled {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.export-form-group input[type="date"] {
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.export-form-group input:invalid {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.export-form-group input:invalid:focus {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}