/* Custom styles for Wistia Bulk Archiver */

/* Ensure consistent spacing and typography */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Card styling enhancements */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

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

/* Form styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Button loading state */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Progress bar styling */
.progress-container {
    display: none;
    margin-top: 1rem;
}

.progress {
    height: 8px;
    background-color: var(--bs-gray-200);
}

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

/* Token validation feedback */
.validation-success {
    color: var(--bs-success);
}

.validation-error {
    color: var(--bs-danger);
}

/* Video count indicator */
.video-count {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table responsiveness */
.table-responsive {
    border-radius: 0.375rem;
}

/* Code styling */
code {
    font-size: 0.875em;
    background-color: var(--bs-gray-100);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

[data-bs-theme="dark"] code {
    background-color: var(--bs-gray-800);
    color: var(--bs-gray-100);
}

/* Icon spacing */
.bi {
    vertical-align: -0.125em;
}

/* Custom alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* Loading animation for form submission */
.form-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Success/error result indicators */
.result-success {
    border-left: 4px solid var(--bs-success);
}

.result-error {
    border-left: 4px solid var(--bs-danger);
}

/* Smooth transitions */
* {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
