/* LMS Application Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');

/* Device Authorization Styles */
.device-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-color: var(--lms-color-background);
}

.device-auth-card {
    background: var(--lms-color-surface);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--lms-shadow-medium);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.device-auth-card h1 {
    color: var(--lms-color-text-primary);
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
}

.device-auth-card p {
    color: var(--lms-color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.user-code-section {
    margin: 30px 0;
}

.user-code-section label {
    display: block;
    color: var(--lms-color-text-secondary);
    margin-bottom: 10px;
    font-weight: 500;
}

.user-code {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lms-color-primary);
    background: var(--lms-color-primary-light);
    padding: 15px;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

.btn-primary:hover:not(:disabled) {
    background: var(--lms-color-primary-dark);
}

.btn-danger {
    background: var(--lms-color-danger);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: var(--lms-color-danger-dark);
}

.btn-secondary {
    background: var(--lms-color-secondary);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--lms-color-secondary-dark);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.result-message {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
}

.result-message.success {
    background: var(--lms-color-success-light);
    color: var(--lms-color-success);
    border: 1px solid var(--lms-color-success);
}

.result-message.error {
    background: var(--lms-color-danger-light);
    color: var(--lms-color-danger);
    border: 1px solid var(--lms-color-danger);
}

.error-message {
    color: var(--lms-color-danger);
    margin: 20px 0;
}

/* Import theme variables */
@import './themes/variables.css';

/* Blazor Error UI - Hidden by default, shown only on errors */
#blazor-error-ui {
    background: var(--lms-danger);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none !important;
    left: 0;
    padding: 0.75rem 1.25rem 0.75rem 0.75rem;
    position: fixed;
    width: 100%;
    z-index: 100000;
    color: white;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#blazor-error-ui.show,
#blazor-error-ui:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
}

#blazor-error-ui .dismiss:hover {
    opacity: 0.8;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
}

#blazor-error-ui .reload:hover {
    text-decoration: none;
}

/* Blazor Loading Spinner/Throbber */
.blazor-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--lms-bg-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.blazor-loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.blazor-loading-spinner {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: var(--lms-space-4);
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--lms-primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.spinner-ring:nth-child(1) {
    animation-delay: -0.45s;
}

.spinner-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: var(--lms-primary-light);
}

.spinner-ring:nth-child(3) {
    animation-delay: -0.15s;
    border-top-color: var(--lms-primary);
    opacity: 0.7;
}

.spinner-ring:nth-child(4) {
    border-top-color: var(--lms-primary-light);
    opacity: 0.5;
}

.blazor-loading-text {
    color: var(--lms-text-secondary);
    font-size: var(--lms-font-size-base);
    font-weight: var(--lms-font-weight-medium);
    margin-top: var(--lms-space-4);
}

/* Hide loading when Blazor is loaded */
.loaded .blazor-loading {
    display: none !important;
}

/* Page navigation loading indicator */
.blazor-navigation-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: transparent;
    z-index: 10000;
    pointer-events: none;
}

.blazor-navigation-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--lms-primary), var(--lms-primary-light));
    animation: loading-progress 0.6s ease-in-out infinite;
}

@keyframes loading-progress {
    0% {
        left: 0;
        width: 0;
    }
    50% {
        width: 70%;
    }
    100% {
        left: 100%;
        width: 0;
    }
}

/* Base Styles */
* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: var(--lms-line-height-normal);
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-primary);
}

body {
    font-family: var(--lms-font-family-sans);
    font-size: var(--lms-font-size-base);
    font-weight: var(--lms-font-weight-normal);
    line-height: var(--lms-line-height-normal);
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-serif);
    font-weight: var(--lms-font-weight-semibold);
    line-height: var(--lms-line-height-tight);
    margin: 0 0 var(--lms-space-4) 0;
    color: var(--lms-text-primary);
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--lms-font-size-4xl);
}

h2 {
    font-size: var(--lms-font-size-3xl);
}

h3 {
    font-size: var(--lms-font-size-2xl);
}

h4 {
    font-size: var(--lms-font-size-xl);
}

h5 {
    font-size: var(--lms-font-size-lg);
}

h6 {
    font-size: var(--lms-font-size-base);
}

p {
    margin: 0 0 var(--lms-space-4) 0;
    color: var(--lms-text-secondary);
}

a {
    color: var(--lms-primary);
    text-decoration: none;
    transition: color var(--lms-transition-fast);
}

a:hover {
    color: var(--lms-primary-dark);
    text-decoration: underline;
}

/* Code */
code,
pre {
    font-family: var(--lms-font-family-mono);
    font-size: var(--lms-font-size-sm);
}

code {
    background-color: var(--lms-bg-tertiary);
    padding: var(--lms-space-1) var(--lms-space-2);
    border-radius: var(--lms-radius-sm);
    color: var(--lms-text-primary);
}

pre {
    background-color: var(--lms-bg-tertiary);
    padding: var(--lms-space-4);
    border-radius: var(--lms-radius-md);
    overflow-x: auto;
    margin: var(--lms-space-4) 0;
}

/* Lists */
ul,
ol {
    margin: 0 0 var(--lms-space-4) 0;
    padding-left: var(--lms-space-6);
}

li {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-secondary);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: var(--lms-radius-md);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--lms-space-4) 0;
}

th,
td {
    padding: var(--lms-space-3) var(--lms-space-4);
    text-align: left;
    border-bottom: 1px solid var(--lms-border-color);
}

th {
    font-weight: var(--lms-font-weight-semibold);
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-secondary);
}

td {
    color: var(--lms-text-secondary);
}

/* Form Elements */
input,
textarea,
select {
    font-family: inherit;
    font-size: var(--lms-font-size-base);
    line-height: var(--lms-line-height-normal);
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-primary);
    border: 1px solid var(--lms-border-color);
    border-radius: var(--lms-radius-md);
    padding: var(--lms-space-3) var(--lms-space-4);
    transition: border-color var(--lms-transition-fast), box-shadow var(--lms-transition-fast);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--lms-primary);
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

input::placeholder,
textarea::placeholder {
    color: var(--lms-text-tertiary);
}

/* Buttons */
button {
    font-family: inherit;
    font-size: var(--lms-font-size-base);
    font-weight: var(--lms-font-weight-medium);
    line-height: var(--lms-line-height-normal);
    color: var(--lms-text-primary);
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: var(--lms-radius-md);
    padding: var(--lms-space-3) var(--lms-space-4);
    cursor: pointer;
    transition: all var(--lms-transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--lms-space-2);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Utility Classes */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-light {
    font-weight: var(--lms-font-weight-light);
}

.font-normal {
    font-weight: var(--lms-font-weight-normal);
}

.font-medium {
    font-weight: var(--lms-font-weight-medium);
}

.font-semibold {
    font-weight: var(--lms-font-weight-semibold);
}

.font-bold {
    font-weight: var(--lms-font-weight-bold);
}

.text-xs {
    font-size: var(--lms-font-size-xs);
}

.text-sm {
    font-size: var(--lms-font-size-sm);
}

.text-base {
    font-size: var(--lms-font-size-base);
}

.text-lg {
    font-size: var(--lms-font-size-lg);
}

.text-xl {
    font-size: var(--lms-font-size-xl);
}

.text-2xl {
    font-size: var(--lms-font-size-2xl);
}

.text-3xl {
    font-size: var(--lms-font-size-3xl);
}

.text-4xl {
    font-size: var(--lms-font-size-4xl);
}

/* Spacing Utilities */
.m-0 {
    margin: var(--lms-space-0);
}

.m-1 {
    margin: var(--lms-space-1);
}

.m-2 {
    margin: var(--lms-space-2);
}

.m-3 {
    margin: var(--lms-space-3);
}

.m-4 {
    margin: var(--lms-space-4);
}

.m-5 {
    margin: var(--lms-space-5);
}

.m-6 {
    margin: var(--lms-space-6);
}

.m-8 {
    margin: var(--lms-space-8);
}

.mt-0 {
    margin-top: var(--lms-space-0);
}

.mt-1 {
    margin-top: var(--lms-space-1);
}

.mt-2 {
    margin-top: var(--lms-space-2);
}

.mt-3 {
    margin-top: var(--lms-space-3);
}

.mt-4 {
    margin-top: var(--lms-space-4);
}

.mt-5 {
    margin-top: var(--lms-space-5);
}

.mt-6 {
    margin-top: var(--lms-space-6);
}

.mt-8 {
    margin-top: var(--lms-space-8);
}

.mb-0 {
    margin-bottom: var(--lms-space-0);
}

.mb-1 {
    margin-bottom: var(--lms-space-1);
}

.mb-2 {
    margin-bottom: var(--lms-space-2);
}

.mb-3 {
    margin-bottom: var(--lms-space-3);
}

.mb-4 {
    margin-bottom: var(--lms-space-4);
}

.mb-5 {
    margin-bottom: var(--lms-space-5);
}

.mb-6 {
    margin-bottom: var(--lms-space-6);
}

.mb-8 {
    margin-bottom: var(--lms-space-8);
}

.p-0 {
    padding: var(--lms-space-0);
}

.p-1 {
    padding: var(--lms-space-1);
}

.p-2 {
    padding: var(--lms-space-2);
}

.p-3 {
    padding: var(--lms-space-3);
}

.p-4 {
    padding: var(--lms-space-4);
}

.p-5 {
    padding: var(--lms-space-5);
}

.p-6 {
    padding: var(--lms-space-6);
}

.p-8 {
    padding: var(--lms-space-8);
}

.pt-0 {
    padding-top: var(--lms-space-0);
}

.pt-1 {
    padding-top: var(--lms-space-1);
}

.pt-2 {
    padding-top: var(--lms-space-2);
}

.pt-3 {
    padding-top: var(--lms-space-3);
}

.pt-4 {
    padding-top: var(--lms-space-4);
}

.pt-5 {
    padding-top: var(--lms-space-5);
}

.pt-6 {
    padding-top: var(--lms-space-6);
}

.pt-8 {
    padding-top: var(--lms-space-8);
}

.pb-0 {
    padding-bottom: var(--lms-space-0);
}

.pb-1 {
    padding-bottom: var(--lms-space-1);
}

.pb-2 {
    padding-bottom: var(--lms-space-2);
}

.pb-3 {
    padding-bottom: var(--lms-space-3);
}

.pb-4 {
    padding-bottom: var(--lms-space-4);
}

.pb-5 {
    padding-bottom: var(--lms-space-5);
}

.pb-6 {
    padding-bottom: var(--lms-space-6);
}

.pb-8 {
    padding-bottom: var(--lms-space-8);
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-nowrap {
    flex-wrap: nowrap;
}

.items-start {
    align-items: flex-start;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

/* Grid Utilities */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.gap-1 {
    gap: var(--lms-space-1);
}

.gap-2 {
    gap: var(--lms-space-2);
}

.gap-3 {
    gap: var(--lms-space-3);
}

.gap-4 {
    gap: var(--lms-space-4);
}

.gap-6 {
    gap: var(--lms-space-6);
}

.gap-8 {
    gap: var(--lms-space-8);
}

/* Display Utilities */
.block {
    display: block;
}

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

.inline {
    display: inline;
}

.hidden {
    display: none;
}

/* Position Utilities */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.sticky {
    position: sticky;
}

/* Width and Height Utilities */
.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

.h-full {
    height: 100%;
}

.h-auto {
    height: auto;
}

.min-h-screen {
    min-height: 100vh;
}

/* Border Utilities */
.border {
    border: 1px solid var(--lms-border-color);
}

.border-t {
    border-top: 1px solid var(--lms-border-color);
}

.border-b {
    border-bottom: 1px solid var(--lms-border-color);
}

.border-l {
    border-left: 1px solid var(--lms-border-color);
}

.border-r {
    border-right: 1px solid var(--lms-border-color);
}

.border-0 {
    border: 0;
}

.rounded {
    border-radius: var(--lms-radius-base);
}

.rounded-sm {
    border-radius: var(--lms-radius-sm);
}

.rounded-md {
    border-radius: var(--lms-radius-md);
}

.rounded-lg {
    border-radius: var(--lms-radius-lg);
}

.rounded-xl {
    border-radius: var(--lms-radius-xl);
}

.rounded-full {
    border-radius: var(--lms-radius-full);
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: var(--lms-shadow-sm);
}

.shadow {
    box-shadow: var(--lms-shadow-base);
}

.shadow-md {
    box-shadow: var(--lms-shadow-md);
}

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

.shadow-xl {
    box-shadow: var(--lms-shadow-xl);
}

.shadow-2xl {
    box-shadow: var(--lms-shadow-2xl);
}

.shadow-none {
    box-shadow: none;
}

/* Color Utilities */
.text-primary {
    color: var(--lms-text-primary) !important;
}

.text-secondary {
    color: var(--lms-text-secondary) !important;
}

.text-tertiary {
    color: var(--lms-text-tertiary) !important;
}

/* Bootstrap text-muted override for dark mode */
.text-muted {
    color: var(--lms-text-secondary) !important;
}

html[data-theme="dark"] .text-muted {
    color: var(--lms-text-secondary) !important;
}

/* Ensure all text elements use theme colors */
html[data-theme="dark"] {
    color: var(--lms-text-primary);
}

html[data-theme="dark"] body {
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-primary);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--lms-text-primary);
}

html[data-theme="dark"] p {
    color: var(--lms-text-secondary);
}

html[data-theme="dark"] a {
    color: var(--lms-primary);
}

html[data-theme="dark"] a:hover {
    color: var(--lms-primary-light);
}

html[data-theme="dark"] code {
    color: var(--lms-text-primary);
    background-color: var(--lms-bg-tertiary);
}

html[data-theme="dark"] pre {
    background-color: var(--lms-bg-tertiary);
    color: var(--lms-text-primary);
}

html[data-theme="dark"] li {
    color: var(--lms-text-secondary);
}

html[data-theme="dark"] td {
    color: var(--lms-text-secondary);
}

html[data-theme="dark"] th {
    color: var(--lms-text-primary);
}

.text-success {
    color: var(--lms-success);
}

.text-warning {
    color: var(--lms-warning);
}

.text-danger {
    color: var(--lms-danger);
}

.text-info {
    color: var(--lms-info);
}

.bg-primary {
    background-color: var(--lms-bg-primary);
}

.bg-secondary {
    background-color: var(--lms-bg-secondary);
}

.bg-tertiary {
    background-color: var(--lms-bg-tertiary);
}

.bg-success {
    background-color: var(--lms-success);
}

.bg-warning {
    background-color: var(--lms-warning);
}

.bg-danger {
    background-color: var(--lms-danger);
}

.bg-info {
    background-color: var(--lms-info);
}

/* Animation Utilities */
.transition {
    transition: all var(--lms-transition-base);
}

.transition-fast {
    transition: all var(--lms-transition-fast);
}

.transition-slow {
    transition: all var(--lms-transition-slow);
}

/* Focus Utilities */
.focus-ring {
    outline: none;
    box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Fade Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-in-out;
}

/* Slide Animation */
@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Page-Specific Styles */

/* Dashboard Page */
.dashboard-page {
    width: 100%;
}

.dashboard-header {
    margin-bottom: var(--lms-space-6);
    text-align: center;
}

.dashboard-header h1 {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-primary);
}

.dashboard-header p {
    color: var(--lms-text-secondary);
    font-size: var(--lms-font-size-lg);
}

.stat-card {
    padding: var(--lms-space-4);
    border-radius: var(--lms-radius-lg);
    background-color: var(--lms-bg-secondary);
    transition: transform var(--lms-transition-fast), box-shadow var(--lms-transition-fast);
}

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

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--lms-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--lms-space-4);
    color: white;
    font-size: var(--lms-font-size-xl);
}

.stat-content h3 {
    font-size: var(--lms-font-size-2xl);
    font-weight: var(--lms-font-weight-bold);
    color: var(--lms-text-primary);
    margin: 0;
}

.stat-content p {
    font-size: var(--lms-font-size-sm);
    color: var(--lms-text-secondary);
    margin: var(--lms-space-1) 0 0 0;
}

.course-list {
    display: flex;
    flex-direction: column;
    gap: var(--lms-space-4);
}

.course-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--lms-space-4);
    border: 1px solid var(--lms-border-color);
    border-radius: var(--lms-radius-md);
    background-color: var(--lms-bg-secondary);
    transition: all var(--lms-transition-fast);
}

.course-item:hover {
    border-color: var(--lms-primary);
    box-shadow: var(--lms-shadow-sm);
}

.course-info {
    flex: 1;
}

.course-info h6 {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-primary);
}

.course-actions {
    margin-left: var(--lms-space-4);
}

.deadline-list {
    display: flex;
    flex-direction: column;
    gap: var(--lms-space-3);
}

.deadline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--lms-space-3);
    border-left: 3px solid var(--lms-warning);
    border-radius: var(--lms-radius-sm);
    background-color: var(--lms-bg-secondary);
}

.deadline-item.urgent {
    border-left-color: var(--lms-danger);
    background-color: var(--lms-danger-light);
}

.deadline-info h6 {
    margin-bottom: var(--lms-space-1);
    color: var(--lms-text-primary);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: var(--lms-space-3);
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: var(--lms-space-3);
    border-radius: var(--lms-radius-sm);
    background-color: var(--lms-bg-secondary);
}

.activity-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--lms-radius-full);
    background-color: var(--lms-primary-light);
    color: var(--lms-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--lms-space-3);
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.notification-list {
    display: flex;
    flex-direction: column;
    gap: var(--lms-space-3);
}

.notification-item {
    display: flex;
    align-items: flex-start;
    padding: var(--lms-space-3);
    border-radius: var(--lms-radius-sm);
    background-color: var(--lms-bg-secondary);
    border-left: 3px solid transparent;
}

.notification-item.unread {
    border-left-color: var(--lms-primary);
    background-color: var(--lms-primary-light);
}

.notification-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--lms-radius-full);
    background-color: var(--lms-bg-tertiary);
    color: var(--lms-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--lms-space-3);
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-content h6 {
    margin-bottom: var(--lms-space-1);
    color: var(--lms-text-primary);
}

.notification-actions {
    margin-left: var(--lms-space-3);
}

.course-card {
    height: 100%;
    transition: transform var(--lms-transition-fast), box-shadow var(--lms-transition-fast);
}

.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--lms-shadow-lg);
}

/* Catalog Page */
.catalog-page {
    width: 100%;
}

.catalog-header {
    margin-bottom: var(--lms-space-6);
    text-align: center;
}

.catalog-header h1 {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-primary);
}

.catalog-header p {
    color: var(--lms-text-secondary);
    font-size: var(--lms-font-size-lg);
}

/* My Courses Page */
.mycourses-page {
    width: 100%;
}

.mycourses-header {
    margin-bottom: var(--lms-space-6);
}

.mycourses-header h1 {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-primary);
}

.mycourses-header p {
    color: var(--lms-text-secondary);
    font-size: var(--lms-font-size-lg);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--lms-space-4);
    margin-top: var(--lms-space-6);
}

/* Progress Page */
.progress-page {
    width: 100%;
}

.progress-header {
    margin-bottom: var(--lms-space-6);
    text-align: center;
}

.progress-header h1 {
    margin-bottom: var(--lms-space-2);
    color: var(--lms-text-primary);
}

.progress-header p {
    color: var(--lms-text-secondary);
    font-size: var(--lms-font-size-lg);
}

.progress-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--lms-space-4);
    margin-bottom: var(--lms-space-6);
}

.progress-chart-container {
    background-color: var(--lms-bg-secondary);
    border-radius: var(--lms-radius-lg);
    padding: var(--lms-space-4);
    margin-bottom: var(--lms-space-6);
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--lms-space-4);
}

.achievement-item {
    padding: var(--lms-space-4);
    border: 1px solid var(--lms-border-color);
    border-radius: var(--lms-radius-md);
    background-color: var(--lms-bg-secondary);
    text-align: center;
    transition: all var(--lms-transition-fast);
}

.achievement-item:hover {
    border-color: var(--lms-primary);
    box-shadow: var(--lms-shadow-md);
}

.achievement-icon {
    font-size: 3rem;
    color: var(--lms-primary);
    margin-bottom: var(--lms-space-2);
}

/* About Page - Styles moved to About.razor.css */

/* Help Page */
.help-page {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.help-header {
    text-align: center;
    margin-bottom: var(--lms-space-8);
}

.help-header h1 {
    margin-bottom: var(--lms-space-4);
    color: var(--lms-text-primary);
}

.faq-section {
    margin-bottom: var(--lms-space-6);
}

.faq-item {
    margin-bottom: var(--lms-space-4);
    border: 1px solid var(--lms-border-color);
    border-radius: var(--lms-radius-md);
    background-color: var(--lms-bg-secondary);
    overflow: hidden;
}

.faq-question {
    padding: var(--lms-space-4);
    font-weight: var(--lms-font-weight-semibold);
    color: var(--lms-text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color var(--lms-transition-fast);
}

.faq-question:hover {
    background-color: var(--lms-bg-tertiary);
}

.faq-answer {
    padding: 0 var(--lms-space-4) var(--lms-space-4) var(--lms-space-4);
    color: var(--lms-text-secondary);
    line-height: var(--lms-line-height-relaxed);
}

.help-category {
    margin-bottom: var(--lms-space-8);
}

.help-category h2 {
    margin-bottom: var(--lms-space-4);
    color: var(--lms-text-primary);
    border-bottom: 2px solid var(--lms-primary);
    padding-bottom: var(--lms-space-2);
}

/* Home Page - Styles moved to Home.razor.css */

/* xAPI/SCORM Player Styles */
.xapi-player {
    width: 100%;
    min-height: 400px;
}

.xapi-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.xapi-header {
    padding: 1rem;
    background-color: var(--lms-bg-secondary);
    border-bottom: 1px solid var(--lms-border-color);
}

.xapi-content {
    flex: 1;
    padding: 1rem;
    overflow: auto;
}

.xapi-content.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: var(--lms-bg-primary);
    padding: 0;
}

.xapi-content.fullscreen iframe {
    width: 100%;
    height: 100vh;
    border: none;
    border-radius: 0;
}

.xapi-exit-fullscreen-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    background-color: var(--lms-primary, #0d6efd);
    color: white;
    border: 2px solid white;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all var(--lms-transition-fast, 0.2s);
    min-width: 140px;
    justify-content: center;
}

.xapi-exit-fullscreen-button:hover {
    background-color: var(--lms-primary-dark, #0b5ed7);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
}

.xapi-exit-fullscreen-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.xapi-exit-fullscreen-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.xapi-exit-button-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .xapi-exit-fullscreen-button {
        top: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-width: auto;
    }
    
    .xapi-exit-button-text {
        display: none;
    }
    
    .xapi-exit-fullscreen-button {
        min-width: 44px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }
}

.xapi-progress {
    padding: 0 1rem 1rem 1rem;
}

.xapi-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
    }

    .progress-summary {
        grid-template-columns: 1fr;
    }

    .achievement-list {
        grid-template-columns: 1fr;
    }
}