@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../../resources/views/**/*.blade.php';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';

    /* Brand Colors - Official Brand System (Light Mode Enforced) */
    --color-brand-black: #0F172A;
    --color-brand-dark: #FFFFFF;
    --color-brand-gold: #F2B622;
    --color-brand-gold-light: #FFC94D;
    --color-brand-gold-dark: #AC6106;
    --color-brand-cream: #F5F2EA;

    /* Peacock feather accents (extracted from brand logo) */
    --color-peacock-green: #3D8D14;
    --color-peacock-teal: #14858A;
    --color-peacock-blue: #0554B4;
    --color-peacock-cyan: #0AAAC0;
}

/* ===== Permanent Pure Light Mode System Rules ===== */
:root,
body,
[data-theme="light"] body { background: #f8fafc !important; color: #0f172a !important; }
[data-theme="light"] * { color: inherit; }

/* All dark cards and sections → clean pristine white cards */
.bg-brand-dark,
[data-theme="light"] .bg-brand-dark,
[data-theme="light"] .bg-gray-950,
[data-theme="light"] .bg-gray-900,
[data-theme="light"] .bg-gray-800,
[data-theme="light"] .bg-black,
[data-theme="light"] .bg-gray-800\/80,
[data-theme="light"] .bg-gray-800\/60,
[data-theme="light"] .bg-gray-800\/50 {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-theme="light"] .bg-gray-700,
[data-theme="light"] .bg-gray-600,
[data-theme="light"] .bg-gray-500 { background: #f8fafc !important; }

/* All dark inputs and selects → clean modern light inputs */
.bg-black\/40,
.bg-black\/50,
.bg-black\/60,
.bg-black\/70,
[data-theme="light"] .bg-black\/40,
[data-theme="light"] .bg-black\/50,
[data-theme="light"] .bg-black\/60,
[data-theme="light"] .bg-black\/70 {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Dark borders → light subtle borders */
.border-gray-800,
.border-gray-700,
.border-gray-800\/50,
.border-gray-800\/60,
[data-theme="light"] .border-gray-800,
[data-theme="light"] .border-gray-700,
[data-theme="light"] .border-gray-600,
[data-theme="light"] .border-gray-900,
[data-theme="light"] .border-gray-800\/50,
[data-theme="light"] .border-gray-800\/60 { border-color: #e2e8f0 !important; }

/* White/gray text → dark text */
[data-theme="light"] .text-white { color: #1f2937 !important; }
[data-theme="light"] .text-gray-300 { color: #374151 !important; }
[data-theme="light"] .text-gray-400 { color: #6b7280 !important; }
[data-theme="light"] .text-gray-500 { color: #9ca3af !important; }
[data-theme="light"] .text-gray-600 { color: #9ca3af !important; }

/* Gold stays gold */
[data-theme="light"] .text-brand-gold { color: #AC6106 !important; }
[data-theme="light"] .dm-gold { color: #AC6106 !important; }

/* Hover states */
[data-theme="light"] .hover\:bg-white\/5:hover,
[data-theme="light"] .hover\:bg-gray-800:hover { background: #f3f4f6 !important; }

/* Inputs */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] input[type="url"],
[data-theme="light"] input[type="search"],
[data-theme="light"] textarea,
[data-theme="light"] select { background: #f9fafb !important; border-color: #d1d5db !important; color: #1f2937 !important; }
[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder { color: #9ca3af !important; }

/* Form labels */
[data-theme="light"] label { color: #374151 !important; }

/* Tables */
[data-theme="light"] table { background: #ffffff !important; }
[data-theme="light"] th { background: #f9fafb !important; color: #374151 !important; border-color: #e5e7eb !important; }
[data-theme="light"] td { border-color: #e5e7eb !important; color: #1f2937 !important; }

/* Buttons that are dark */
[data-theme="light"] .bg-blue-600,
[data-theme="light"] .bg-blue-700 { background: #2563eb !important; }
[data-theme="light"] .bg-red-600,
[data-theme="light"] .bg-red-700,
[data-theme="light"] .bg-red-900 { background: #dc2626 !important; }
[data-theme="light"] .bg-green-600,
[data-theme="light"] .bg-green-700,
[data-theme="light"] .bg-green-900 { background: #16a34a !important; }
[data-theme="light"] .text-red-400,
[data-theme="light"] .text-red-300 { color: #dc2626 !important; }
[data-theme="light"] .text-green-400,
[data-theme="light"] .text-green-300 { color: #16a34a !important; }
[data-theme="light"] .text-blue-400,
[data-theme="light"] .text-blue-300 { color: #2563eb !important; }

/* Color inputs */
[data-theme="light"] input[type="color"] { border: 2px solid #d1d5db !important; }

/* Sidebar light mode */
[data-theme="light"] aside.dm-sidebar { background: #ffffff !important; border-color: #e5e7eb !important; }
[data-theme="light"] aside.dm-sidebar a { color: #374151 !important; }
[data-theme="light"] aside.dm-sidebar a:hover { background: #f3f4f6 !important; }
[data-theme="light"] aside.dm-sidebar .dm-nav-active { background: #DB8D0D !important; color: #000 !important; }
[data-theme="light"] aside.dm-sidebar .dm-section-label { color: #9ca3af !important; }
[data-theme="light"] aside.dm-sidebar .dm-gold { color: #AC6106 !important; }
[data-theme="light"] aside.dm-sidebar .border-t { border-color: #e5e7eb !important; }
[data-theme="light"] aside.dm-sidebar p { color: #9ca3af !important; }

/* Header light mode */
[data-theme="light"] header.dm-header { background: #ffffff !important; border-color: #e5e7eb !important; }
[data-theme="light"] header.dm-header h2 { color: #1f2937 !important; }
[data-theme="light"] header.dm-header span { color: #6b7280 !important; }

/* Menu Builder light mode */
[data-theme="light"] .menu-builder-item { background: #f9fafb !important; border-color: #e5e7eb !important; }
[data-theme="light"] .menu-builder-item:hover { border-color: #DB8D0D !important; background: #fffbeb !important; }
[data-theme="light"] .menu-builder-item .item-title { color: #1f2937 !important; }
[data-theme="light"] .menu-builder-item .item-url { color: #6b7280 !important; }
[data-theme="light"] .menu-builder-item .drag-handle { color: #9ca3af !important; }
[data-theme="light"] .sortable-ghost { border-color: #DB8D0D !important; background: rgba(219,141,13,0.1) !important; }
[data-theme="light"] .add-item-bar { background: #f9fafb !important; border-color: #d1d5db !important; }
[data-theme="light"] .add-item-bar:focus-within { border-color: #DB8D0D !important; }
[data-theme="light"] .sub-menu-list { border-left-color: #e5e7eb !important; }

/* Color picker modal light mode */
[data-theme="light"] .cp-modal { background: #ffffff !important; }
[data-theme="light"] .cp-modal-header { background: #f9fafb !important; border-color: #e5e7eb !important; }
[data-theme="light"] .cp-modal-header h3 { color: #1f2937 !important; }
[data-theme="light"] .cp-modal-footer { background: #f9fafb !important; border-color: #e5e7eb !important; }
[data-theme="light"] .cp-modal-close { color: #6b7280 !important; }
[data-theme="light"] .cp-btn { background: #f3f4f6 !important; border-color: #d1d5db !important; color: #374151 !important; }
[data-theme="light"] .cp-btn:hover { background: #e5e7eb !important; }
[data-theme="light"] #cHx { color: #1f2937 !important; }
[data-theme="light"] .cp-section-label { color: #374151 !important; }

/* Scrollbar */
[data-theme="light"] ::-webkit-scrollbar-track { background: #f3f4f6; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #AC6106; border-radius: 4px; }

/* Pagination */
[data-theme="light"] .pagination a { background: #ffffff !important; color: #374151 !important; border-color: #e5e7eb !important; }
[data-theme="light"] .pagination a:hover { background: #f9fafb !important; }
[data-theme="light"] .pagination .active a { background: #DB8D0D !important; color: #000 !important; }

