        /* Target all elements within theme-color-toggle */
        .theme-color-toggle * {
            width: 36px !important;
            height: 36px !important;
            border-radius: 8px !important;
            padding: 0 !important;
            color: transparent !important;
            font-size: 0 !important;
            min-width: 36px !important;
            min-height: 36px !important;
            cursor: pointer !important;
            pointer-events: auto !important;
        }

        .theme-color-toggle *:nth-child(1) { background: #64748b !important; } /* slate */
        .theme-color-toggle *:nth-child(2) { display: none !important; } /* hide gray */
        .theme-color-toggle *:nth-child(3) { background: #71717a !important; } /* zinc */
        .theme-color-toggle *:nth-child(4) { background: #737373 !important; } /* neutral */
        .theme-color-toggle *:nth-child(5) { background: #78716c !important; } /* stone */
        .theme-color-toggle *:nth-child(6) { background: #ef4444 !important; } /* red */
        .theme-color-toggle *:nth-child(7) { background: #f97316 !important; } /* orange */
        .theme-color-toggle *:nth-child(8) { background: #f59e0b !important; } /* amber */
        .theme-color-toggle *:nth-child(9) { background: #eab308 !important; } /* yellow */
        .theme-color-toggle *:nth-child(10) { background: #84cc16 !important; } /* lime */
        .theme-color-toggle *:nth-child(11) { background: #22c55e !important; } /* green */
        .theme-color-toggle *:nth-child(12) { background: #10b981 !important; } /* emerald */
        .theme-color-toggle *:nth-child(13) { background: #14b8a6 !important; } /* teal */
        .theme-color-toggle *:nth-child(14) { background: #06b6d4 !important; } /* cyan */
        .theme-color-toggle *:nth-child(15) { background: #0ea5e9 !important; } /* sky */
        .theme-color-toggle *:nth-child(16) { background: #3b82f6 !important; } /* blue */
        .theme-color-toggle *:nth-child(17) { background: #6366f1 !important; } /* indigo */
        .theme-color-toggle *:nth-child(18) { background: #8b5cf6 !important; } /* violet */
        .theme-color-toggle *:nth-child(19) { background: #a855f7 !important; } /* purple */
        .theme-color-toggle *:nth-child(20) { background: #d946ef !important; } /* fuchsia */
        .theme-color-toggle *:nth-child(21) { background: #ec4899 !important; } /* pink */
        .theme-color-toggle *:nth-child(22) { background: #f43f5e !important; } /* rose */
  /* Selected state - Multiple selectors for better compatibility */
        .theme-color-toggle *[aria-pressed="true"],
        .theme-color-toggle *.selected,
        .theme-color-toggle *[data-state="on"],
        .theme-color-toggle *.fi-active,
        .theme-color-toggle *:checked + *,
        .theme-color-toggle button[aria-pressed="true"],
        .theme-color-toggle label:has(input:checked) {
             border: 1px solid #000 !important;
             border-radius: 9px !important;
             /*box-shadow: 0 0 0 2px #fff, 0 0 0 4px #000 !important;
             */transform: scale(1.1) !important;
             -webkit-border-radius: 9px !important;
             -moz-border-radius: 9px !important;
             -ms-border-radius: 9px !important;
             -o-border-radius: 9px !important;
}

/* Red logout button styling - text and icon */
form[action*="logout"] button.fi-dropdown-list-item {
    color: #ef4444 !important;
}

form[action*="logout"] button.fi-dropdown-list-item:hover {
    color: #dc2626 !important;
}

form[action*="logout"] button.fi-dropdown-list-item .fi-dropdown-list-item-label {
    color: #ef4444 !important;
}

form[action*="logout"] button.fi-dropdown-list-item:hover .fi-dropdown-list-item-label {
    color: #dc2626 !important;
}

form[action*="logout"] button.fi-dropdown-list-item .fi-icon {
    color: #ef4444 !important;
}

form[action*="logout"] button.fi-dropdown-list-item:hover .fi-icon {
    color: #dc2626 !important;
}

/* Permission Checkbox List - Enhanced Design */
.permission-checkbox-list .fi-checkbox-group-options {
    gap: 0.5rem !important;
}

.permission-checkbox-list .fi-checkbox-label {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    background: var(--fi-color-gray-50, #f9fafb) !important;
    border: 1px solid var(--fi-color-gray-200, #e5e7eb) !important;
    border-radius: 0.5rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    gap: 0.5rem !important;
}

.permission-checkbox-list .fi-checkbox-label:hover {
    background: var(--fi-color-primary-50, #eff6ff) !important;
    border-color: var(--fi-color-primary-500, #3b82f6) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.permission-checkbox-list input[type="checkbox"]:checked + .fi-checkbox-label {
    background: var(--fi-color-primary-50, #eff6ff) !important;
    border-color: var(--fi-color-primary-500, #3b82f6) !important;
}

.permission-checkbox-list input[type="checkbox"]:checked + .fi-checkbox-label .fi-checkbox-mark {
    background: var(--fi-color-primary-600, #2563eb) !important;
    border-color: var(--fi-color-primary-600, #2563eb) !important;
}

.permission-checkbox-list input[type="checkbox"]:checked + .fi-checkbox-label .fi-checkbox-mark svg {
    color: white !important;
}

.permission-checkbox-list .fi-checkbox-mark {
    flex-shrink: 0 !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    border-radius: 0.25rem !important;
}

.permission-checkbox-list .fi-checkbox-label-text {
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    color: var(--fi-color-gray-700, #374151) !important;
}

.dark .permission-checkbox-list .fi-checkbox-label-text {
    color: var(--fi-color-gray-300, #d1d5db) !important;
}

/* Grid layout improvements */
.permission-checkbox-list .fi-checkbox-group-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
}

/* ==========================================================================
   Content Editor Output Styles - For dynamic pages
   ========================================================================== */
.content-editor-output p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

.content-editor-output h2,
.content-editor-output h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.content-editor-output h2 {
    font-size: 1.5rem;
}

.content-editor-output h3 {
    font-size: 1.25rem;
}

.content-editor-output blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1rem;
    margin: 1rem 0;
    color: #6b7280;
}

/* ==========================================================================
   Simple Settings Pages Layout - Sidebar + Card
   ========================================================================== */
.settings-simple-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.settings-sidebar-card {
    background: var(--fi-color-white, #ffffff);
    border: 1px solid var(--fi-color-gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .settings-sidebar-card {
    background: var(--fi-color-gray-900, #111827);
    border-color: var(--fi-color-gray-800, #1f2937);
}

.settings-sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fi-color-gray-500, #6b7280);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fi-color-gray-200, #e5e7eb);
}

.dark .settings-sidebar-title {
    color: var(--fi-color-gray-400, #9ca3af);
    border-bottom-color: var(--fi-color-gray-700, #374151);
}

.settings-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-sidebar-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--fi-color-gray-700, #374151);
    text-decoration: none;
    transition: all 0.15s ease;
}

.dark .settings-sidebar-nav a {
    color: var(--fi-color-gray-300, #d1d5db);
}

.settings-sidebar-nav a:hover {
    background: var(--fi-color-gray-50, #f9fafb);
    color: var(--fi-color-primary-600, #4f46e5);
}

.dark .settings-sidebar-nav a:hover {
    background: var(--fi-color-gray-800, #1f2937);
    color: var(--fi-color-primary-400, #818cf8);
}

.settings-sidebar-nav a.active {
    background: var(--fi-color-primary-50, #eef2ff);
    color: var(--fi-color-primary-700, #4338ca);
}

.dark .settings-sidebar-nav a.active {
    background: var(--fi-color-primary-950, #1e1b4b);
    color: var(--fi-color-primary-400, #818cf8);
}

.settings-main-card {
    background: var(--fi-color-white, #ffffff);
    border: 1px solid var(--fi-color-gray-200, #e5e7eb);
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dark .settings-main-card {
    background: var(--fi-color-gray-900, #111827);
    border-color: var(--fi-color-gray-800, #1f2937);
}

@media (max-width: 1024px) {
    .settings-simple-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Landing Page Settings - Hide horizontal tabs, use sidebar instead
   ========================================================================== */
.landing-page-form .fi-tabs {
    display: none !important;
}

/* ==========================================================================
   Landing Page Settings Sidebar Icons
   ========================================================================== */
.landing-sidebar-nav a {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.landing-sidebar-nav a svg {
    flex-shrink: 0;
    color: var(--fi-color-gray-400, #9ca3af);
    transition: color 0.15s ease;
}

.landing-sidebar-nav a:hover svg,
.landing-sidebar-nav a.active svg {
    color: inherit;
}

/* ==========================================================================
   Landing Page Settings - Flatten sections and sticky save
   ========================================================================== */
.landing-page-form .fi-section {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1.5rem !important;
}

.landing-page-form .fi-section-header {
    background: transparent !important;
    border: none !important;
    padding: 0 0 0.5rem 0 !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid var(--fi-color-gray-200, #e5e7eb) !important;
}

.dark .landing-page-form .fi-section-header {
    border-bottom-color: var(--fi-color-gray-700, #374151) !important;
}

.landing-page-form .fi-section-header-heading {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--fi-color-gray-800, #1f2937) !important;
}

.dark .landing-page-form .fi-section-header-heading {
    color: var(--fi-color-gray-100, #f3f4f6) !important;
}

.landing-page-form .fi-section-content {
    padding: 0 !important;
}

.landing-page-form .fi-tabs {
    display: none !important;
}

.landing-save-bar {
    margin-top: 1.5rem;
    padding: 1rem 0;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   Landing Page Settings - Sticky sidebar
   ========================================================================== */
.landing-page-layout .settings-sidebar-card {
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
}

/* ==========================================================================
   Settings Pages - Save bar (non-sticky)
   ========================================================================== */
.settings-save-bar,
.landing-save-bar {
    margin-top: 1.5rem;
    padding: 1rem 0;
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   Two-Factor Authentication Components
   ========================================================================== */

/* Setup Instructions */
.twofa-setup-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.twofa-setup-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twofa-setup-number {
    width: 24px;
    height: 24px;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.twofa-setup-text {
    color: #374151;
    line-height: 1.5;
}

/* QR Code */
.twofa-qr-code img {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* Manual Entry */
.twofa-manual-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.twofa-secret-key {
    background: #f3f4f6;
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    flex: 1;
    word-break: break-all;
}

.twofa-copy-btn {
    padding: 8px 12px;
    background: #4f46e5;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.twofa-copy-btn:hover {
    background: #4338ca;
}

.twofa-manual-hint {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Status Banner */
.twofa-status-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.twofa-status-banner svg {
    width: 20px;
    height: 20px;
    color: #16a34a;
    flex-shrink: 0;
}

.twofa-status-text {
    color: #16a34a;
    font-weight: 500;
}

/* 2FA Setup Number - uses CSS custom property for dynamic theme color */
.twofa-setup-number {
    background: var(--twofa-theme-color, #3b82f6);
}

/* ==========================================================================
   Two-Factor Authentication - Header Action Buttons
   ========================================================================== */
.twofa-action-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   Auth Pages - Dynamic Theme Color Support
   ========================================================================== */

/* ==========================================================================
   Auth Pages - Dynamic Theme Color Support
   Uses --theme-color defined in layout.blade.php <style>:root
   ========================================================================== */

.auth-input-ring:focus {
    --tw-ring-color: var(--theme-color) !important;
}

.auth-link {
    color: var(--theme-color);
}

.auth-btn {
    background-color: var(--theme-color);
}

.auth-btn:hover {
    background-color: var(--theme-color);
    filter: brightness(0.9);
}

.auth-checkbox {
    color: var(--theme-color);
}

.auth-gradient-bg {
    background: linear-gradient(135deg, var(--theme-color-22, rgba(59,130,246,0.13)) 0%, var(--theme-color-44, rgba(59,130,246,0.27)) 100%);
}

.auth-gradient-overlay {
    background: linear-gradient(135deg, var(--theme-color-ee, rgba(59,130,246,0.93)) 0%, var(--theme-color-bb, rgba(59,130,246,0.73)) 100%);
}

.auth-gradient-full {
    background: linear-gradient(135deg, var(--theme-color) 0%, var(--theme-color-dd, rgba(59,130,246,0.87)) 100%);
}

/* ==========================================================================
   Landing & Page Layout - Dynamic Theme Color Support
   ========================================================================== */

.landing-theme-wrapper,
.page-theme-wrapper {
    --cms-main-bg: var(--cms-main-bg, #7369dd);
    --cms-light-bg: var(--cms-light-bg, #f9fafb);
    --cms-text-color: var(--cms-text-color, #111827);
    --cms-heading-color: var(--cms-heading-color, #111827);
}

.cms-bg-main {
    background-color: var(--cms-main-bg);
}

.cms-bg-main-20 {
    background-color: var(--cms-main-bg-20, rgba(115, 105, 221, 0.125));
}

.cms-bg-main-30 {
    background-color: var(--cms-main-bg-30, rgba(115, 105, 221, 0.188));
}

.cms-bg-light {
    background-color: var(--cms-light-bg);
}

.cms-text-main {
    color: var(--cms-main-bg);
}

.cms-text-heading {
    color: var(--cms-heading-color);
}

.cms-gradient-hero {
    background: linear-gradient(to right, var(--cms-main-bg), var(--cms-main-bg-dd, rgba(115, 105, 221, 0.867)));
}

.cms-gradient-bottom-right {
    background: linear-gradient(to bottom right, var(--cms-main-bg), var(--cms-main-bg-dd, rgba(115, 105, 221, 0.867)));
}

.cms-gradient-bottom-right-fade {
    background: linear-gradient(to bottom right, var(--cms-main-bg-20, rgba(115, 105, 221, 0.125)), white);
}

.cms-gradient-top-border {
    background: linear-gradient(to right, var(--cms-main-bg), var(--cms-main-bg-aa, rgba(115, 105, 221, 0.667)), var(--cms-main-bg));
}

.cms-gradient-step {
    background: linear-gradient(to bottom right, var(--cms-main-bg), var(--cms-main-bg-aa, rgba(115, 105, 221, 0.667)));
}

/* ==========================================================================
   Cookie Banner - Dynamic Theme Color Support
   ========================================================================== */

.cookie-theme-wrapper {
    --cookie-theme-color: var(--theme-color, #3b82f6);
    --cookie-theme-color-20: var(--theme-color-20, rgba(59, 130, 246, 0.125));
}

.cookie-icon-bg {
    background-color: var(--cookie-theme-color-20);
}

.cookie-icon-color {
    color: var(--cookie-theme-color);
}

.cookie-link {
    color: var(--cookie-theme-color);
}

.cookie-btn-primary {
    background-color: var(--cookie-theme-color);
}

/* ==========================================================================
   Filament Admin Panel - Logo Styles
   ========================================================================== */

.fi-logo {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    width: 120px;
    height: 40px;
    cursor: pointer;
}

.fi-logo-wrap {
    display: contents;
}

/* Font Family Override — Admin Panel only, NOT landing/front pages */
.fi-admin-font,
.fi-admin-font *,
.fi-body,
.fi-main,
.fi-sidebar,
.fi-header,
.fi-navigation,
.fi-section,
.fi-form,
.fi-table,
.fi-btn,
.fi-input,
.fi-select,
.fi-textarea {
    font-family: var(--admin-font-family, 'Uni Neue'), system-ui, sans-serif !important;
}

/* Pagination */
.fi-pagination {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.fi-pagination-overview {
    order: 1 !important;
    visibility: visible !important;
}

.fi-pagination-next-btn {
    order: 2 !important;
}

.fi-pagination-items {
    order: 3 !important;
    margin-left: auto !important;
}

/* Form Actions */
.fi-ac.fi-align-end {
    justify-content: flex-end !important;
}

/* Sticky Form Actions — card footer style */
.fi-form-actions {
    background-color: var(--fi-color-white, #fff) !important;
    border-top: 1px solid var(--fi-color-gray-200, #e5e7eb) !important;
    padding: 1rem 1.5rem !important;
    margin-top: 0 !important;
    border-radius: 0 0 0.5rem 0.5rem !important;
    box-shadow: 0 -1px 4px 0 rgba(0,0,0,0.04) !important;
}

/* Avatar */
.fi-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.fi-dropdown-trigger .fi-avatar {
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
}

.dark .fi-dropdown-trigger .fi-avatar {
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   Landing Page - Static Styles
   ========================================================================== */

.landing-body {
    font-family: var(--landing-font-family, 'DM Sans'), sans-serif !important;
    color: var(--cms-text-color, #111827);
}

.landing-body * {
    font-family: var(--landing-font-family, 'DM Sans'), sans-serif !important;
}

.landing-gradient-hero {
    background: var(--cms-main-bg, #7369dd);
}

.landing-text-primary {
    color: var(--cms-main-bg, #7369dd);
}

.landing-bg-primary {
    background-color: var(--cms-main-bg, #7369dd);
}

.landing-bg-primary-light {
    background-color: var(--cms-main-bg-20, rgba(115, 105, 221, 0.125));
}

.landing-card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.landing-card-hover:hover {
    transform: translateY(-8px);
}

.landing-glow {
    box-shadow: 0 0 40px var(--cms-main-bg-30, rgba(115, 105, 221, 0.188));
}

/* ==========================================================================
   Page Layout - Toast Notification
   ========================================================================== */

.page-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: toastSlideIn 0.3s ease-out;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.page-toast.hide {
    animation: toastSlideOut 0.3s ease-out forwards;
}

/* ==========================================================================
   Auth Layout - Dark Mode Variables
   ========================================================================== */

.auth-dark-root {
    --gray-950: rgb(3 7 18);
    --gray-900: #18181b;
    --gray-800: rgb(31 41 55);
}

.auth-dark-bg {
    background-color: var(--gray-950) !important;
}

.auth-dark-bg-white {
    background-color: var(--gray-900) !important;
}

.auth-dark-bg-gray-50 {
    background-color: var(--gray-950) !important;
}

.auth-dark-bg-gray-700 {
    background-color: #242427 !important;
}

/* ==========================================================================
   Auth Layout - SVG Animations
   ========================================================================== */

@keyframes svgDashAnimation {
    to { stroke-dashoffset: -16; }
}

@keyframes svgPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes svgPulseDelayed {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

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

.svg-animated-border {
    animation: svgDashAnimation 0.7s linear infinite;
}

.svg-pulse {
    animation: svgPulse 2s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.svg-pulse-delayed {
    animation: svgPulseDelayed 3.5s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.svg-rotate {
    animation: svgRotate 4s linear infinite;
    transform-origin: center;
    transform-box: fill-box;
}

/* ==========================================================================
   CRUD Generator Wizard - Show form actions only on last step (step 4)
   Steps 1-3: only wizard Next/Previous buttons
   Step 4: Previous + Create + Cancel
   ========================================================================== */

/* Hide form actions by default inside wizard forms (CRUD Generator only) */
.fi-resource-create-record-page.fi-resource-generators .fi-sc-form .fi-sc-actions,
.fi-resource-edit-record-page.fi-resource-generators .fi-sc-form .fi-sc-actions {
    display: none !important;
}

/* Show form actions only when wizard is on the last (4th) step (CRUD Generator only) */
.fi-resource-create-record-page.fi-resource-generators .fi-sc-form:has(.fi-sc-wizard-header-step:nth-child(4).fi-active) .fi-sc-actions,
.fi-resource-edit-record-page.fi-resource-generators .fi-sc-form:has(.fi-sc-wizard-header-step:nth-child(4).fi-active) .fi-sc-actions {
    display: flex !important;
}

/* ==========================================================================
   Generated CRUD Table Action Buttons - Outlined button styling
   ========================================================================== */

/* Make outlined action buttons smaller and consistent */
.fi-ta-actions .fi-btn.fi-outlined {
    padding: 0.375rem !important;
    min-height: 2rem !important;
    min-width: 2rem !important;
}

/* Hide button label for icon-only actions */
.fi-ta-actions .fi-btn .fi-btn-label {
    display: none !important;
}

/* ==========================================================================
   DYNAMIC CSS VARIABLES - Set via JavaScript from Blade
   ========================================================================== */

/* Landing Page Dynamic Theme */
.landing-theme-wrapper {
    --cms-main-bg: var(--dynamic-main-bg, #7369dd);
    --cms-light-bg: var(--dynamic-light-bg, #f9fafb);
    --cms-text-color: var(--dynamic-text-color, #111827);
    --cms-heading-color: var(--dynamic-heading-color, #111827);
    --cms-main-bg-20: var(--dynamic-main-bg-20, rgba(115, 105, 221, 0.125));
    --cms-main-bg-30: var(--dynamic-main-bg-30, rgba(115, 105, 221, 0.188));
    --cms-main-bg-aa: var(--dynamic-main-bg-aa, rgba(115, 105, 221, 0.667));
    --cms-main-bg-dd: var(--dynamic-main-bg-dd, rgba(115, 105, 221, 0.867));
    --landing-font-family: var(--dynamic-font-family, 'DM Sans');
}

/* Page Layout Dynamic Theme */
.page-theme-wrapper {
    --cms-main-bg: var(--dynamic-main-bg, #7369dd);
    --cms-light-bg: var(--dynamic-light-bg, rgba(115, 105, 221, 0.03));
    --cms-text-color: var(--dynamic-text-color, #111827);
    --cms-heading-color: var(--dynamic-heading-color, #111827);
    --cms-main-bg-20: var(--dynamic-main-bg-20, rgba(115, 105, 221, 0.125));
    --cms-main-bg-30: var(--dynamic-main-bg-30, rgba(115, 105, 221, 0.188));
    --cms-main-bg-aa: var(--dynamic-main-bg-aa, rgba(115, 105, 221, 0.667));
    --cms-main-bg-dd: var(--dynamic-main-bg-dd, rgba(115, 105, 221, 0.867));
    --landing-font-family: var(--dynamic-font-family, 'DM Sans');
}

/* Auth Layout Dynamic Theme */
.auth-dynamic-theme {
    --theme-color: var(--dynamic-theme-color, #3b82f6);
    --theme-color-20: var(--dynamic-theme-color-20, rgba(59, 130, 246, 0.125));
    --theme-color-cc: var(--dynamic-theme-color-cc, rgba(59, 130, 246, 0.8));
    --theme-color-e6: var(--dynamic-theme-color-e6, rgba(59, 130, 246, 0.9));
    --theme-color-22: var(--dynamic-theme-color-22, rgba(59, 130, 246, 0.13));
    --theme-color-44: var(--dynamic-theme-color-44, rgba(59, 130, 246, 0.27));
    --theme-color-ee: var(--dynamic-theme-color-ee, rgba(59, 130, 246, 0.93));
    --theme-color-bb: var(--dynamic-theme-color-bb, rgba(59, 130, 246, 0.73));
    --theme-color-dd: var(--dynamic-theme-color-dd, rgba(59, 130, 246, 0.87));
}

/* Cookie Banner Dynamic Theme */
.cookie-dynamic-theme {
    --theme-color: var(--dynamic-theme-color, #3b82f6);
    --theme-color-20: var(--dynamic-theme-color-20, rgba(59, 130, 246, 0.125));
}

/* Custom Login Dynamic Theme */
.custom-login-theme {
    --theme-color: var(--dynamic-theme-color, #3b82f6);
}

/* Disable logo click redirect */
.fi-logo,
.fi-logo-wrap,
.fi-logo-wrap a,
a.fi-logo {
    pointer-events: none !important;
    cursor: default !important;
}


/* ============================================================
   MODAL / SLIDE-OVER DESIGN IMPROVEMENTS
   ============================================================ */

/* Modal header - better styling */
.fi-modal-header {
    padding: 1.25rem 1.5rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: linear-gradient(to right, #f9fafb, #ffffff) !important;
}

.dark .fi-modal-header {
    border-bottom-color: #374151 !important;
    background: linear-gradient(to right, #1f2937, #111827) !important;
}

.fi-modal-header-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    letter-spacing: -0.025em !important;
}

.dark .fi-modal-header-heading {
    color: #f9fafb !important;
}

/* Modal content padding */
.fi-modal-content {
    padding: 1.5rem !important;
}

/* Section styling inside modal */
.fi-modal-content .fi-section {
    border: 1px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 1rem !important;
    overflow: hidden !important;
}

.dark .fi-modal-content .fi-section {
    border-color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.fi-modal-content .fi-section-header {
    padding: 0.875rem 1.25rem !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.dark .fi-modal-content .fi-section-header {
    background: #1f2937 !important;
    border-bottom-color: #374151 !important;
}

.fi-modal-content .fi-section-header-heading {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
}

.dark .fi-modal-content .fi-section-header-heading {
    color: #e5e7eb !important;
}

.fi-modal-content .fi-section-header-description {
    font-size: 0.8125rem !important;
    color: #6b7280 !important;
    margin-top: 0.125rem !important;
}

.dark .fi-modal-content .fi-section-header-description {
    color: #9ca3af !important;
}

/* CheckboxList grid improvements */
.fi-modal-content .fi-fo-checkbox-list {
    padding: 1rem 1.25rem !important;
}

.fi-modal-content .fi-fo-checkbox-list-options {
    gap: 0.5rem 1rem !important;
}

.fi-modal-content .fi-fo-checkbox-list-option {
    padding: 0.5rem 0.75rem !important;
    border-radius: 0.5rem !important;
    transition: all 0.15s ease !important;
}

.fi-modal-content .fi-fo-checkbox-list-option:hover {
    background-color: #f3f4f6 !important;
}

.dark .fi-modal-content .fi-fo-checkbox-list-option:hover {
    background-color: #374151 !important;
}

.fi-modal-content .fi-fo-checkbox-list-option-label {
    font-size: 0.875rem !important;
    color: #4b5563 !important;
    font-weight: 500 !important;
}

.dark .fi-modal-content .fi-fo-checkbox-list-option-label {
    color: #d1d5db !important;
}

/* TextInput read-only styling in view mode */
.fi-modal-content .fi-fo-text-input input:read-only,
.fi-modal-content .fi-fo-text-input input[disabled] {
    background-color: #f9fafb !important;
    color: #374151 !important;
    font-weight: 500 !important;
    border-color: #d1d5db !important;
}

.dark .fi-modal-content .fi-fo-text-input input:read-only,
.dark .fi-modal-content .fi-fo-text-input input[disabled] {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #4b5563 !important;
}

/* Modal footer */
.fi-modal-footer {
    padding: 1rem 1.5rem !important;
    border-top: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.dark .fi-modal-footer {
    border-top-color: #374151 !important;
    background: #1f2937 !important;
}

/* Close button */
.fi-modal-close-btn {
    color: #6b7280 !important;
    transition: color 0.15s ease !important;
}

.fi-modal-close-btn:hover {
    color: #111827 !important;
}

.dark .fi-modal-close-btn {
    color: #9ca3af !important;
}

.dark .fi-modal-close-btn:hover {
    color: #f9fafb !important;
}


/* Compact Delete Confirmation Modal */
/* Global Compact Modal Styling (All Delete & Confirmation Modals) */
.fi-modal-window .fi-modal-header {
    padding-bottom: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
}

.fi-modal-window .fi-modal-icon {
    background: transparent !important;
    margin-bottom: 0.5rem !important;
}

.fi-modal-window .fi-modal-heading {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.fi-modal-window .fi-modal-content,
.fi-modal-window .fi-modal-body {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    background: transparent !important;
}

.fi-modal-window .fi-modal-description {
    font-size: 0.875rem !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.fi-modal-window .fi-modal-footer {
    padding-top: 0.75rem !important;
    border-top: none !important;
    background: transparent !important;
    margin-top: 0 !important;
}

.fi-modal-window .fi-modal-footer-actions {
    gap: 0.75rem !important;
}

.fi-modal-window {
    border-radius: 1rem !important;
}

/* Global Modal Footer - Side by Side 50/50 Buttons */
.fi-modal-window .fi-modal-footer-actions {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
}

.fi-modal-window .fi-modal-footer-actions > * {
    flex: 1 1 0% !important;
    width: 50% !important;
}

.fi-modal-window .fi-modal-footer-actions button,
.fi-modal-window .fi-modal-footer-actions a {
    width: 100% !important;
    justify-content: center !important;
}
