/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

/* Typography */
body p, ul {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 18px;
}

body h1, h2, h3 {
    line-height: 28px;
    margin-bottom: 18px;
}

body h2 {
    margin-bottom: 10px;
}

/* Header Styles */
header {
    margin-left: 80px;
    position: fixed;
}

header ul {
    font-size: 15px;
}

header h3 {
    font-size: 17px;
}

header p {
    font-size: 15px;
}

/* Navigation Styles */
.navbar {
    background-color: #1E2124;
}

.logo-img {
    height: 40px;
    margin-bottom: 0px;
}

/* Language Selector Styles */
.language-select {
    background-color: #343a40;
    color: white;
    border: none;
    padding: 0.375rem 1.75rem 0.375rem 0.75rem;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 viewBox%3D%220 0 4 5%22%3E%3Cpath fill%3D%22%23ffffff%22 d%3D%22M2 0L0 2h4L2 0zm0 5L0 3h4L2 5z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 8px 10px;
}

.language-select:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

/* Main Content Styles */
#content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* Link Styles */
a {
    color: #0056b3;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header and Footer Link Styles */
.header-link, .footer-link {
    text-decoration: none;
    font-size: 1.25rem;
    color: #ccc;
}

.header-link:hover, .footer-link:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Table of Contents Styles */
.table-of-contents {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.table-of-contents ul {
    list-style-type: none;
    padding-left: 20px;
}

.table-of-contents > ul {
    padding-left: 0;
}

.table-of-contents a {
    color: #007bff;
    text-decoration: none;
}

.table-of-contents a:hover {
    text-decoration: underline;
}

/* Custom Button Styles */
.custom-button {
    position: relative;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Spinner Styles */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
}

.hidden {
    display: none;
}

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

/* Video Vignette Styles */
.video-vignette {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.video-vignette img {
    max-width: 100%;
    border-radius: 8px;
}

.video-vignette h3 {
    font-size: 1.2em;
    margin-top: 10px;
}

.video-vignette p {
    color: #555;
}

/* Pagination Styles */
.pagination .page-link {
    color: #0056b3;
}

.pagination .page-link:hover {
    color: #003366;
}

/* Footer Styles */
footer {
    margin-top: 40px;
}

footer p, footer ul {
    margin: 0;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: #ffffff;
    text-decoration: none;
}

/* Queue Message Styles */
queue_message h1 {
    font-size: 1.5rem;
    font-weight: bold;
}

queue_message a {
    color: #fff;
    text-decoration: none;
}

/* Video Link Styles */
.video-link {
    text-decoration: none;
    display: block;
}

.video-link .video-card {
    transition: transform 0.3s ease;
}

.video-link:hover .video-card {
    transform: scale(1.05);
}

.video-link:hover {
    text-decoration: none;
}

.video-link .video-info {
    padding: 10px;
    color: #333;
    text-align: left;
}

/* Card Styles */
.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
}

.card-metadata {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 1.5em;
}

.card-date {
    margin-top: auto;
}

/* Feedback Note Styles */
.feedback-note {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-note p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

/* FAQ Styles */
.faq-header {
    color: #007bff;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.faq-content {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 0;
    background-color: #fff;
}

/* About Page Styles */
about h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #0056b3;
    text-align: center;
}

about h2 {
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 10px;
    color: #0056b3;
}

/* Summary Page Styles */
.summary-section {
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
    padding: 1rem;
    position: relative;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.summary-text {
    max-height: 800px;
    overflow-y: auto;
    flex: 1 1 100%;
}

/* Transcript Styles */
.transcript-title-icon {
    margin-right: 10px;
    cursor: pointer;
}

.transcript-title-icon img {
    width: 10px;
    height: 10px;
}

/* Guide Content Styles */
.guide-content {
    color: #333;
    font-size: 16px;
}

.guide-content h2 {
    color: #1a202c;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.guide-content h3 {
    color: #2d3748;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.guide-content h4 {
    color: #4a5568;
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.guide-content p {
    margin-bottom: 1rem;
}

.guide-content ul, .guide-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content li {
    margin-bottom: 0.5rem;
}

/* Table of Contents Styles */
#toc .btn-outline-secondary {
    padding: .25rem .5rem;
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem;
    color: #333;
}

#toc .nav-link {
    padding: .25rem 1rem;
    font-size: .875rem;
    color: #4a5568;
}

#toc .btn-link {
    font-size: .75rem;
    vertical-align: middle;
    color: #4a5568;
}

#toc .dropdown-toggle::after {
    display: none;
}

#toc a:hover {
    color: #1a202c;
    text-decoration: none;
}

/* Code Block Styles */
.guide-content .code-block {
    background-color: #f8f9fa !important;
    border: 1px solid #e1e4e8 !important;
    border-radius: 6px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    overflow-x: auto !important;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace !important;
    font-size: 85% !important;
    line-height: 1.45 !important;
    display: block !important;
}

.guide-content .code-block code {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    white-space: pre !important;
    word-break: normal !important;
    word-wrap: normal !important;
}

.guide-content .inline-code {
    background-color: rgba(27, 31, 35, 0.05) !important;
    border-radius: 3px !important;
    font-size: 85% !important;
    margin: 0 !important;
    padding: 0.2em 0.4em !important;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace !important;
    display: inline !important;
}

/* Timestamp Button Styles */
.timestamp-btn {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    vertical-align: middle;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .guide-content > h2 {
        font-size: 1.5rem;
    }
    .guide-content > h3 {
        font-size: 1.25rem;
    }
    .guide-content > p,
    .guide-content > ul,
    .guide-content > ol {
        font-size: 1rem;
    }
}

/* Scrollable Content Styles */
.scrollable-x {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollable-x::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.nowrap {
    white-space: nowrap;
}

/* Button Styles */
.btn .fa-spinner {
    margin-left: 5px;
}

.processing-text {
    display: inline-block;
}

/* Star Rating Styles */
.star-rating {
    font-size: 24px;
    color: #ccc;
}

.star-rating .star {
    cursor: pointer;
}

.star-rating .star.active,
.star-rating .star:hover {
    color: #ffd700;
}

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

.spin {
    display: inline-block;
    animation: spin 1s linear infinite;
}




