/* public/css/style.css */

:root {
    /* Pure Colors */
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;

    /* Theme Variables - Light Mode */
    --app-bg: #f9fafb;
    --app-surface: #ffffff;
    --app-border: #e5e7eb;
    --app-text-main: #111827;
    --app-text-muted: #6b7280;

    /* Layout - Sidebar Widths */
    --sidebar-left-width: 270px;
    --sidebar-right-width: 300px;
    --transition-speed: 250ms;
    --header-height: 64px;

    /* Branding */
    --brand-primary: var(--primary-600);
    --brand-hover: var(--primary-700);
}

.dark {
    --app-bg: #121212;
    --app-surface: #1e1e1e;
    --app-border: #2e2e2e;
    --app-text-main: #e5e7eb;
    --app-text-muted: #a3a3a3;

    --brand-primary: #3b82f6;
    --brand-hover: #60a5fa;
}

/* Fix for date icons in dark mode */
.dark input[type="date"]::-webkit-calendar-picker-indicator,
.dark input[type="time"]::-webkit-calendar-picker-indicator,
.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.6;
    cursor: pointer;
}

.dark input[type="date"]::-webkit-calendar-picker-indicator:hover,
.dark input[type="time"]::-webkit-calendar-picker-indicator:hover,
.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

body {
    background-color: var(--app-bg);
    color: var(--app-text-main);
}

/* Global Table Styles */
table tr:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
    transition: background-color 200ms ease;
}

.dark table tr:hover {
    background-color: rgba(255, 255, 255, 0.04) !important;
}

table thead tr {
    background-color: rgba(0, 0, 0, 0.015) !important;
}

.dark table thead tr {
    background-color: rgba(255, 255, 255, 0.02) !important;
}

/* Translucent Backgrounds Stability */
.bg-brand-primary-light {
    background-color: rgba(37, 99, 235, 0.08);
    /* brand-primary/8 */
}

.dark .bg-brand-primary-light {
    background-color: rgba(59, 130, 246, 0.12);
}

.bg-green-light {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-red-light {
    background-color: rgba(239, 68, 68, 0.1);
}

/* Explicit Utility Classes to prevent FOUC */
.bg-app-bg {
    background-color: var(--app-bg);
}

.bg-auth-body {
    background: url(../images/fundo.png);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.bg-auth-main {
    background: rgba(255, 255, 255, 0.1);
}

.bg-app-surface {
    background-color: var(--app-surface);
}

.border-app-border {
    border-color: var(--app-border);
}

.text-text-main {
    color: var(--app-text-main);
}

.text-text-muted {
    color: var(--app-text-muted);
}

/* Translucent Backgrounds Stability */
.bg-brand-primary-light {
    background-color: rgba(37, 99, 235, 0.08);
    /* brand-primary/8 */
}

.dark .bg-brand-primary-light {
    background-color: rgba(59, 130, 246, 0.12);
}

.bg-green-light {
    background-color: rgba(34, 197, 94, 0.1);
}

.bg-red-light {
    background-color: rgba(239, 68, 68, 0.1);
}

.bg-gray-subtle {
    background-color: rgba(0, 0, 0, 0.03);
}

.dark .bg-gray-subtle {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-blue-light {
    background-color: rgba(59, 130, 246, 0.08);
}

.dark .bg-blue-light {
    background-color: rgba(59, 130, 246, 0.12);
}

.bg-yellow-light {
    background-color: rgba(234, 179, 8, 0.08);
}

.dark .bg-yellow-light {
    background-color: rgba(234, 179, 8, 0.12);
}

.bg-purple-light {
    background-color: rgba(168, 85, 247, 0.08);
}

.dark .bg-purple-light {
    background-color: rgba(168, 85, 247, 0.12);
}

.bg-amber-light {
    background-color: rgba(245, 158, 11, 0.08);
}

.dark .bg-amber-light {
    background-color: rgba(245, 158, 11, 0.12);
}

/* Divider & Border Stability */
.divide-app-border> :not([hidden])~ :not([hidden]) {
    border-color: var(--app-border) !important;
}

.border-app-border {
    border-color: var(--app-border) !important;
}

.sidebar-transition {
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-left {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-left-width);
    z-index: 50;
    transform: translateX(0);
}

.sidebar-left.hidden-mobile {
    transform: translateX(-100%);
}

.sidebar-label {
    transition: opacity var(--transition-speed);
    font-size: 14px;
}


/* Force expanded on mobile drawer */
@media (max-width: 767px) {
    .sidebar-left.visible-mobile .sidebar-label {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
    }
}

.sidebar-item:hover,
[data-submenu-toggle]:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.dark .sidebar-item:hover,
.dark [data-submenu-toggle]:hover {
    background-color: rgba(255, 255, 255, 0.06);
}

/* Sidebar Active State */
.sidebar-item.active,
.sidebar-item.is-active {
    background-color: var(--brand-primary) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.sidebar-item-active-light {
    background-color: rgba(37, 99, 235, 0.08);
    /* Light blue brand-primary/8 */
    color: var(--brand-primary);
}

.dark .sidebar-item-active-light {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

/* Global Icon/Button Hover Fixes */
.hover-bg-subtle:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

.dark .hover-bg-subtle:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.hover-bg-brand-light:hover {
    background-color: rgba(37, 99, 235, 0.08) !important;
    color: var(--brand-primary) !important;
}

.dark .hover-bg-brand-light:hover {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

/* Header & Toggle Stability */
#theme-toggle {
    background-color: transparent !important;
}

#theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

.dark #theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Force expanded styles on mobile drawer regardless of .collapsed class */
@media (max-width: 767px) {

    /* Apply base padding to all sidebar containers on mobile */
    .sidebar-left.visible-mobile .p-4 {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    .sidebar-left.visible-mobile a {
        width: 100% !important;
        height: auto !important;
        padding: 0.85rem 1rem !important;
        margin: 0.25rem 0 !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 12px !important;
    }

    .sidebar-left.visible-mobile .sidebar-label {
        opacity: 1 !important;
        width: auto !important;
        overflow: visible !important;
        pointer-events: auto !important;
        display: block !important;
    }

    /* Fix bottom section on mobile */
}


/* User Menu Dropdown (FIXED FLOATING) */
#user-menu-dropdown {
    position: fixed;
    width: 190px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.25);
    z-index: 500;
    /* Higher than sidebars */
    overflow: hidden;
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    /* Force display since we use opacity */
}

#user-menu-dropdown.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dark #user-menu-dropdown {
    background: rgba(28, 28, 28, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
}

.dropdown-header {
    padding: 10px 16px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    /* Even more compact */
    font-size: 13px;
    font-weight: 500;
    color: var(--app-text-main);
    transition: all 0.15s;
}

.dropdown-item:hover {
    background-color: var(--brand-primary);
    color: white;
}

.dropdown-item.danger:hover {
    background-color: #ef4444;
}

/* Tooltip Styling removed */


/* Sidebar right overlap */
.sidebar-right {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    right: 0;
    width: var(--sidebar-right-width);
    z-index: 45;
    transform: translateX(0);
    box-shadow: -10px 0 15px -3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
    .sidebar-right {
        top: 0 !important;
        height: 100% !important;
        width: 280px !important;
        z-index: 101;
        /* Higher than header on mobile */
    }
}

.sidebar-right.hidden {
    transform: translateX(100%);
    opacity: 0;
}

.main-wrapper {
    margin-top: var(--header-height);
    margin-left: var(--sidebar-left-width);
    transition: margin-left var(--transition-speed) ease;
    width: 100%;
}



/* Mobile Responsiveness - Remove reserved space */
@media (max-width: 767px) {

    .main-wrapper {
        margin-left: 0 !important;
    }

    .sidebar-left {
        top: 0 !important;
        /* Starts from very top */
        height: 100% !important;
        z-index: 100;
        transform: translateX(-100%);
        /* Hidden by default on mobile */
        width: 280px !important;
        /* Fixed width on mobile drawer */
    }

    .sidebar-left.visible-mobile {
        transform: translateX(0);
        box-shadow: 10px 0 15px -3px rgba(0, 0, 0, 0.1);
    }

    /* Reset mobile internal padding for drawer header */
    .sidebar-left.visible-mobile .p-4:first-of-type {
        padding-top: 1rem !important;
    }
}

/* Desktop Fix: Hide Mobile Close Buttons */
@media (min-width: 768px) {
    #close-mobile-sidebar {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    [data-close-sidebar] {
        display: none !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--app-border);
    border-radius: 10px;
}


/* Hamburger Animation */
#toggle-sidebar-left.active .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

#toggle-sidebar-left.active .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#toggle-sidebar-left.active .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.dark .hamburger-bar {
    background-color: var(--app-text-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--app-text-muted);
}

/* Submenu Styles */
.sidebar-submenu {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 300ms ease, opacity 300ms ease, margin 300ms ease;
    margin-top: 0;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}

.dark .sidebar-submenu {
    background-color: rgba(255, 255, 255, 0.06);
}

.sidebar-submenu.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-submenu>div {
    min-height: 0;
}

.sidebar-submenu-item {
    position: relative;
    padding: 0.65rem 1.25rem;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
    font-weight: 400;
    color: var(--app-text-muted);
    transition: all 0.15s ease;
}

.sidebar-submenu-item:hover {
    color: var(--brand-primary);
    background-color: rgba(59, 130, 246, 0.05);
}

.sidebar-submenu-item.active {
    color: var(--brand-primary);
    background-color: rgba(59, 130, 246, 0.12);
    font-weight: 500;
}

.sidebar-submenu-item svg {
    display: none;
}

.dropdown-arrow {
    transition: rotate 0.2s ease, transform 0.2s ease;
}

.dropdown-arrow.is-rotated {
    rotate: 180deg;
}

/* Active state for submenu parent when child is active */
.submenu-parent.has-active-child>button {
    background-color: var(--brand-primary) !important;
    color: white !important;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.25);
}

.submenu-parent.has-active-child>button svg {
    color: white !important;
}

/* Fly-out Submenu (Collapsed Mode) */


/* --- Custom Select --- */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.625rem 1rem;
    background-color: var(--app-bg);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    /* rounded-xl */
    color: var(--app-text-main);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.custom-select-trigger:hover {
    border-color: var(--app-text-muted);
}

.custom-select-container.open .custom-select-trigger {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.custom-select-value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.custom-select-arrow {
    transition: transform 0.2s;
    color: var(--app-text-muted);
}

.custom-select-container.open .custom-select-arrow {
    transform: rotate(180deg);
}

.custom-select-container.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.05);
}

.custom-select-container.disabled .custom-select-trigger {
    pointer-events: none;
    background-color: transparent !important;
}

.custom-options-container {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: var(--app-surface);
    border: 1px solid var(--app-border);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    /* High z-index to sit on top of everything */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

/* Ensure modal content allows overflow for dropdowns */
/* We target the container that likely has overflow-hidden */
.bg-app-surface.w-full.max-w-lg.rounded-2xl.overflow-hidden,
.bg-app-surface.w-full.max-w-xl.rounded-2xl.overflow-hidden {
    overflow: visible !important;
}

/* Also ensure the scrolling part of the modal allows overflow if needed,
   OR we just accept that 'overflow: visible' on the main card is key.
   If the modal body scroll independently, we might have issues.
   For now, strictly removing 'overflow-hidden' from the main modal card wrapper
   should allow the absolute positioned dropdown to pop out.
*/

.custom-select-container.open .custom-options-container {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-search {
    padding: 0.75rem;
    border-bottom: 1px solid var(--app-border);
    background-color: var(--app-surface);
    border-radius: 0.75rem 0.75rem 0 0;
}

.custom-select-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--app-border);
    border-radius: 0.5rem;
    background-color: var(--app-bg);
    color: var(--app-text-main);
    font-size: 0.875rem;
    outline: none;
}

.custom-select-search input:focus {
    border-color: var(--brand-primary);
}

.custom-options-list {
    overflow-y: auto;
    padding: 0.5rem 0;
    flex: 1;
}

/* Fix scrollbar inside options */
.custom-options-list::-webkit-scrollbar {
    width: 4px;
}

.custom-options-list::-webkit-scrollbar-thumb {
    background: var(--app-border);
    border-radius: 4px;
}

.custom-option {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: var(--app-text-main);
    cursor: pointer;
    transition: background-color 0.15s;
    display: flex;
    justify-content: flex-start;
    /* Changed from space-between */
    gap: 0.75rem;
    /* Space between checkbox and text */
    align-items: center;
}

.custom-option:hover {
    background-color: rgba(59, 130, 246, 0.05);
    /* Lighter hover */
}

.custom-option.selected {
    background-color: transparent;
    /* Remove background on selected row, focus on checkbox */
    color: var(--app-text-main);
    font-weight: 500;
}

.custom-option.hidden {
    display: none;
}

/* Checkbox specific styles */
.custom-option .custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid var(--app-border);
    border-radius: 4px;
    /* Default to checkbox (rounded square) */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background-color: var(--app-surface);
}

.custom-option:hover .custom-checkbox {
    border-color: var(--app-text-muted);
}

.custom-option.selected .custom-checkbox {
    background-color: var(--brand-primary);
    /* Use system primary color */
    border-color: var(--brand-primary);
}

.custom-option .custom-checkbox svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    stroke-width: 3px;
}

.custom-option.selected .custom-checkbox svg {
    opacity: 1;
    transform: scale(1);
}

/* Radio specific styles (for single select) */
.custom-option .custom-radio {
    border-radius: 50%;
    /* Circular */
}

.custom-option .custom-radio svg {
    display: none;
    /* Hide checkmark for radio */
}

.custom-option.selected .custom-radio {
    position: relative;
}

.custom-option.selected .custom-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: radio-scale 0.2s ease-out forwards;
}

@keyframes radio-scale {
    from {
        transform: translate(-50%, -50%) scale(0);
    }

    to {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Fix Overflow/Z-Index issues in Modals */
.custom-options-container {
    /* Ensure it breaks out of overflow hidden parents if possible,
       though pure CSS cannot break overflow:hidden of a parent.
       We rely on high z-index and ensuring specific parent containers don't hide overflow.
    */
    z-index: 9999;
    max-height: 250px;
    overflow-y: auto;
}

/* Specific fix for modal bodies to allow dropdowns to overflow */
/* Assuming modal structure involves .overflow-y-auto or similar */
.modal-body {
    overflow-y: visible !important;
    /* This might break scrolling of long forms, so use with caution.
       Better approach: ensure custom-select uses fixed positioning or JS to append to body.
       For now, we try to minimize restrictions. */
}

/* Disabled state */
.custom-select-container.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.custom-select-container.disabled .custom-select-trigger {
    background-color: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

.dark .custom-select-container.disabled .custom-select-trigger {
    background-color: rgba(255, 255, 255, 0.05);
}

/* --- Toast Notifications --- */
@keyframes toast-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.animate-toast-in {
    animation: toast-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-toast-out {
    animation: toast-out 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast {
    position: relative;
    overflow: hidden;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    background-color: var(--brand-primary);
}

@keyframes progress-timer {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.toast.active .toast-progress-bar {
    animation: progress-timer 5s linear forwards;
}

/* Styling CKEditor to match app theme */
:root {
    --ck-color-base-border: var(--app-border);
    --ck-color-base-background: var(--app-bg);
    --ck-border-radius: 12px;
}

.ck-editor__animated_boundary {
    border-radius: 16px !important;
}

/* Toolbar Styling */
.ck-toolbar {
    border: 1px solid var(--app-border) !important;
    border-bottom-width: 0 !important;
    border-radius: 16px 16px 0 0 !important;
    background: var(--app-surface) !important;
    padding: 0.5rem !important;
}

/* Editable Area */
.ck-editor__editable {
    min-height: 300px;
    /* Default height */
    border-radius: 0 0 16px 16px !important;
    background: var(--app-bg) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--app-border) !important;
    padding: 1.5rem 2rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
}

/* Response height adjustment */
#reply-editor+.ck-editor .ck-editor__editable {
    min-height: 150px !important;
}

/* Focus & Active States - Remove all blue defaults */
.ck-editor__editable.ck-focused,
.ck.ck-editor__main>.ck-editor__editable.ck-focused,
.ck.ck-button:focus,
.ck.ck-dropdown:focus,
.ck.ck-dropdown.ck-on .ck-button,
.ck.ck-button.ck-on:focus,
.ck.ck-dropdown.ck-on {
    border-color: var(--app-border) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Toolbar Buttons & Dropdowns */
.ck.ck-button,
.ck.ck-dropdown {
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.ck.ck-button:not(.ck-disabled):hover,
a.ck.ck-button:not(.ck-disabled):hover,
.ck.ck-dropdown:not(.ck-disabled):hover {
    background: rgba(59, 130, 246, 0.08) !important;
    color: var(--brand-primary) !important;
}

.ck.ck-button.ck-on,
.ck.ck-dropdown.ck-on,
.ck.ck-dropdown.ck-on .ck-button {
    background: rgba(59, 130, 246, 0.12) !important;
    color: var(--brand-primary) !important;
}

/* Specific fix for the blue focus ring on dropdowns - Keep it removed */
.ck-editor__editable.ck-focused,
.ck.ck-editor__main>.ck-editor__editable.ck-focused,
.ck.ck-button:focus,
.ck.ck-dropdown:focus,
.ck.ck-button.ck-on:focus,
.ck.ck-dropdown.ck-on,
.ck.ck-button:active {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--app-border) !important;
}

/* Dropdowns & Popovers */
.ck.ck-dropdown__panel {
    background: var(--app-surface) !important;
    border: 1px solid var(--app-border) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

.ck.ck-list {
    background: var(--app-surface) !important;
}

.ck.ck-list__item,
.ck.ck-button.ck-list__item {
    background: transparent !important;
}

.ck.ck-list__item:hover,
.ck.ck-button.ck-list__item:hover {
    background: rgba(59, 130, 246, 0.05) !important;
}

/* Dark mode adjustments specifically for Superbuild internals */
.dark .ck-toolbar {
    background: #171717 !important;
    border-color: #262626 !important;
}

.dark .ck-editor__editable {
    background: #0a0a0a !important;
    color: #e5e5e5 !important;
    border-color: #262626 !important;
}

.dark .ck.ck-button,
.dark .ck.ck-icon {
    color: #a3a3a3 !important;
}

.dark .ck.ck-button:hover,
.dark .ck.ck-button.ck-on {
    background: #262626 !important;
    color: #fff !important;
}

.dark .ck.ck-dropdown__panel {
    background: #171717 !important;
    border-color: #262626 !important;
}

.dark .ck.ck-list {
    background: #171717 !important;
}

/* Remove CKEditor "Powered by" branding */
.ck-powered-by {
    display: none !important;
}