/* Export and confirmation modal styles */

.export-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.export-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 1.5rem;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.export-modal-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.delete-modal-message {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: #4a4a4a;
}

.delete-month-name {
    font-weight: 600;
    color: #2c3e50;
}

/* Export format options */
.export-format-options {
    margin-bottom: 1.5rem;
}

.export-format-option {
    display: block;
    margin-bottom: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.export-format-option:hover {
    background-color: #f5f5f5;
}

.export-format-option input {
    margin-right: 0.5rem;
}

/* Modal action buttons */
.export-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.export-modal-button {
    padding: 0.6rem 1.25rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s, transform 0.1s;
}

.export-modal-button:hover {
    transform: translateY(-1px);
}

.export-modal-button:active {
    transform: translateY(0);
}

.export-download-btn {
    background-color: #4285f4;
    color: white;
}

.export-download-btn:hover {
    background-color: #3367d6;
}

.delete-confirm-btn {
    background-color: #e53935;
    color: white;
}

.delete-confirm-btn:hover {
    background-color: #c62828;
}

.export-cancel-btn {
    background-color: #e0e0e0;
    color: #4a4a4a;
}

.export-cancel-btn:hover {
    background-color: #d0d0d0;
}

/* Loading spinner for delete operation */
.loading-spinner {
    margin: 2rem auto;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .export-modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 1.25rem;
    }
    
    .export-modal-button {
        padding: 0.5rem 1rem;
    }
}
