<?php

$primary = '#3b82f6'; // blue-500 (softer, friendly)
$primary_light = '#eff6ff'; // blue-50
$primary_dark_text = '#60a5fa'; // blue-400

$sidebar_rail_bg = '#ffffff'; // White rail for cleaner look
$sidebar_rail_bg_dark = '#0f172a'; // slate-900

$sidebar_icon_color = '#64748b'; // slate-500
$sidebar_icon_color_dark = '#94a3b8'; // slate-400

$secondary = '#64748b'; // slate-500

$success = '#16a34a';
$danger = '#dc2626';
$warning = '#f59e0b';
$info = '#0ea5e9';

$toast_success = '#16a34a';
$toast_error = '#dc2626';
$toast_warning = '#f59e0b';

return [
    'primary' => $primary,
    'primary_light' => $primary_light,
    'primary_dark_text' => $primary_dark_text,
    'secondary' => $secondary,
    'success' => $success,
    'danger' => $danger,
    'warning' => $warning,
    'info' => $info,

    'toast_success' => $toast_success,
    'toast_error' => $toast_error,
    'toast_warning' => $toast_warning,

    'admin' => [

        'sidebar_bg' => '#ffffff',
        'sidebar_bg_dark' => '#020617',
        'sidebar_border' => '#e5e7eb',
        'sidebar_border_dark' => '#1e293b',

        'sidebar_rail_bg' => $sidebar_rail_bg,
        'sidebar_rail_bg_dark' => $sidebar_rail_bg_dark,

        'header_bg' => '#ffffffcc',
        'header_bg_dark' => '#020617cc',

        'sidebar_icon_color' => $sidebar_icon_color,
        'sidebar_icon_color_dark' => $sidebar_icon_color_dark,

        'active_item_bg' => $primary_light,
        'active_item_text' => $primary,
        'active_item_border' => $primary,

        'active_item_bg_dark' => $primary.'20',
        'active_item_text_dark' => $primary_dark_text,
        'active_item_border_dark' => $primary_dark_text,

        'content_bg' => '#f9fafb',
        'content_bg_dark' => '#020617',

        'card_bg' => '#ffffff',
        'card_bg_dark' => '#020617',
        'card_border' => '#e5e7eb',
        'card_border_dark' => '#1e293b',
    ],

    'css_vars' => [

        '--brand-primary' => ['key' => 'primary', 'default' => $primary],
        '--brand-secondary' => ['key' => 'secondary', 'default' => $secondary],
        '--brand-success' => ['key' => 'success', 'default' => $success],
        '--brand-danger' => ['key' => 'danger', 'default' => $danger],
        '--brand-warning' => ['key' => 'warning', 'default' => $warning],
        '--brand-info' => ['key' => 'info', 'default' => $info],

        '--toast-success' => ['key' => 'toast_success', 'default' => $toast_success],
        '--toast-error' => ['key' => 'toast_error', 'default' => $toast_error],
        '--toast-warning' => ['key' => 'toast_warning', 'default' => $toast_warning],

        '--admin-sidebar-bg' => ['key' => 'admin_sidebar_bg', 'default' => '#ffffff'],
        '--admin-sidebar-bg-dark' => ['key' => 'admin_sidebar_bg_dark', 'default' => '#020617'],

        '--admin-sidebar-border' => ['key' => 'admin_sidebar_border', 'default' => '#e5e7eb'],
        '--admin-sidebar-border-dark' => ['key' => 'admin_sidebar_border_dark', 'default' => '#1e293b'],

        '--admin-sidebar-rail-bg' => ['key' => 'sidebar_rail_bg', 'default' => $sidebar_rail_bg],
        '--admin-sidebar-rail-bg-dark' => ['key' => 'sidebar_rail_bg_dark', 'default' => $sidebar_rail_bg_dark],

        '--admin-sidebar-icon' => ['key' => 'sidebar_icon_color', 'default' => $sidebar_icon_color],
        '--admin-sidebar-icon-dark' => ['key' => 'sidebar_icon_color_dark', 'default' => $sidebar_icon_color_dark],

        '--admin-header-bg' => ['key' => 'admin_header_bg', 'default' => '#ffffffcc'],
        '--admin-header-bg-dark' => ['key' => 'admin_header_bg_dark', 'default' => '#020617cc'],

        '--admin-active-item-bg' => ['key' => 'primary_light', 'default' => $primary_light],

        '--admin-active-item-text' => ['key' => null, 'default' => 'var(--brand-primary)'],
        '--admin-active-item-border' => ['key' => null, 'default' => 'var(--brand-primary)'],

        '--admin-active-item-bg-dark' => [
            'key' => null,
            'default' => 'color-mix(in srgb, var(--brand-primary), transparent 85%)',
        ],

        '--admin-active-item-text-dark' => ['key' => 'primary_dark_text', 'default' => $primary_dark_text],

        '--admin-active-item-border-dark' => [
            'key' => null,
            'default' => 'color-mix(in srgb, var(--brand-primary), white 20%)',
        ],

        '--admin-content-bg' => ['key' => 'admin_content_bg', 'default' => '#f9fafb'],
        '--admin-content-bg-dark' => ['key' => 'admin_content_bg_dark', 'default' => '#020617'],

        '--admin-card-bg' => ['key' => 'admin_card_bg', 'default' => '#ffffff'],
        '--admin-card-bg-dark' => ['key' => 'admin_card_bg_dark', 'default' => '#020617'],

        '--admin-card-border' => ['key' => 'admin_card_border', 'default' => '#e5e7eb'],
        '--admin-card-border-dark' => ['key' => 'admin_card_border_dark', 'default' => '#1e293b'],
    ],
];
