/* Custom styling additions to the Bootstrap theme */

/* Body and general styling */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* Card styling */
.card {
    border-radius: 0.5rem;
}

.card-header {
    border-top-left-radius: 0.5rem !important;
    border-top-right-radius: 0.5rem !important;
}

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

/* Progress bar animation */
.progress-bar {
    transition: width 0.5s ease;
}

/* Question list styling */
#questionsList tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

/* Enhancing visual hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

.lead {
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    font-weight: 500;
}

/* Footer styling */
.footer {
    padding: 1.5rem 0;
    margin-top: 2rem;
}

/* Helper classes */
.text-success {
    color: var(--bs-success) !important;
}

.text-info {
    color: var(--bs-info) !important;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bs-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bs-gray-600);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-700);
}

/* Error message styling */
#errorDisplay {
    border-left: 5px solid #dc3545;
    padding-left: 15px;
    transition: all 0.3s ease;
}

/* Different error types */
#errorDisplay.error-general {
    border-left-color: #dc3545; /* Bootstrap danger red */
}

#errorDisplay.error-video-not-found {
    border-left-color: #fd7e14; /* Bootstrap orange */
}

#errorDisplay.error-no-captions {
    border-left-color: #6f42c1; /* Bootstrap purple */
}

#errorDisplay.error-invalid-url {
    border-left-color: #0dcaf0; /* Bootstrap info */
}

/* Error icon styling */
#errorDisplay::before {
    font-family: "Bootstrap Icons";
    margin-right: 10px;
    font-weight: bold;
}

#errorDisplay.error-general::before {
    content: "⚠️";
}

#errorDisplay.error-video-not-found::before {
    content: "🔍";
}

#errorDisplay.error-no-captions::before {
    content: "📝";
}

#errorDisplay.error-invalid-url::before {
    content: "🔗";
}
