body {
    background-color: #f5f5f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.btn {
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-1px);
}

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

.btn:disabled:hover {
    transform: none;
}

.progress {
    height: 25px;
    background-color: #e9ecef;
}

.progress-bar {
    transition: width 0.5s ease;
}

.download-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.download-item.processing {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.download-item.completed {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.download-item.failed {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.download-item.file-fresh {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.download-item.file-recent {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}

.download-item.file-old {
    border-left-color: #6c757d;
    background-color: #f8f9fa;
}

.download-item .text-muted.small {
    font-size: 0.875rem;
    font-style: italic;
}

.download-item .bi-info-circle {
    font-size: 0.875rem;
}

.download-item .bi-clock {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.timestamp {
    font-size: 0.875rem;
    color: #6c757d;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

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

.processing-indicator {
    animation: pulse 2s infinite;
}

#connectionStatus .bi-arrow-repeat {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.toast {
    min-width: 300px;
}

#connectionStatus .bi-circle-fill {
    font-size: 0.75rem;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.alert-sm {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Authentication blur effect */
.auth-blur {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
}

/* Modal backdrop customization */
.modal-backdrop {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.7) !important;
}

/* Ensure modal is above everything */
#authModal {
    z-index: 1060;
}

#timeoutWarningModal {
    z-index: 1065;
}

/* Password input focus styling */
#passwordInput:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Export Confirmation Modal Styling */
#exportConfirmationModal .form-check {
    padding: 0.75rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: background-color 0.2s;
}

#exportConfirmationModal .form-check:hover {
    background-color: #e9ecef;
}

#exportConfirmationModal .form-check-input {
    margin-top: 0.5rem;
    cursor: pointer;
}

#exportConfirmationModal .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#exportConfirmationModal .form-check-label {
    cursor: pointer;
    width: 100%;
}

#exportConfirmationModal .form-check-label strong {
    color: #212529;
}

#exportConfirmationModal .form-check-label small {
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Export Progress Panel Styling */
#exportProgressPanel {
    animation: slideDown 0.3s ease-out;
}

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

#exportProgressBar {
    font-weight: 600;
    font-size: 1rem;
    line-height: 30px;
}

#exportStatusMessage {
    font-weight: 500;
    color: #0c5460;
}

#exportCurrentTable {
    font-family: 'Courier New', monospace;
    background-color: #e7f3ff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Table Progress Details */
.table-progress-item {
    padding: 8px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #0dcaf0;
}

.table-progress-item .table-name {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #212529;
}

.table-progress-item .progress {
    transition: all 0.3s ease;
}

#exportDetailsAccordion .accordion-button {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    background-color: #f8f9fa;
}

#exportDetailsAccordion .accordion-button:not(.collapsed) {
    background-color: #e7f3ff;
    color: #0c5460;
}

#exportDetailsAccordion .accordion-button:focus {
    box-shadow: none;
    border-color: #0dcaf0;
}

#exportDetailsAccordion .accordion-body {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
}

#tableProgressCount {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .btn {
        margin-bottom: 0.5rem;
    }
} 