/* Custom styles for Engage Analytics Data Export */

:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

.card {
    border: none;
    border-radius: 10px;
}

.card-body {
    padding: 2rem;
}

.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.progress {
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    font-size: 1rem;
    font-weight: bold;
}

.alert {
    border-radius: 8px;
    border: none;
}

.form-control, .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

.footer {
    background-color: #f8f9fa !important;
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Login page specific */
.card-title {
    color: #333;
}

/* Progress page animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

.fa-pulse {
    animation: pulse 2s infinite;
}

/* Table list in modal */
.list-group-item {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    margin-bottom: 0.25rem;
}

/* Export details section */
#exportDetails {
    max-height: 300px;
    overflow-y: auto;
}

#progressLog .list-group-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Loading spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fa-check-circle {
    animation: checkmark 0.5s ease-in-out;
}

/* Custom scrollbar for export details */
#exportDetails::-webkit-scrollbar {
    width: 8px;
}

#exportDetails::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#exportDetails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

#exportDetails::-webkit-scrollbar-thumb:hover {
    background: #555;
}