/* Monthly Stats Export Dialog Styles */
.export-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.export-dialog-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 420px;
    max-width: 500px;
    text-align: center;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

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

.export-dialog-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.export-format-section {
    margin: 20px 0;
    text-align: left;
}

.export-format-label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #555;
}

.export-format-options {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.export-format-option {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #fafafa;
}

.export-format-option:hover {
    border-color: #007bff;
    background-color: #f0f8ff;
    transform: translateY(-2px);
}

.export-format-option.selected {
    border-color: #007bff;
    background-color: #e3f2fd;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.export-format-option strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.export-format-option small {
    color: #666;
    font-size: 12px;
}

.export-filename-section {
    margin: 20px 0;
    text-align: left;
}

.export-filename-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.export-filename-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.export-filename-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.export-filename-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.export-directory-section {
    margin: 20px 0;
    text-align: left;
}

.export-directory-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

.export-directory-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.export-directory-display {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    font-size: 14px;
    color: #666;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.export-directory-browse {
    padding: 10px 15px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.export-directory-browse:hover {
    background: #545b62;
}

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

.export-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 100px;
}

.export-btn-primary {
    background-color: #007bff;
    color: white;
}

.export-btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.export-btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.export-btn-secondary {
    background-color: #6c757d;
    color: white;
}

.export-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.export-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.export-close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

/* Loading styles for export */
.export-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.export-loading-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.export-loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.export-loading-text {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* Responsive design */
@media (max-width: 600px) {
    .export-dialog-content {
        min-width: 90%;
        max-width: 90%;
        margin: 0 20px;
        padding: 20px;
    }
    
    .export-format-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .export-directory-controls {
        flex-direction: column;
        gap: 10px;
    }
    
    .export-directory-display {
        order: 2;
    }
    
    .export-directory-browse {
        order: 1;
        align-self: stretch;
    }
    
    .export-dialog-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

/* Hidden file input for directory selection */
.export-hidden-input {
    display: none;
}