/* Sigma Aldrich Inspired Design - Video Learning Platform */

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;
    --light-gray: #f8fafc;
    --medium-gray: #e2e8f0;
    --dark-gray: #475569;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color:white;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
}

/* Header & Navigation */
.navbar {
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 0%, rgba(255, 201, 12, 1) 57%, rgba(255, 201, 12, 1) 100%);
    box-shadow: var(--shadow-lg);
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 122px !important;
    min-height: 122px !important;
    max-height: 122px !important;
    box-sizing: border-box;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000 !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: #000000 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: #000000 !important;
    background-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.navbar-text {
    color: #000000 !important;
    font-weight: 500;
}

/* Cards */
.card {
    background: white;
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.card-header {
    background: #850143;
  
    color: #ffffff;
    padding: 2rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.video-header {
    background: #FDBB2D;
    border-bottom: 4px solid #a00085;
    color: #000000;
    padding: 2rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.registration-header {
    background: #FFD700;
    border-bottom: 4px solid #a00085;
    color: #000000;
    padding: 2rem 1.5rem;
    font-weight: 600;
    border-radius: 16px 16px 0 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}




.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.card-header .subtitle {
    color: #ffffff;
    font-weight: 400;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.video-header h1, .video-header h2, .video-header h3, .video-header h4, .video-header h5, .video-header h6 {
    color: #000000;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.video-header .subtitle {
    color: #000000;
    font-weight: 400;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.registration-header h1, .registration-header h2, .registration-header h3, .registration-header h4, .registration-header h5, .registration-header h6 {
    color: #000000;
    margin: 0;
    font-weight: 700;
    text-align: center;
}

.registration-header .subtitle {
    color: #000000;
    font-weight: 400;
    font-size: 0.9em;
    margin-top: 0.25rem;
}

.card-body {
    padding: 2rem;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 2px solid var(--dark-gray);
    color: var(--dark-gray);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--dark-gray);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #fef2f2;
    color: var(--danger-color);
    border-left-color: var(--danger-color);
}

.alert-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border-left-color: var(--success-color);
}

.alert-info {
    background-color: #5506349c;
    color: white;
    border-left-color: #5506349c;
}

.alert-warning {
    background-color: #fffbeb;
    color: var(--warning-color);
    border-left-color: var(--warning-color);
}

/* Progress Bars */
.progress {
    height: 12px;
    border-radius: 6px;
    background-color: var(--medium-gray);
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, var(--success-color) 0%, #059669 100%);
}

/* Video Container */
.video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-container video {
    border-radius: 12px;
}

/* Quiz Section */
.quiz-section {
    display: none;
}

.next-video-section {
    display: none;
}

.question-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.question-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-md);
}

.answer-option {
    cursor: pointer;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.answer-option:hover {
    border-color: #850143;
    background-color: #f8fafc;
    transform: translateX(4px);
}

.answer-option.selected {
    border-color: #850143;
    background-color: #fef7e6;
    box-shadow: 0 0 0 3px rgba(133, 1, 67, 0.1);
}

.answer-option.blue-selected {
    border-color: #3b82f6 !important;
    background-color: #dbeafe !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
    border-width: 3px !important;
}

.answer-option.correct {
    border-color: #10b981 !important;
    background-color: #d1fae5 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
    border-width: 3px !important;
}

.answer-option.incorrect {
    border-color: #ef4444 !important;
    background-color: #fee2e2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    border-width: 3px !important;
}

/* Quiz specific styles */
.options-container {
    margin-top: 1rem;
}

.form-check {
    padding-left: 0;
    display: flex;
    align-items: flex-start;
}

.form-check-input {
    margin-right: 0.75rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.form-check-label {
    flex: 1;
    line-height: 1.5;
}

.form-check-input.is-valid {
    border-color: #10b981;
    background-color: #10b981;
}

.form-check-input.is-invalid {
    border-color: #ef4444;
    background-color: #ef4444;
}

.question-status .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.question-card.correct {
    border-color: var(--border-color);
    background-color: white;
}

.question-card.incorrect {
    border-color: var(--danger-color);
    background-color: #fef2f2;
}

/* Quiz Wizard Styles */
.quiz-section .question-card {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
    border: 2px solid #850143;
}

.quiz-section .question-card:first-child {
    display: block;
    border: 2px solid #850143;
}

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

.quiz-navigation {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.quiz-progress {
    background: var(--medium-gray);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.quiz-progress-bar {
    background: linear-gradient(90deg, #850143 0%, #FDBB2D 100%);
    height: 100%;
    transition: width 0.3s ease;
}

/* Continue to Quiz Button - Always Visible */
#nextBtn {
    position: sticky;
    bottom: 20px;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

#nextBtn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Next video section */
.next-video-section .card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.next-video-section .card-body {
    padding: 5rem 3rem;
    text-align: center;
}

.next-video-section .card-body h4 {
    color: #000000;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.next-video-section .card-body .lead {
    color: #000000;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.next-video-section .card-body i {
    font-size: 6rem;
    color: white;
    background: #FFD700;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.5rem;
}

.next-video-section .btn {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: fit-content;
    margin: 0 auto;
}

.next-video-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: white;
}

.next-video-section .btn .btn-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.next-video-section .btn span {
    flex: 1;
    text-align: center;
}

.next-video-section .btn .fa-arrow-right {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Full width image container */
.full-width-image-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 2rem;
    overflow: hidden;
}

.full-width-image {
    width: 100%;
    height: 150px;
    display: block;
    object-fit: cover;
}

/* Retry button animation */
.retry-btn {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Stats Cards */
.stats-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stats-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.stats-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Tables */
.table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.table thead th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody td {
    padding: 1rem;
    border-color: var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* Avatar Circles */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.avatar-text {
    color: white;
    font-weight: 600;
}

/* Progress Circle */
.progress-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: conic-gradient(var(--success-color) 0deg, var(--medium-gray) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
}

.progress-circle::before {
    content: attr(data-progress) '%';
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--success-color);
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}

/* Success Animation */
.success-animation {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-primary {
    background: transparent !important;
    color: #000000 !important;
    font-weight: 600;
    font-family: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .card-body {
        padding: 1rem;
    }
    
    .stats-card {
        padding: 1rem;
    }
    
    .stats-card h3 {
        font-size: 1.75rem;
    }
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0891b2 100%);
}

.shadow-custom {
    box-shadow: var(--shadow-lg);
}

.rounded-custom {
    border-radius: 16px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin: 0 2px;
    padding: 0.5rem 0.75rem;
    color: var(--text-primary) !important;
    background: white;
    transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_filter input {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-left: 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ---- Merck DEC course extensions ---- */
:root {
  --maroon: #850143;
  --maroon-dark: #5C0130;
  --maroon-mid: #A01A55;
  --gold: #FDBB2D;
  --navbar-yellow: #FFC90C;
  --grad-brand: linear-gradient(135deg, #850143 0%, #FDBB2D 100%);
  --grad-progress: linear-gradient(90deg, #850143 0%, #FDBB2D 100%);
  --grad-navbar: linear-gradient(90deg, #FFFFFF 0%, #FFC90C 57%, #FFC90C 100%);
  --grad-thumb: linear-gradient(145deg, #850143 0%, #5C0130 100%);
  --grad-blue: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
  --rewatch: #FF8C42;
  --rewatch-bg: #FFF9E6;
}

html.auth-pending #app { visibility: hidden; }

body.course-body {
  min-height: 100vh;
  background: #111 url("../assets/img/bg.png") center / cover fixed;
}

body.course-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 0;
}

body.course-body > *:not(.modal):not(.modal-backdrop):not(.completion-overlay) {
  position: relative;
  z-index: 1;
}

body.course-body .modal { z-index: 1055; }
body.course-body .modal-backdrop { z-index: 1050; }

.navbar.course-nav {
  background: var(--grad-navbar);
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  align-items: center;
  box-sizing: border-box;
}

.navbar.course-nav .container,
.navbar.course-nav .container-fluid {
  height: 122px !important;
  min-height: 122px !important;
  max-height: 122px !important;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.navbar.course-nav .navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  display: flex;
  align-items: center;
  height: 122px;
}

.navbar .brand-logo {
  height: 100px;
  width: auto;
  max-height: 100px;
  display: block;
}

.navbar.course-nav .back-to-course {
  color: #000 !important;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar.course-nav .back-to-course:hover {
  color: #000 !important;
  opacity: 0.75;
}

.auth-screen {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  max-width: 480px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
}

.auth-card .registration-header {
  text-align: center;
  justify-content: center;
}

.auth-card .btn-auth {
  background: var(--grad-blue);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.auth-gate-message {
  color: #850143;
  font-weight: 600;
  text-align: center;
  margin-top: 1rem;
}

.course-hero {
  background: linear-gradient(135deg, #850143 0%, #A01A55 55%, #5C0130 100%);
  color: #fff;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-lg);
}

.course-hero h1 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.course-hero p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.video-card {
  display: block;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  border-left: 4px solid transparent;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
  color: inherit;
}

.video-card.is-completed { border-left-color: #10B981; }
.video-card.is-progress { border-left-color: var(--gold); }
.video-card.is-locked {
  opacity: 0.7;
  filter: grayscale(0.5);
  pointer-events: none;
}

.video-card-thumb {
  position: relative;
  height: 160px;
  background: var(--grad-thumb) center / cover no-repeat;
}

.video-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(133, 1, 67, 0.55), rgba(92, 1, 48, 0.7));
}

.video-card-number,
.video-card-badge,
.video-card-play,
.video-card-info {
  position: absolute;
  z-index: 1;
}

.video-card-number {
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.video-card-badge {
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.25);
}

.badge-completed { background: #10B981; }
.badge-progress { background: var(--gold); color: #1E293B; }
.badge-start { background: rgba(255, 255, 255, 0.35); }
.badge-locked { background: rgba(255, 255, 255, 0.25); }

.video-card-play {
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.75rem;
  opacity: 0.95;
}

.video-card-info {
  bottom: 10px;
  left: 12px;
  color: #fff;
  cursor: help;
}

.video-card-tooltip {
  display: none;
  position: absolute;
  left: 0;
  bottom: 130%;
  min-width: 220px;
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--grad-thumb);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.video-card-tooltip strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.video-card-tooltip span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
}

.video-card-info:hover .video-card-tooltip { display: block; }

.video-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.video-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.video-card-progress {
  height: 6px;
  margin-bottom: 0.5rem;
}

.video-card-progress .progress-bar {
  background: var(--grad-progress);
}

.video-card-meta {
  margin: 0;
  font-size: 0.75rem;
  color: #64748B;
}

.page-shell {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

#app.page-shell > .row:first-of-type,
#app.page-shell > #video-grid {
  margin-top: 0.5rem;
}

.module-card {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.module-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.module-card > .card-header {
  border-radius: 12px 12px 0 0;
  gap: 0;
}

.module-card > .card-header h5 {
  color: #fff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
}

.module-card > .card-header h5 .fa-video,
.module-card > .card-header h5 .fa-list-check {
  font-size: 20px;
}

.module-card > .card-body {
  padding: 2rem;
}

.module-card .quiz-card-header h5 {
  color: #fff;
}

.vimeo-wrap {
  position: relative;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.vimeo-wrap video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 70vh;
  background: #000;
}

.vimeo-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  background: #000;
}

.vimeo-wrap iframe:not([hidden]) {
  min-height: 240px;
}

.watch-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  color: #1E293B;
}

.watch-meta .watch-label {
  color: #1E293B;
  font-weight: 400;
}

.watch-meta .watch-label .fa-chart-line {
  color: var(--maroon);
}

.watch-meta .watch-label .fa-clock {
  color: var(--gold);
}

.watch-meta .pct {
  color: var(--maroon);
  font-weight: 400;
}

.watch-meta .time {
  color: var(--gold);
  font-weight: 400;
}

.watch-progress {
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.watch-progress .progress-bar {
  background: var(--grad-progress);
  border-radius: 4px;
}

.merck-disclaimer {
  font-size: 0.7rem;
  line-height: 1.45;
  color: #6C757D;
  margin: 1rem 0 0;
}

.continue-quiz-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

#continue-quiz-btn {
  background: var(--grad-brand);
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  position: sticky;
  bottom: 20px;
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(133, 1, 67, 0.45);
}

#continue-quiz-btn:hover {
  color: #fff;
  filter: brightness(1.05);
}

.quiz-card-header {
  background: var(--maroon);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quiz-card-header .badge.bg-warning {
  background-color: #FFC107 !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.35em 0.65em;
}

.question-card-active {
  border: 2px solid var(--maroon);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  background: transparent;
}

.question-inner-card {
  border: none;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  background: #fff;
}

.question-inner-card:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.question-label {
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--maroon);
  margin-bottom: 0.35rem;
}

#question-text {
  font-size: 1.1rem; /* 17.6px */
  font-weight: 600;
  color: #0F172A;
  margin-bottom: 1rem;
}

.answer-option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  transition: all 0.2s ease;
  background: #fff;
  opacity: 1 !important;
  color: #1E293B;
  position: relative;
}

.answer-option:hover {
  border-color: var(--maroon);
  background: #F8FAFC;
}

.answer-option .form-check-input:disabled ~ .form-check-label,
.answer-option .form-check-label {
  opacity: 1 !important;
  color: #1E293B;
  flex: 1;
}

.answer-option .answer-status {
  margin-left: auto;
  flex-shrink: 0;
  width: 1.5rem;
  text-align: center;
  font-size: 1.15rem;
  line-height: 1;
}

.answer-option.correct .answer-status {
  color: #10B981;
}

.answer-option.incorrect .answer-status {
  color: #EF4444;
}

.btn-brand {
  background: var(--grad-brand);
  color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(133, 1, 67, 0.35);
}

.btn-brand:hover { color: #fff; filter: brightness(1.05); }

.quiz-actions .btn {
  padding: 12px 30px;
  font-size: 1.125rem; /* 18px */
  font-weight: 600;
}

.btn-prev-q {
  background: var(--gold);
  color: var(--maroon);
  border: 2px solid var(--maroon);
  font-weight: 700;
}

.btn-return-video {
  background: #6C757D;
  color: #fff;
}

.btn-return-video:hover {
  color: #fff;
  filter: brightness(1.05);
}

.btn-rewatch {
  background: var(--rewatch);
  color: #fff;
  border: 2px solid #333;
  margin: 0.25rem;
}

#rewatch-panel {
  background: var(--rewatch-bg);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
}

.completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.completion-overlay[hidden] {
  display: none !important;
}

body.completion-open {
  overflow: hidden;
}

.completion-dialog {
  width: min(440px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.35);
}

.completion-dialog-header {
  background: var(--grad-brand);
  color: #0F172A;
  padding: 1rem 1.25rem;
  border-radius: 16px 16px 0 0;
}

.completion-dialog-title {
  color: #0F172A;
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.completion-dialog-title .title-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #5C0130;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.completion-dialog-body {
  padding: 2rem 1.75rem 1.75rem;
}

.completion-dialog .success-check {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.25rem;
}

.completion-dialog #completion-lead {
  color: #0F172A;
  font-weight: 700;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.completion-dialog .completion-next-prompt {
  color: #64748B;
  margin-bottom: 1.5rem;
}

.completion-dialog #go-next-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 240px;
  max-width: 320px;
  width: 100%;
  padding: 12px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(133, 1, 67, 0.35);
}

.completion-dialog .btn-back-course {
  border: 2px solid #1E3A8A;
  color: #1E3A8A;
  background: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 24px;
}

.completion-dialog .btn-back-course:hover {
  background: #EFF6FF;
  color: #1E3A8A;
}

#rewatch-panel {
  background: #FFF9E6;
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1.25rem;
  text-align: center;
}

#rewatch-panel p {
  color: #64748B;
  margin-bottom: 0.75rem;
}

.btn-rewatch {
  background: #FF8C42;
  color: #fff !important;
  border: 2px solid #333;
  font-weight: 600;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: inline-block;
  margin: 0.25rem;
}

.btn-rewatch:hover {
  color: #fff !important;
  filter: brightness(1.05);
}

.thankyou-card {
  max-width: 640px;
  margin: 3rem auto;
  text-align: center;
}

.thankyou-card .check {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #D1FAE5;
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  margin: 0 auto 1.5rem;
}

.link-muted { color: #64748B; }

#user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

#user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--maroon);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  overflow: hidden;
  position: relative;
}

#user-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#complete-banner {
  border-left: 4px solid #10B981;
}
