/* ============================================================
   Orchedule app shell (base.html)
   Extracted from the former inline <style> block so it is cached
   once and shared by every page instead of re-sent per response.
   Depends on the theme tokens defined in themes.css.
   ============================================================ */

/* ── Theme Switcher Navbar ─────────────────────────── */
.theme-switcher {
    display: flex;
    align-items: center;
}

.theme-current-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.theme-current-indicator img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.theme-current-indicator i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0 !important;
    font-size: 1rem;
    line-height: 1;
}

.theme-current-indicator [hidden] {
    display: none !important;
}

/* Orchedule theme "O" letter mark (replaces the former logo image).
   White bold glyph in the navbar; white-on-blue circle inside the theme
   dropdown (circle background comes from .theme-option[data-theme="orchedule"] i). */
.theme-o-mark {
    font-style: normal;
    font-weight: 800;
}

.theme-o-mark::before {
    content: "O";
}

.theme-current-indicator .theme-o-mark {
    font-size: 1.05rem;
    color: #ffffff;
}

.theme-switcher .dropdown-item .theme-o-mark {
    font-size: 0.95rem;
}

.theme-switcher .dropdown-menu {
    min-width: 180px;
    padding: 6px;
    background-color: var(--surface-color);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.08));
    border: 1px solid var(--border-color);
}

.language-switcher .dropdown-menu {
    width: max-content;
    animation: none;
}

/* Fade-in on open so any single-frame position flash is invisible */
.theme-switcher .dropdown-menu.show {
    animation: themeDdIn 0.18s ease-out both;
}

@keyframes themeDdIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.theme-switcher .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm, 6px);
    margin: 2px 0;
    background: transparent;
    border: none;
    color: var(--text-color);
    text-decoration: none;
}

.theme-switcher .dropdown-item i {
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    margin: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-switcher .dropdown-item .theme-option-logo {
    display: block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.theme-switcher .dropdown-item:hover {
    background-color: transparent;
    transform: none;
}

.theme-switcher .dropdown-item:hover i {
    transform: scale(1.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

[data-theme] #main-navbar .theme-switcher .dropdown-item.active,
[data-theme] #main-navbar .theme-switcher .dropdown-item.active:hover,
[data-theme] #main-navbar .theme-switcher .dropdown-item.active:focus {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

[data-theme] #main-navbar .theme-switcher .dropdown-item.active .theme-label {
    color: #ffffff !important;
}

.theme-switcher .dropdown-item.active i {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px var(--surface-color), 0 0 0 4px var(--primary-color);
}

/* Individual theme circular backgrounds */
.theme-option[data-theme="orchedule"] i {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.theme-option[data-theme="sunset"] i {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.theme-option[data-theme="monochrome"] i {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* Theme name labels in dropdown */
.theme-option .theme-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-inline-start: 0.5rem;
    /* direction-aware gap between icon and label */
    white-space: nowrap;
}

/* RTL Support for theme switcher */
[dir="rtl"] .theme-switcher .dropdown-item {
    justify-content: flex-start;
    /* icon on right, label flows left — flex-start is correct in RTL */
}

[dir="rtl"] .theme-switcher .dropdown-item:hover {
    transform: translateX(4px);
    /* shift right (toward the edge) in RTL */
}

body {
    min-height: 100vh;
    background: var(--surface-medium);
    font-family: var(--font-sans, "Inter", "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif);
    /* No overflow-x here: ANY non-visible overflow (auto/clip/hidden) turns
       <body> into a scroll container, and with the page gutter as body padding
       that scroll container can't grow beyond its own padded box — so the page
       can't scroll and the sticky navbar breaks. Viewport scrolling must stay
       on the root. Wide content scrolls inside .app-content / .scrollable-table. */
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* The navbar and content form one continuous, full-viewport application shell. */
.app-shell {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* The body owns the shared page background. Content containers do not paint
    another surface over it. */
.app-content {
    border-radius: 0;
    margin: 0;
    padding: 10px 12px 12px 12px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 70vh;
    overflow-x: auto;
}

/* Borders and shadows preserve separation without adding container fills. */
.app-content .form-create-bg .create-form-inner,
.app-content .form-filter-bg .filter-form-inner,
.app-content .form-select-bg .select-form-inner {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.app-content .form-create-bg .create-form-inner {
    padding: 24px 14px 14px;
}

.app-content .table-responsive,
.app-content .scrollable-table {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 10px);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.app-content .table,
.app-content #lessons-list {
    box-shadow: 0 0 0 1px var(--border-color, #e2e8f0),
        var(--shadow-xs, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.app-content .table-responsive>.table,
.app-content .scrollable-table>table {
    box-shadow: none;
}

[dir="rtl"] body {
    text-align: right;
}

[dir="rtl"] .navbar-nav {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}

/* Disabled accordion button styling */
.accordion-button:disabled {
    background-color: #f8f9fa !important;
    border-color: #dee2e6 !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

.accordion-button:disabled:after {
    display: none;
    /* Hide the arrow on disabled buttons */
}

/* LTR icon spacing */
[dir="ltr"] .nav-link i,
[dir="ltr"] .dropdown-item i {
    margin-right: 8px;
    /* Add space between icon and text in LTR */
    margin-left: 0;
}

[dir="rtl"] .nav-link i,
[dir="rtl"] .dropdown-item i {
    margin-left: 8px;
    /* Add space between icon and text in RTL */
    margin-right: 0;
}

/* RTL fix: Bootstrap me-* utilities compile to physical margin-right, not
   direction-aware. Flip spacing to the correct (left) side for content icons
   and color circles (course dot indicators in tables). */
[dir="rtl"] .btn i,
[dir="rtl"] .cqp-group-label i {
    margin-left: 0.25rem;
    /* space between icon and text in RTL */
    margin-right: 0 !important;
    /* cancel Bootstrap me-* wrong-side margin */
}

/* Color circles are placed before text in LTR; in RTL they appear after text
   so the gap must shift to their left side. */
[dir="rtl"] .color-circle {
    margin-left: 0.5rem !important;
    /* gap between circle and text in RTL */
    margin-right: 0 !important;
    /* cancel Bootstrap me-* and any local margin-right */
}

[dir="rtl"] .dropdown-menu {
    text-align: right;
}

[dir="rtl"] .dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.255em;
}

/* Bootstrap form-select — flip the chevron arrow to the left in RTL
   (Bootstrap LTR CSS hardcodes background-position: right) */
[dir="rtl"] .form-select {
    background-position: left 0.75rem center;
    padding-left: 2.25rem;
    padding-right: 0.75rem;
}

/* Select2 — move the arrow to the left and adjust text padding in RTL */
/* default theme: absolutely-positioned arrow element */
[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__arrow {
    left: 1px;
    right: auto;
}

[dir="rtl"] .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-right: 28px;
    padding-left: 8px;
}

/* bootstrap-5 theme: chevron is a background-image on the selection element
   (the .select2-selection__arrow is display:none in this theme) */
[dir="rtl"] .select2-container--bootstrap-5 .select2-selection--single {
    background-position: left 0.75rem center;
    padding-right: 0.75rem;
    padding-left: 2.25rem;
}

[dir="rtl"] .dropdown-menu-end {
    left: 0;
    right: auto;
}

/* Profile dropdown submenu styling */
.profile-dropdown .dropdown-submenu {
    position: relative;
}

.profile-dropdown .dropdown-submenu>.dropdown-menu {
    position: absolute !important;
    /* override fixed positioning */
    top: 0;
    left: 100%;
    right: auto;
    margin-top: -1px;
    display: none;
    z-index: 1000;
    min-width: 200px;
    max-width: 90vw;
    max-height: 70vh;
    overflow-x: auto;
    overflow-y: auto;
}

.profile-dropdown .dropdown-submenu>.dropdown-menu.show {
    display: block;
}

[dir="rtl"] .profile-dropdown .dropdown-submenu>.dropdown-menu {
    left: auto;
    right: 100%;
    /* Prevent overflow in RTL */
    max-width: 90vw;
    max-height: 70vh;
    overflow-x: auto;
    overflow-y: auto;
}

/* Ensure dropdown items are clickable */
.profile-dropdown .dropdown-submenu .dropdown-item {
    cursor: pointer;
    padding: 0.375rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    background-color: transparent;
    border: 0;
    width: 100%;
    text-align: left;
}

[dir="rtl"] .profile-dropdown .dropdown-submenu .dropdown-item {
    text-align: right;
}

.profile-dropdown .dropdown-submenu .dropdown-item:hover,
.profile-dropdown .dropdown-submenu .dropdown-item:focus {
    background-color: var(--surface-light);
    color: var(--text-dark);
}

/* Dropdown submenu arrow indicator */
.profile-dropdown .dropdown-submenu>.dropdown-toggle::after {
    display: inline-block;
    margin-left: 0.255em;
    vertical-align: 0.255em;
    content: "";
    border-top: 0.3em solid transparent;
    border-right: 0;
    border-bottom: 0.3em solid transparent;
    border-left: 0.3em solid;
    transform: rotate(0deg);
    /* Arrow points right by default */
}

[dir="rtl"] .profile-dropdown .dropdown-submenu>.dropdown-toggle::after {
    margin-left: 0;
    margin-right: 0.255em;
    transform: rotate(180deg);
    /* Arrow points left by default in RTL */
}

/* Ensure dropdown stays inside navbar container */
.profile-dropdown .dropdown-menu {
    box-sizing: border-box;
    max-width: 95vw;
    overflow-x: auto;
}

/* Keep the profile menu inside the viewport, including on narrow screens. */
.profile-dropdown > .dropdown-menu {
    min-width: min(320px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
}

/* When submenu is open, arrow points down */
.profile-dropdown .dropdown-submenu>.dropdown-toggle[aria-expanded="true"]::after,
.profile-dropdown .dropdown-submenu>.dropdown-toggle.active::after,
.profile-dropdown .dropdown-submenu>.dropdown-toggle.show::after {
    transform: rotate(90deg);
}

[dir="rtl"] .profile-dropdown .dropdown-submenu>.dropdown-toggle[aria-expanded="true"]::after,
[dir="rtl"] .profile-dropdown .dropdown-submenu>.dropdown-toggle.active::after,
[dir="rtl"] .profile-dropdown .dropdown-submenu>.dropdown-toggle.show::after {
    transform: rotate(-90deg);
}

[dir="rtl"] .dropdown-item i {
    margin-right: 0;
    margin-left: 8px;
    /* Add space between icon and text in RTL */
}

#main-navbar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
    color: var(--text-white);
    font-size: 0.9rem;
    border-radius: 0 !important;
    box-shadow: none;
    padding: 0.5rem 1.1rem !important;
    min-height: 56px !important;
    /* Keep the bar reachable on long pages at the viewport edge. */
    position: sticky;
    top: 0;
    z-index: 1030;
    /* Only the links group (#navbar-nav) scrolls; controls stay pinned */
    overflow: visible;
    flex-wrap: nowrap;
    gap: 8px;
    white-space: nowrap;
}

/* Links group grows and scrolls horizontally when it overflows */
#main-navbar>#navbar-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
}

/* Right-side controls (language / theme / profile) stay pinned to the end,
   with the same inline inset as the links side (the navbar's own padding). */
#main-navbar>.oc-nav-controls {
    flex: 0 0 auto;
    margin-inline-start: auto;
}

#main-navbar .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    border-radius: var(--radius-sm, 6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.42rem 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#main-navbar .nav-item .nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-white);
}

#main-navbar .nav-item .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    color: var(--text-white);
    box-shadow: inset 0 -2px 0 0 var(--text-white);
}

#main-navbar .nav-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: 2px;
}

.navbar-scrollmenu {
    overflow: visible !important;
    white-space: nowrap;
    display: flex;
    width: max-content;
    min-width: 100%;
}

#main-navbar .navbar-nav,
#main-navbar .nav-item {
    overflow: visible !important;
    white-space: nowrap;
    flex-wrap: nowrap !important;
}

#main-navbar .dropdown-menu {
    position: fixed !important;
    z-index: 2000;
    left: auto;
    right: auto;
    top: auto;
}

/* Custom horizontal scrollbar for the scrollable links group */
#main-navbar>#navbar-nav::-webkit-scrollbar {
    height: 6px;
}

#main-navbar>#navbar-nav::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.35);
    border-radius: 4px;
}

#main-navbar>#navbar-nav::-webkit-scrollbar-track {
    background: transparent;
}

/* For Firefox */
#main-navbar>#navbar-nav {
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scrollbar-width: thin;
}

/* .scrollable is a legacy class on the main content wrapper. Let
   .app-content's own overflow-x govern so wide content scrolls internally. */
.app-content.scrollable {
    overflow-x: auto !important;
}

.scrollable-table {
    max-width: 100%;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    display: block;
}

fieldset {
    border: 1px solid var(--border-color);
    padding: 14px;
    margin-bottom: 20px;
    border-radius: var(--radius-md, 10px);
}

legend {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-color);
    letter-spacing: 0.02em;
}

form input,
form select,
form textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-sm, 6px);
    padding: 10px 14px;
    margin-bottom: 0.5em;
    border: 1.5px solid var(--border-color);
    background: var(--input-bg);
    font-size: 0.925rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    background: var(--input-focus-bg);
    box-shadow: var(--input-focus-shadow, 0 0 0 3px rgba(37, 99, 235, 0.12));
}

button,
.btn {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    margin: 1px;
    border-radius: var(--radius-sm, 6px);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Icon/label spacing. Flex buttons collapse the whitespace between the icon
   and its label, so they need an explicit gap. `me-*`/`ms-*` are physical
   margins that land on the wrong side in RTL — mirror them for icons. */
.btn.d-flex,
.btn.d-inline-flex {
    gap: 0.4rem;
}

[dir="rtl"] i.me-1 {
    margin-right: 0 !important;
    margin-left: 0.25rem !important;
}

[dir="rtl"] i.me-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] i.me-3 {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

[dir="rtl"] i.ms-1 {
    margin-left: 0 !important;
    margin-right: 0.25rem !important;
}

[dir="rtl"] i.ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.btn-primary:hover,
.btn-info:hover {
    background: var(--primary-dark);
    color: var(--text-white);
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
    transform: translateY(-1px);
}

.btn-light {
    background: var(--surface-light);
    color: var(--primary-dark) !important;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.04));
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--surface-medium);
    color: var(--primary-darker) !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--btn-secondary-bg);
    color: var(--btn-secondary-contrast) !important;
    border: none;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--btn-secondary-end);
    color: var(--btn-secondary-contrast) !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
}

.btn-dark {
    background: var(--primary-dark);
    color: var(--text-white) !important;
    border: none;
    box-shadow: var(--shadow-xs, 0 1px 2px rgba(0, 0, 0, 0.04));
}

.btn-dark:hover,
.btn-dark:focus {
    background: var(--primary-darker);
    color: var(--text-white) !important;
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    transform: translateY(-1px);
}

.container,
.container-fluid,
.card,
.modal-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    border-radius: var(--radius-lg, 14px);
}

.card {
    box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.06));
    margin-bottom: 1.5em;
    padding: 1.5em 1.25em;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.07));
}

.main-title {
    font-family: var(--font-display, "Playfair Display", Georgia, "Times New Roman", serif);
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}

.copy-right {
    color: var(--primary-dark);
    text-align: center;
    font-size: 0.88em;
    margin-top: 2em;
    opacity: 0.65;
    letter-spacing: 0.01em;
}

@media (max-width: 600px) {
    .scrollable {
        padding: 16px 6px 14px 6px;
        max-width: 98vw;
    }

    .app-content {
        padding: 14px 8px 12px 8px;
    }

    #main-navbar {
        padding: 0.75rem 0.5rem !important;
        min-height: 52px !important;
        border-radius: 0 !important;
    }

    .card {
        padding: 1em 0.75em;
        border-radius: var(--radius-md, 10px);
    }
}

/* Arabic: force right alignment on textual elements (formerly a
   server-rendered {% if LANGUAGE_CODE == 'ar' %} block). */
html[lang="ar"] :is(body, h1, h2, h3, h4, h5, h6, p, a, li, table, th, td, label, input, select, textarea) {
    text-align: right !important;
}

/* Add space between icon and text in Current Context accordion */
.profile-dropdown .accordion-button i {
    margin-inline-end: 8px;
}

/* Accordion arrow position: LTR (default) right, RTL left */
.accordion-button::after {
    margin-left: auto;
    margin-right: 0;
}

[dir="rtl"] .accordion-button::after {
    margin-left: 0;
    margin-right: auto;
    left: 0;
    right: unset;
}

/* Optional: ensure icon and text spacing is correct in both directions */
.accordion-button i {
    margin-inline-end: 8px;
}

[dir="rtl"] .accordion-button i {
    margin-inline-end: 0;
    margin-inline-start: 8px;
}

/* Action Buttons - Standardized across all templates.
   Colors are pulled from the theme tokens so they follow the active theme
   instead of being hardcoded to Bootstrap defaults. */
.btn-action-edit,
.btn-action-delete,
.btn-action-view {
    border-radius: var(--radius-sm, 6px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.85rem;
    padding: 4px 10px;
}

.btn-action-edit {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-action-edit:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.12));
}

.btn-action-delete {
    color: var(--danger-color);
    border-color: var(--danger-color);
    background-color: transparent;
}

.btn-action-delete:hover {
    color: #fff;
    background-color: var(--danger-color);
    border-color: var(--danger-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.12));
}

.btn-action-view {
    color: var(--success-color);
    border-color: var(--success-color);
    background-color: transparent;
}

.btn-action-view:hover {
    color: #fff;
    background-color: var(--success-color);
    border-color: var(--success-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm, 0 2px 6px rgba(0, 0, 0, 0.12));
}