:root {
    --font-heading: "Inter", sans-serif;
    --font-body: "Inter", sans-serif;
    /* --font-heading: "Playfair Display", serif;
    --font-body: "Playfair Display", serif; */
    --black: #000000;
    --white: #ffffff;
    --sidebar-width: 260px;
    --border-color: #eef0f2;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #fcfcfc;
    --bg-secondary: #f4f5f7;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --progress-red: #ef4444;
    --progress-yellow: #f59e0b;
    --progress-light-green: #86efac;
    --progress-green: #10b981;
    --progress-black: #0f172a;
}

body {
    font-family: var(--font-body), sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    /* App-like feel */
}

a {
    text-decoration: none !important;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading), sans-serif;
    font-weight: 600;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="submit"],
button,
.btn {
    transition: all 0.2s linear !important;
}

input[type="submit"]:hover,
button:hover,
.btn:hover {
    cursor: pointer;
}

input[type="submit"]:active,
button:active,
.btn:active {
    transform: scale(0.95);
}

/* common */
.no-select {
    user-select: none;
}

.text-primary {
    color: var(--text-primary) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.border-color {
    border: 1px solid var(--border-color) !important;
}

/* Layout */
.app-container {
    display: flex;
    height: 100dvh;
    width: 100vw;
    background-color: #ffffff;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100dvh;
    transition: width 0.3s ease, left 0.3s ease;
    white-space: nowrap;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.sidebar.collapsed {
    width: 80px;
    padding: 1rem 0.5rem;
}

.sidebar.collapsed .sidebar-brand-text,
.sidebar.collapsed .sidebar-search,
.sidebar.collapsed .sidebar-group-title,
.sidebar.collapsed .nav-item-text,
.sidebar.collapsed .sidebar-user-details,
.sidebar.collapsed .sidebar-user-name,
.sidebar.collapsed .sidebar-user-role,
.sidebar.collapsed .sidebar-footer .nav-item span {
    display: none;
}

.sidebar.collapsed .sidebar-brand-wrapper {
    justify-content: center;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 0.8rem 0;
}

.sidebar.collapsed .nav-item iconify-icon {
    margin-right: 0;
    font-size: 1.5rem;
}

.sidebar.collapsed .sidebar-user-container {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .user-avatar {
    margin-right: 0;
}

.sidebar.collapsed:hover {
    width: 260px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed:hover .sidebar-brand-text,
.sidebar.collapsed:hover .sidebar-search,
.sidebar.collapsed:hover .sidebar-group-title,
.sidebar.collapsed:hover .nav-item-text,
.sidebar.collapsed:hover .sidebar-user-details,
.sidebar.collapsed:hover .sidebar-user-name,
.sidebar.collapsed:hover .sidebar-user-role,
.sidebar.collapsed:hover .sidebar-footer .nav-item span {
    display: block;
}

.sidebar.collapsed:hover .sidebar-brand-wrapper {
    justify-content: flex-start;
}

.sidebar.collapsed:hover .nav-item {
    justify-content: flex-start;
    padding: 0.5rem;
}

.sidebar.collapsed:hover .nav-item iconify-icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.sidebar.collapsed:hover .sidebar-user-container {
    justify-content: flex-start;
    padding: 0.5rem;
}

.sidebar.collapsed:hover .user-avatar {
    margin-right: 10px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.sidebar-search {
    background: #f4f5f7;
    border-radius: 6px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.sidebar-group-container {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Optional: padding adjustments for scrollbar aesthetics if needed */
}

.sidebar-group {
    margin-bottom: 1.5rem;
}

/* Custom Combobox */
.custom-combobox-wrapper {
    position: relative;
}

.custom-combobox-input {
    padding-right: 30px;
    /* Space for arrow */
    cursor: pointer;
}

.custom-combobox-trigger {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.custom-combobox-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1055;
    /* Higher than modal */
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 6px 6px;
}

.custom-combobox-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.custom-combobox-option:hover {
    background-color: #f3f4f6;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0f172a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* File Upload Styles */
.file-upload-wrapper {
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    background: #fff;
}

.file-upload-wrapper:hover,
.file-upload-wrapper.dragover {
    border-color: #0f172a;
    background-color: #f8fafc;
}

.file-upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.file-upload-text {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 8px;
}

.video-preview {
    margin-top: 10px;
    font-size: 0.9em;
    color: #0f172a;
    display: none;
    align-items: center;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    width: fit-content;
}

.video-link-icon {
    color: #0f172a;
    transition: color 0.2s;
    cursor: pointer;
}

.video-link-icon:hover {
    color: #3b82f6;
}

/* Custom Video Player Styles */
.video-modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.player {
    width: 100%;
    max-width: 900px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.player video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly transparent options */
    color: #fff;
    font-size: 14px;
    position: absolute;
    bottom: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.player:hover .controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    padding: 5px;
    cursor: pointer;
    opacity: 0.85;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.progress {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
    border-radius: 3px;
    overflow: visible;
    /* Allow handle to stick out if we add one */
}

.progress-filled {
    height: 100%;
    width: 0%;
    background: #3b82f6;
    /* Theme Blue */
    border-radius: 3px;
    position: relative;
}

/* Add a small handle for the progress bar */
.progress-filled::after {
    content: '';
    position: absolute;
    right: -4px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s;
}

.player:hover .progress-filled::after {
    opacity: 1;
}

.time {
    min-width: 45px;
    text-align: center;
    font-family: monospace;
    font-size: 13px;
    color: white;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    filter: invert(1);
    z-index: 1060;
    opacity: 0.8;
}

.video-modal-close:hover {
    opacity: 1;
}

/* Fullscreen Styles */
.player:fullscreen {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    aspect-ratio: unset;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.player:fullscreen video {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.player:fullscreen .controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2147483647;
    /* High z-index to stay on top */
}

/* Fix for stretched link in board view */
.course-card .action-buttons-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.course-card .action-buttons-wrapper .action-btn {
    justify-content: center;
    min-width: 96px;
}

.sidebar-group-title {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.5rem;
    color: #444;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 2px;
    transition: background-color 0.2s;
}

.nav-item:hover {
    background-color: #f0f0f0;
    color: var(--text-primary);
}

.nav-item.active {
    background-color: #f0f0f0;
    color: var(--text-primary);
    font-weight: 500;
}

.nav-item iconify-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    overflow-y: auto;
    overflow-x: hidden;
    flex-direction: column;
    background-color: #fff;
    position: relative;
    width: 100%;
    margin-left: var(--sidebar-width);
    /* Push content by sidebar width */
    transition: margin-left 0.3s ease;
}

.main-content.expanded {
    margin-left: 80px;
}

.content-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: var(--bg-light);
}

.breadcrumb {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-toggle {
    cursor: pointer;
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none !important;
    }
}

.page-title .badge-count {
    background: #f4f5f7;
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin-left: 10px;
    font-weight: 500;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Toolbar */
.toolbar {
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    /* Responsive wrap */
    gap: 1rem;
    position: sticky;
    top: 88px;
    /* Height of content-header approx */
    background: #fff;
    z-index: 99;
}

.view-tabs {
    display: flex;
    gap: 1rem;
}

.view-tab {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-tab.active {
    background: #f4f4f5;
    color: var(--text-primary);
    font-weight: 500;
}

.toolbar-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn-light-custom {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #333;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-light-custom:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.btn-primary-custom {
    background: #0f172a;
    border: 1px solid #0f172a;
    color: #fff;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-custom:hover {
    background: #1e293b;
}

.btn-danger-custom {
    transition: all 0.2s;
}

.btn-danger-custom:hover {
    background-color: #fecaca !important;
}

.btn-warning-custom {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    color: #f59e0b;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-warning-custom:hover {
    background-color: #fef3c7 !important;
    border-color: #fcd34d;
}

/* Table Filter Bar */
.filter-bar {
    padding: 0.75rem 2rem;
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    flex-wrap: wrap;
    align-items: center;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
    cursor: pointer;
}

.filter-chip.active {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.filter-chip select {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: inherit;
    cursor: pointer;
    min-width: 120px;
}

/* Table */
.table-container {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.custom-table th {
    background: #f9fafb;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.custom-table th.sortable {
    cursor: pointer;
}

.custom-table th.sortable:hover {
    background: #f3f4f6;
}

.custom-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    font-size: 0.9rem;
    color: var(--text-primary);
    white-space: nowrap;
    /* Fixes height fluctuation on scroll */
    height: 48px;
    /* Fixed height constant */
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-table tr:hover td {
    background-color: #f9f9f9;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    background-color: #e0e0e0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #555;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.status-active {
    background-color: #ecfdf5;
    color: #059669;
}

.status-active::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 6px;
}

.status-inactive {
    background-color: #fef2f2;
    color: #dc2626;
}

.status-inactive::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: #ef4444;
    border-radius: 50%;
    margin-right: 6px;
}

.badge-2fa {
    background-color: #fffbeb;
    color: #b45309;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.action-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.action-btn:hover {
    background: #f3f4f6;
}

.table-footer {
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    padding: 0 8px;
    font-size: 0.85rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #f9f9f9;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.active {
    background: #f4f4f5;
    font-weight: 600;
    border-color: #ccc;
}

/* Modals */
.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

/* Dashboard Cards */
.card {
    transition: all 0.2s linear;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Auth Cards */
.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.auth-card .form-control {
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
}

.auth-card .form-control:focus {
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
    border-color: var(--text-primary);
}

.auth-card .btn-primary {
    background-color: #0f172a;
    border: none;
    width: 100%;
    padding: 0.7rem;
    border-radius: 6px;
    font-weight: 500;
}

.auth-card .btn-primary:hover {
    background-color: #1e293b;
}

/* Board View (User Management) */
.board-container {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.user-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.user-card .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
}

.user-card .name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.user-card .role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: #f4f4f5;
    padding: 2px 8px;
    border-radius: 12px;
}

.user-card .actions {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* List View (User Management) */
.list-container {
    padding: 1rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.user-list-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
    border-radius: 12px;
    gap: 1rem;
    /* Responsive tweaks */
    flex-wrap: nowrap;
    overflow-x: auto;
}

.user-list-item:hover {
    background-color: #f9f9f9;
}


/* Responsive */
/* Old media queries removed, see responsive.css */

.sidebar-toggle-btn {
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    margin-left: auto;
}

.sidebar-toggle-btn:hover {
    background-color: #f0f0f0;
    color: var(--text-primary);
}


/* Custom Select Dropdown System */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-wrapper select {
    display: none;
    /* Hide original select */
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 180px;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #0f172a;
    /* Theme Primary */
    /* box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1); */
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #f0f0f0;
    border-top: 0;
    background: #fff;
    transition: all 0.2s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1100;
    margin-top: 4px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    overflow-y: auto;
    max-height: 220px;
    /* Approx 5.5 items */
    transform: translateY(-10px);
}

.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: translateY(0);
}

.custom-option {
    position: relative;
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 400;
    color: #4b5563;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9fafb;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f8fafc;
    color: #0f172a;
    padding-left: 1.2rem;
}

.custom-option.selected {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 500;
}

/* Specific adjustments for Filter Bar context where space is tight */
.filter-bar .custom-select-trigger {
    padding: 4px 8px;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    min-width: unset;
    color: inherit;
    gap: 8px;
}

.filter-bar .custom-select-wrapper {
    width: auto;
}

.filter-bar .custom-select-trigger::after {
    border-color: #555;
    width: 5px;
    height: 5px;
}

.filter-bar .custom-options {
    min-width: 150px;
}

/* Date Input Styles */
.date-filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #555;
}

.date-input-custom {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.85rem;
    color: #4b5563;
    /* Theme text-secondary-like */
    font-family: inherit;
    padding: 0;
    cursor: pointer;
    width: 105px;
    /* Fixed width for consistency */
}

.date-input-custom::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.date-input-custom::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Expanded Status Badges */
.badge-green {
    background-color: #ecfdf5;
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.18);
}

.badge-orange {
    background-color: #fff7ed;
    color: #ea580c;
    border: 1px solid #ffedd5;
}

.badge-purple {
    background-color: #faf5ff;
    color: #9333ea;
    border: 1px solid #f3e8ff;
}

.badge-black {
    background-color: #f1f5f9;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.badge-blue {
    background-color: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
}

.badge-teal {
    background-color: #f0fdfa;
    color: #0d9488;
    border: 1px solid #ccfbf1;
}

.badge-red-solid {
    background-color: #ef4444;
    color: #ffffff;
    border: 1px solid #ef4444;
}

/* Drop Up Variant */
.custom-select-wrapper.drop-up .custom-options {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
    transform: translateY(10px);
    border-top: 1px solid #f0f0f0;
    border-bottom: 0px;
    box-shadow: 0 -10px 15px -3px rgba(0, 0, 0, 0.1), 0 -4px 6px -2px rgba(0, 0, 0, 0.05);
}

.custom-select-wrapper.drop-up.open .custom-options {
    transform: translateY(0);
}

/* =========================================
   User Management Page Styles
   ========================================= */

/* Breadcrumb */
.breadcrumb-separator {
    margin: 0 4px;
}

.breadcrumb-link {
    color: inherit;
    text-decoration: none;
}

/* Toolbar & Search */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    transition: all 0.2s linear;
}

.search-input {
    padding: 0.4rem 0.8rem 0.4rem 2rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.2s linear;
}

.search-input:active {
    transform: scale(0.95);
}


/* Specific Buttons */
.btn-bulk-delete {
    display: none;
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

/* Table Specifics */
.col-checkbox {
    width: 40px;
}

.empty-table-message {
    text-align: center;
    padding: 2rem;
}

.employee-id-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: #555;
}

.user-info-wrapper {
    display: flex;
    align-items: center;
}

.user-name-text {
    font-weight: 500;
}

.role-badge {
    background: #f3f4f6;
    color: #4b5563;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: capitalize;
    width: fit-content;
}

.action-buttons-wrapper {
    display: flex;
    gap: 8px;
}

.action-btn-delete {
    color: #ef4444 !important;
    border-color: #fecaca !important;
    background: #fef2f2 !important;
}

/* Board View Specifics */
.empty-board-message {
    text-align: center;
    width: 100%;
    color: #888;
}

.board-user-id {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.board-status-badge {
    margin-bottom: 1rem;
}

/* List View Specifics */
.empty-list-message {
    text-align: center;
    padding: 2rem;
    color: #888;
}

.list-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.list-user-avatar {
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
}

.list-user-name {
    font-weight: 600;
    font-size: 1rem;
}

.list-user-details {
    color: #666;
    font-size: 0.85rem;
}

.list-item-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.list-user-date {
    font-size: 0.85rem;
    color: #888;
}

/* Pagination Specifics */
.pagination-info-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-separator {
    color: #e0e0e0;
}

.rows-per-page-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rows-select {
    width: 70px;
}

.pagination-dots {
    padding: 0 4px;
}

/* =========================================
   Modal Styles (Custom & Confirmation)
   ========================================= */

/* Custom Modal */
.custom-modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.custom-modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 1.5rem;
}

.custom-modal-title {
    font-weight: 600;
}

.custom-modal-body {
    padding: 1.5rem;
}

.custom-form-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.custom-form-input {
    font-size: 0.9rem;
}

.custom-modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 1rem 1.5rem;
}

/* Confirmation/Notification Modal */
.confirm-modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.confirm-modal-body {
    padding-top: 0.5rem;
    color: #666;
}

.confirm-modal-footer {
    border-top: none;
}

/* =========================================
   Dashboard Page Styles
   ========================================= */

.course-card {
    border-radius: 16px;
    transition: transform 0.2s;
}

.course-card-header,
.course-card-image-wrapper {
    height: 180px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f8fafc;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.course-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lesson-badge {
    border-radius: 8px;
    font-size: 0.8rem;
}

.course-icon-placeholder {
    color: #6c757d;
    opacity: 0.5;
}

.tag-badge {
    font-size: 0.75rem;
}

.course-card-title {
    line-height: 1.5;
    font-size: 1rem;
}

/* =========================================
   Base Template Styles
   ========================================= */

/* Sidebar Specifics */
.sidebar-brand-wrapper {
    display: flex;
    align-items: center;
}

.sidebar-brand-icon {
    font-size: 1.2rem;
    margin-right: 8px;
}

.sidebar-close-icon {
    margin-left: auto;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
}

.shortcut-badge {
    margin-left: auto;
    font-size: 0.7rem;
    border: 1px solid #ddd;
    padding: 0 4px;
    border-radius: 3px;
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.sidebar-user-container {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-user-details {
    font-size: 0.85rem;
}

.sidebar-user-name {
    font-weight: 500;
}

.sidebar-user-role {
    font-size: 0.75rem;
    color: #666;
}

/* Layout Containers */
.auth-main-container {
    min-height: 100dvh;
}

/* Flash Messages */
.flash-container {
    position: fixed !important;
    bottom: 1rem !important;
    right: 1rem !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: 2000;
}

.flash-alert {
    border-radius: 8px;
    font-size: 0.9rem;
    width: auto;
    min-width: 300px;
}

/* =========================================
   Error Page Styles
   ========================================= */

.error-page-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-description {
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.error-icon-large {
    font-size: 4rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

/* =========================================
   Course Details Page Styles
   ========================================= */
.course-banner {
    width: 100%;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
}

.course-info {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.course-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lesson-list {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.lesson-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    cursor: grab;
}

.lesson-item:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lesson-item.sortable-ghost {
    opacity: 0.5;
    background: #f0f9ff;
    border: 1px dashed #3b82f6;
}

.lesson-handle {
    color: #cbd5e1;
    cursor: grab;
    padding: 0.5rem;
}

.lesson-handle:hover {
    color: var(--text-primary);
}

.lesson-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 1rem;
    cursor: pointer;
}

.lesson-title {
    font-weight: 600;
    color: var(--text-primary);
}

.lesson-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

/* TinyMCE Editor Height Overrides */
.tox-tinymce {
    border-radius: 6px !important;
    border-color: #e0e0e0 !important;
}

/* Modal Loader */
.modal-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    justify-content: center;
    align-items: center;
}

.modal-loader.active {
    display: flex;
}

/* Upload Icon Color */
.upload-icon-placeholder {
    color: #cbd5e1;
}

/* =========================================
   Lesson View Page Styles
   ========================================= */
.lesson-view-container {
    display: flex;
    height: calc(100dvh - 80px);
    /* Adjust based on header/padding */
    gap: 2rem;
    padding: 2rem;
    overflow: hidden;
}

.lesson-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.lesson-playlist-area {
    width: 350px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-header-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.content-tab {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.content-tab:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.content-tab.active {
    color: #3b82f6;
    border-bottom: 2px solid #3b82f6;
    background: #fff;
}

.content-viewer {
    flex: 1;
    position: relative;
    overflow: hidden;
    /* Hide overflow to prevent double scrollbar with PDF */
}

/* Specific flex layout for PDF viewer to handle toolbar + content */
.content-viewer#view-pdf {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Override d-none behavior when active (implicitly handled by removing d-none class, but ensure display is flex) */
.content-viewer#view-pdf:not(.d-none) {
    display: flex;
}

#view-transcript {
    overflow: auto;
    /* Only transcript needs container scrolling */
}

.pdf-viewer-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    /* Removes inline spacing that causes phantom scrollbars */
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.transcript-content {
    padding: 2rem;
    line-height: 1.8;
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
}

/* Playlist Styles */
.playlist-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    background: #f8fafc;
}

.playlist-items {
    flex: 1;
    overflow-y: auto;
}

.playlist-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}

.playlist-item:hover {
    background: #f8fafc;
}

.playlist-item.active {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.playlist-item-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.playlist-item-title {
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.status-icon {
    color: #cbd5e1;
}

.playlist-item.active .status-icon {
    color: #3b82f6;
}

.pdf-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.vertical-middle {
    vertical-align: -2px;
}

/* PDF Scaling & Scrolling */
.pdf-scroll-container {
    width: 100%;
    flex: 1;
    /* Take remaining height */
    overflow-x: auto;
    overflow-y: hidden;
    /* Prevent vertical scrollbar on container, let Embed handle it */
    position: relative;
    background: #525659;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

#pdf-wrapper {
    width: 100%;
    height: 100%;
    transition: width 0.2s ease;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.pdf-toolbar {
    min-height: 3em;
    margin-bottom: 0 !important;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}

/* Old responsive block 2 removed */

/* =========================================
   Course Management Page Styles
   ========================================= */
.course-card-empty-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fs-small-custom {
    font-size: 0.7em !important;
}

.course-card-header-bg {
    height: 160px;
    background-size: cover;
    background-position: center;
}

/* Exam Question Card (Smooth Hover) */
.question-card {
    transition: var(--transition);
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    overflow: hidden;
    background-color: #fff !important;
}

.question-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: #0f172a !important;
}

.question-card .input-group-text {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
}

.question-card .form-control:focus {
    box-shadow: none;
    border-color: #0f172a;
}

.question-handle {
    cursor: grab;
}

.question-handle:active {
    cursor: grabbing;
}

/* Result Summary Styles */
.result-circle-custom {
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Playlist Styles */
.playlist-item.disabled {
    pointer-events: none;
    opacity: 0.6 !important;
    background-color: #f8f9fa !important;
}

.playlist-item.disabled .playlist-item-title {
    color: #94a3b8 !important;
}

/* Bulk Delete Transition */
.btn-bulk-delete {
    transition: var(--transition);
}

/* Modal Enhancements */
.modal-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 100;
    border-radius: 12px;
    justify-content: center;
    align-items: center;
}

.modal-loader.active {
    display: flex;
}

.cursor-grab {
    cursor: grab !important;
}

.cursor-pointer {
    cursor: pointer !important;
}

.lesson-info-locked {
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.breadcrumb-separator {
    display: flex;
    align-items: center;
}

/* Circular Progress Bar */
.circular-progress {
    position: relative;
    width: 42px;
    /* Smaller in cards */
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.circular-progress::before {
    content: "";
    position: absolute;
    width: 32px;
    /* Smaller in cards */
    height: 32px;
    border-radius: 50%;
    background-color: #fff;
}

.circular-progress-value {
    position: relative;
    font-size: 0.7rem;
    /* Smaller in cards */
    font-weight: 700;
    color: var(--text-primary);
}

.circular-progress-lg {
    width: 54px;
    /* Larger in header */
    height: 54px;
}

.circular-progress-lg::before {
    width: 44px;
    height: 44px;
}

.circular-progress-lg .circular-progress-value {
    font-size: 0.85rem;
}

/* Theme Progress Bar */
.theme-progress-container {
    width: 100%;
    background-color: var(--bg-secondary);
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.theme-progress-fill {
    height: 100%;
    background-color: var(--progress-black);
    /* Default */
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-red {
    background-color: var(--progress-red) !important;
}

.progress-yellow {
    background-color: var(--progress-yellow) !important;
}

.progress-light-green {
    background-color: var(--progress-light-green) !important;
}

.progress-green {
    background-color: var(--progress-green) !important;
}

.progress-black {
    background-color: var(--progress-black) !important;
}

/* Header Badge Stack */
.header-badge-stack {
    display: flex;
    align-items: center;
}

.stacked-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    position: relative;
    cursor: pointer;
    background-color: #e2e8f0;
}

.stacked-badge:first-child {
    margin-left: 0;
}

.stacked-badge:hover {
    transform: translateY(-3px) scale(1.1);
    z-index: 10;
}

.stacked-badge.incomplete {
    filter: grayscale(1);
    /*opacity: 0.6;*/
}

.stacked-badge.completed {
    filter: none;
    opacity: 1;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
    border-color: var(--progress-green);
}

.overall-progress-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.header-right-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

/* Level Dropdown size */
.level-select-wrapper .custom-options {
    max-height: 150px;
}

.toggle-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.toggle-filter-btn:hover {
    background: var(--bg-secondary);
    border-color: #cbd5e1;
}

.toggle-filter-btn.active {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Quick Search Modal */
.quick-search-modal {
    border-radius: 12px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.quick-search-results {
    max-height: 60vh;
    overflow-y: auto;
}

/* Logs Filter Improvements */
.actions-filter-wrapper .custom-select-trigger {
    padding: 0.4rem 0.8rem;
    /* Smaller padding */
    font-size: 0.85rem;
    /* Smaller text */
    min-width: 130px;
    /* Slightly reduced width */
    height: 38px;
    /* Match date input height approx */
}

.date-input-theme {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    background-color: #fff;
    width: 135px;
    transition: all 0.2s linear;
    height: 38px;
    /* Consistent height */
    font-family: inherit;
}

.date-input-theme:focus {
    border-color: #0f172a;
    outline: none;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.1);
}

.date-input-theme::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    background-size: 16px;
}

.date-input-theme::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

#custom-tooltip {
    position: fixed;
    pointer-events: none;
    display: none;
    max-width: 300px;
    padding: 8px 12px;
    background: var(--text-primary);
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    white-space: normal;
    z-index: 9999;
    transition: transform 0.05s linear;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Action Button */
.fab-filter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #0f172a;
    /* Primary */
    color: #fff;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: none;
    /* Hidden by default, shown on mobile via responsive.css */
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 1000;
    cursor: grab;
    transition: background-color 0.2s;
    /* Removed transform transition for smooth dragging */
    touch-action: none;
    /* Prevent scrolling while dragging */
}

.fab-filter:active {
    cursor: grabbing;
}

/* Flash Animation for Quick Action Search */
@keyframes flash-highlight-animation {
    0% {
        background-color: rgba(67, 121, 255, 0.4);
        /* Primary blue with opacity */
        box-shadow: 0 0 10px rgba(67, 121, 255, 0.2);
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

.flash-highlight {
    animation: flash-highlight-animation 5s ease-out forwards;
    transition: all 0.3s;
    position: relative;
    z-index: 5;
    /* Ensure it pops out slightly */
}
/* Hero Section */
.hero-section {
    background-color: #FDFBF7; /* Cream background */
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-title {
    /* font-family: "Playfair Display", serif; */
    font-size: 3.5rem;
    font-weight: 500;
    line-height: 1.1;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    background-color: #000;
    color: #fff;
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #000;
}

.hero-cta:hover {
    transform: translateY(-2px);
    background-color: #333;
    border-color: #333;
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 3D Image Grid */
.hero-image-grid-container {
    width: 100%;
    margin: 4rem 0;
    display: flex;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: 50% 50%;
}

.hero-image-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; /* Reduced gap slightly to bring them closer */
    transform-style: preserve-3d;
    padding: 20px 0;
}

.hero-card {
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex-shrink: 0;
    position: relative;
    user-select: none;
    background: #fff;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Transforms for the curved effect */
.hero-card.card-1 {
    transform: rotateY(30deg) scale(0.85) translateZ(-100px);
    opacity: 0.8;
}
.hero-card.card-2 {
    transform: rotateY(20deg) scale(0.9) translateZ(-50px);
    opacity: 0.9;
}
.hero-card.card-3 {
    transform: rotateY(10deg) scale(0.95);
    opacity: 1;
}
.hero-card.card-4.center-card {
    transform: scale(1.1) translateZ(30px);
    z-index: 10;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.hero-card.card-5 {
    transform: rotateY(-10deg) scale(0.95);
    opacity: 1;
}
.hero-card.card-6 {
    transform: rotateY(-20deg) scale(0.9) translateZ(-50px);
    opacity: 0.9;
}
.hero-card.card-7 {
    transform: rotateY(-30deg) scale(0.85) translateZ(-100px);
    opacity: 0.8;
}

/* Hover effects for interactivity */
/* .hero-card:hover {
    z-index: 15;
    transform: scale(1.1) rotateY(0deg) translateZ(50px) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    opacity: 1 !important;
    cursor: pointer;
} */

/* Features */
.hero-features {
    max-width: 1100px;
    margin-top: 2rem;
}

.feature-item {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.feature-title {
    /* font-family: "Playfair Display", serif; */
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.feature-desc {
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-image-grid {
        gap: 10px;
    }
    
    .hero-card {
        width: 120px;
        height: 160px;
    }
    
    .hero-card.card-1, .hero-card.card-7 {
        display: none; /* Hide outer cards on mobile */
    }
}

.settings-sub-item {
    padding-left: 42px;
    font-size: 14px;
}

.settings-dropdown .nav-item span {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Activity Log Action Badges */

.action-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.action-login {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.action-logout {
    background: linear-gradient(135deg, #64748b, #475569);
}

.action-enroll {
    background: linear-gradient(135deg, #16a34a, #15803d);
}

.action-delete {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.action-create {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.action-update {
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.action-move {
    background: linear-gradient(135deg, #0891b2, #0e7490);
}

.action-default {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.action-badge iconify-icon {
    font-size: 13px;
}

/* Logs Filter Alignment Fix */

.log-toolbar .search-input,
.log-toolbar .action-select,
.log-toolbar .date-input-theme,
.log-toolbar .rows-per-page-wrapper select,
.log-toolbar .btn-light-custom {
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
}

.log-toolbar .action-select {
    width: 200px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0 12px;
    font-size: 0.9rem;
    color: var(--text-primary);
    background-color: #fff;
    outline: none;
}

.log-toolbar .action-select:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.log-toolbar .rows-per-page-wrapper select {
    width: 70px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 0 10px;
}

.log-toolbar .btn-light-custom {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}