/*
 * roulabet.com: Day mode (2026-11-13). The bundle's own dark/light switch is turned on in the chunks
 * (light_mode:!0, default_theme:"dark"); the skin only ever defined dark colours, so without this file
 * light mode falls back to the bundle's stock purple palette.
 *
 * Palette: pearl page, white cards with soft shadows, ink text, roulabet gold for buttons and the
 * selected states (a deeper gold for text on white, which plain #f2c41a is too pale for).
 * Everything is scoped to html[data-theme=light], which the bundle (and the inline script in
 * welcome.blade.php) sets only in Day mode, so Night mode is untouched. Loaded last.
 */
html[data-theme=light] body {
  --rl-bg: #f3f4f7;
  --rl-surface: #ffffff;
  --rl-surface-2: #eceef2;
  --rl-border: #e2e5ea;
  --rl-ink: #17181c;
  --rl-muted: #5b6270;
  --rl-gold: #f2c41a;
  --rl-gold-hover: #f5d048;
  --rl-gold-active: #c29d15;
  --rl-gold-ink: #9a7300;
  --rl-gold-soft: #fff4cc;
  --rl-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);

  /* brand */
  --primary-color: var(--rl-gold);
  --primary-font-color: #1c1c1c;
  --primary-hover-color: var(--rl-gold-hover);
  --primary-active-color: var(--rl-gold-active);
  --primary-border-color: var(--rl-gold);
  --primary-focus-color: var(--rl-gold);
  --primary-focus-border-color: var(--rl-gold-active);
  --primary-btn-icon-filter: brightness(0) saturate(100%);
  --secondary-color: var(--rl-gold);
  --secondary-font-color: #1c1c1c;
  --secondary-hover-color: var(--rl-gold-hover);
  --secondary-active-color: var(--rl-gold-active);
  --secondary-border-color: var(--rl-gold);
  --secondary-focus-color: var(--rl-gold);
  --secondary-focus-border-color: var(--rl-gold-active);
  --outline-btn-border-color: var(--rl-ink);
  --outline-btn-hover-border-color: var(--rl-ink);
  --icon-btn-enabled-filter: brightness(0) saturate(100%);
  --copy-icon-filter: none;

  /* Light tokens the components read in light mode */
  --primaryLight: var(--rl-gold-ink);
  --contentBgLight: var(--rl-bg);
  --contentTextLight: var(--rl-ink);
  --h1ColorLight: var(--rl-ink);
  --headerBgLight: var(--rl-surface);
  --headerTextLight: var(--rl-ink);
  --hamburgerColorLight: var(--rl-ink);
  --headerMenuActiveLight: var(--rl-gold-ink);
  --headerMenuHoverLight: var(--rl-gold-ink);
  --headerDropdownMenuItemLight: var(--rl-gold-ink);
  --headerModalBgColorLight: var(--rl-surface);
  --footerBgLight: var(--rl-surface);
  --footerTextLight: var(--rl-muted);
  --footerTextColorLight: var(--rl-ink);
  --lobbyZebraOddLight: var(--rl-surface);
  --casinoMenuBgLight: var(--rl-surface);
  --casinoMenuItemLight: var(--rl-ink);
  --casinoMenuItemHoverLight: var(--rl-gold-ink);
  --casinoCountBadgeBgLight: var(--rl-ink);
  --searchPrimaryLight: var(--rl-gold-ink);
  --outlineButtonLight: var(--rl-ink);
  --outlineButtonSecondaryLight: var(--rl-ink);
  --outlineButtonHoverSecondaryLight: var(--rl-gold-ink);
  --accountButtonHoverLight: var(--rl-gold-ink);
  --accountDropdownBgLight: var(--rl-surface);
  --accountDropdownItemLight: var(--rl-ink);
  --accountDropdownItemHoverLight: var(--rl-gold-ink);
  --accountLogoutButtonLight: var(--rl-gold-ink);
  --accountDepositButtonBgLight: var(--rl-gold);
  --accountDepositButtonBgHoverLight: var(--rl-gold-hover);
  --accountDepositButtonTextLight: #1c1c1c;
  --accountDepositButtonTextHoverLight: #1c1c1c;
  --backButtonBgHoverLight: var(--rl-gold);
  --backButtonIconHoverLight: #1c1c1c;
  --gamesButtonBgHoverLight: var(--rl-gold);
  --gamesButtonIconHoverLight: #1c1c1c;
  --swiperButtonIconLight: var(--rl-ink);
  --swiperButtonIconHoverLight: var(--rl-gold-ink);
  --modalBgLight: var(--rl-surface);
  --modalTextColorLight: var(--rl-ink);
  --modalSecondaryTextColorLight: var(--rl-gold-ink);
  --secondaryModalBgLight: var(--rl-bg);
  --dropdownListBgLight: var(--rl-surface);
  --langSwitcherBgLight: var(--rl-surface);
  --langSwitcherListBgLight: var(--rl-surface);
  --promotionsBgLight: var(--rl-bg);
  --promotionsCardBgLight: var(--rl-surface);
  --profileModalButtonBgLight: var(--rl-gold);
  --profileModalButtonBgHoverLight: var(--rl-gold-hover);
  --profileModalSelectedItemColorLight: #1c1c1c;
  --phoneCountriesDropdownBgLight: var(--rl-surface);
  --phoneCountriesDropdownTextLight: var(--rl-ink);
  --phoneCountriesDropdownHighlightLight: var(--rl-gold-ink);
  --datePickerBgLight: var(--rl-surface);
  --datePickerTextLight: var(--rl-ink);
  --datePickerSelectedBgLLight: var(--rl-gold);
  --datePickerSelectedTextLight: #1c1c1c;

  /* header, bottom bar, footer, widgets */
  --header-bgColor: var(--rl-surface);
  --header-game-menu-item-color: var(--rl-ink);
  --header-game-submenu-item-color: var(--rl-ink);
  --bottom-menu-bg-color: var(--rl-surface);
  --footer-bgColor: var(--rl-surface);
  --footer-copyrights-color: var(--rl-muted);
  --footer-terms-color: var(--rl-muted);
  --footer-icons-color: var(--rl-ink);
  --footer-separator-color: var(--rl-border);
  --footer-footer-menu-item-color: var(--rl-ink);
  --footer-footer-menu-mobile-item-bg-color: var(--rl-surface);
  --footer-footer-menu-mobile-item-border-color: var(--rl-border);
  --footer-footer-menu-mobile-item-color: var(--rl-ink);
  --footer-eighteen-plus-icon-filter: none;
  --footer-providers-item-bg-color: transparent;
  --widget-title-color: var(--rl-ink);
  --slider-arrow-bg-color: var(--rl-surface);

  /* casino category bar */
  --casino-menu-mobile-bg-color: var(--rl-surface);
  --casino-menu-item-mobile-font-color: var(--rl-ink);
  --casino-menu-item-font-color: var(--rl-ink);
  --casino-menu-item-active-bg-color: var(--rl-gold-soft);
  --casino-menu-item-active-font-color: var(--rl-gold-ink);
  --casino-menu-search-button-wrapper-mobile-bg-color: var(--rl-surface);
  --casino-menu-search-button-mobile-bg-color: var(--rl-bg);
  --casino-menu-search-button-bg-color: var(--rl-bg);
  --casino-menu-search-button-mobile-border-color: var(--rl-border);
  --casino-menu-search-button-border-color: var(--rl-border);
  --casino-menu-search-button-mobile-font-color: var(--rl-muted);

  /* side menu */
  --sidebar-bg-color: var(--rl-bg);
  --sidebar-header-bg-color: var(--rl-surface);
  --sidebar-account-bg-color: var(--rl-bg);
  --sidebar-account-header-bg-color: var(--rl-surface);
  --sidebar-footer-bg-color: var(--rl-bg);
  --sidebar-collapsed-panel-bg-color: var(--rl-surface);
  --sidebar-separator-color: var(--rl-border);
  --sidebar-menu-item-color: var(--rl-ink);
  --sidebar-menu-item-hover-color: var(--rl-ink);
  --sidebar-menu-item-focus-color: var(--rl-ink);
  --sidebar-menu-item-pressed-color: var(--rl-gold-ink);
  --sidebar-menu-item-active-color: var(--rl-gold-ink);
  --sidebar-menu-item-hover-bg-color: var(--rl-surface-2);
  --sidebar-menu-item-focus-bg-color: var(--rl-surface-2);
  --sidebar-menu-item-pressed-bg-color: var(--rl-surface-2);
  --sidebar-menu-subitem-color: var(--rl-muted);
  --sidebar-menu-subitem-focus-color: var(--rl-ink);
  --sidebar-menu-subitem-hover-color: #1c1c1c;
  --sidebar-menu-subitem-hover-bg-color: var(--rl-gold-soft);
  --sidebar-menu-subitem-hover-border-color: transparent;
  --sidebar-menu-subitem-active-color: #1c1c1c;
  --sidebar-menu-subitem-active-bg-color: var(--rl-gold);
  --sidebar-menu-subitem-pressed-color: #1c1c1c;
  --sidebar-menu-subitem-pressed-bg-color: var(--rl-gold);
  --sidebar-balance-value-color: var(--rl-ink);
  --sidebar-user-id-color: var(--rl-gold-ink);
  --sidebar-account-menu-item-active-color: var(--rl-gold-ink);

  /* the switch */
  --darkLightSwitcherBgLight: var(--rl-surface-2);
  --darkLightSwitchButtonLight: var(--rl-gold);
  --darkLightSwitcherIconActiveLight: #1c1c1c;
  --darkLightSwitcherIconLight: var(--rl-muted);

  background-color: var(--rl-bg);
  color: var(--rl-ink);
}

/* Header and bottom bar: white with a hairline and a soft shadow. */
html[data-theme=light] header,
html[data-theme=light] .headerContainer { box-shadow: 0 1px 0 var(--rl-border); }
html[data-theme=light] .mobileBottomMenu,
html[data-theme=light] [class*=bottomMenu] { box-shadow: 0 -1px 0 var(--rl-border), 0 -6px 18px rgba(16, 24, 40, .05); }

/* Inputs: the skin forces dark fields with white text everywhere (unscoped !important rule). */
html[data-theme=light] body input[type=text],
html[data-theme=light] body input[type=number],
html[data-theme=light] body form input[type=password],
html[data-theme=light] body form input[type=email],
html[data-theme=light] body form input[type=tel],
html[data-theme=light] body form input[type=search],
html[data-theme=light] body form select,
html[data-theme=light] body .input_container,
html[data-theme=light] body .cpfField,
html[data-theme=light] body .cryptoSelect__control {
  background-color: var(--rl-surface) !important;
  border-color: var(--rl-border) !important;
  color: var(--rl-ink) !important;
}
html[data-theme=light] body .gamesSearchBtn {
  background-color: var(--rl-bg) !important;
  border-color: var(--rl-border) !important;
  color: var(--rl-muted) !important;
}

/* Casino game lists (roulabet-games-grid.css paints them with the dark zebra colour). */
html[data-theme=light] .casinoGamesContainer { background-color: var(--rl-surface); box-shadow: var(--rl-shadow); }
html[data-theme=light] .casinoMenuMobile { box-shadow: 0 1px 0 var(--rl-border); }
html[data-theme=light] .casinoMenuMobile .casinoMenuItemMobile.activeMenu,
html[data-theme=light] .casinoMenuMobile .casinoMenuItemMobile.activeCasinoMenuItem { border-radius: 12px; }

/* Gold buttons stay gold (the bundle's light base leaves .primaryBtn transparent). */
html[data-theme=light] button.primaryBtn, html[data-theme=light] a.primaryBtn {
  background-color: var(--rl-gold) !important; border-color: var(--rl-gold) !important; color: #1c1c1c !important;
}
html[data-theme=light] button.primaryBtn:hover, html[data-theme=light] a.primaryBtn:hover {
  background-color: var(--rl-gold-hover) !important; border-color: var(--rl-gold-hover) !important;
}
html[data-theme=light] button.outlineBtn, html[data-theme=light] a.outlineBtn { color: var(--rl-ink); border-color: var(--rl-ink); }

/* White icon artwork on the round/square icon buttons (back, close): ink in Day mode. */
html[data-theme=light] .iconBtn img { filter: brightness(0) saturate(100%) !important; }
html[data-theme=light] .iconBtn:hover img { filter: brightness(0) saturate(100%) !important; }

/* Labels that carry their own white colour. */
html[data-theme=light] .bottomMenu span { color: var(--rl-ink) !important; }
html[data-theme=light] .bottomMenu .selectedBottomMenuItem span { color: var(--rl-gold-ink) !important; }
html[data-theme=light] .footerGameMenu a { color: var(--rl-ink) !important; }
html[data-theme=light] .footerGameMenu a:hover { color: var(--rl-gold-ink) !important; }
html[data-theme=light] .langSwitcherBtn span { color: var(--rl-ink) !important; }

/* Jackpot tiles are dark artwork in both themes: keep their amounts white. */
html[data-theme=light] .jackpotLevelAmount, html[data-theme=light] .jackpotLevelAmountWrapper { color: #fff !important; }

/* Providers / sort filters above the game lists. */
html[data-theme=light] .filtersContainer button.outlineBtn {
  background-color: var(--rl-surface) !important; border: 1px solid var(--rl-border) !important;
  color: var(--rl-ink) !important; box-shadow: var(--rl-shadow);
}
html[data-theme=light] .filtersContainer button.outlineBtn * { color: var(--rl-ink) !important; }
html[data-theme=light] .filtersContainer .dropdownArrow { background-color: transparent !important; filter: brightness(0) saturate(100%) opacity(.65) !important; }
html[data-theme=light] .filtersContainer ul { background-color: var(--rl-surface) !important; color: var(--rl-ink) !important; }

/* Footer provider logos are white artwork: each sits on a dark rounded chip in Day mode. */
html[data-theme=light] .footerProviderItemImg { background-color: #1d1e22 !important; border-radius: 10px !important; }

/* Side menu (roulabet-sidebar.css is written for Night): white cards on the pearl drawer. */
html[data-theme=light] .sidebarParentOpen { background-color: var(--rl-surface) !important; box-shadow: var(--rl-shadow); }
html[data-theme=light] .sidebar .sidebarInnerContainer .customDropdown button.langSwitcherBtn,
html[data-theme=light] .sidebar .sidebarInnerContainer .customDropdown button.langSwitcherBtn:hover,
html[data-theme=light] .sidebar .langSwitcherFullWidth button.langSwitcherBtn {
  background-color: var(--rl-surface) !important; border-color: var(--rl-border) !important; color: var(--rl-ink) !important;
}
html[data-theme=light] .sidebar .sidebarLoginBtn { color: var(--rl-ink); border-color: var(--rl-ink); }

/* ---- The Night / Day switch (both themes): a full-width segmented pill, gold thumb, readable labels. ---- */
.sidebar .darkLightswitchLabel {
  width: 100% !important; height: 44px !important; padding: 0 4px;
  border: 1px solid transparent; transition: background-color .25s ease;
}
html.dark .sidebar .darkLightswitchLabel { background-color: #222225 !important; border-color: #313135; }
html[data-theme=light] .sidebar .darkLightswitchLabel { background-color: var(--rl-surface) !important; border-color: var(--rl-border); box-shadow: var(--rl-shadow); }
.sidebar .darkLightswitchLabel > div { flex: 1 1 50%; display: flex; justify-content: center; margin: 0 !important; font-weight: 700; font-size: 14px; transition: color .25s ease; }
.sidebar .darkLightswitchLabel > div span { margin-inline-start: 8px; }
.sidebar .darkLightswitchLabel .darkLightSwitchButton {
  width: calc(50% - 4px) !important; height: 36px !important; top: 3px; border-radius: 9999px;
  background: linear-gradient(135deg, #ffd84d, #f2c41a 55%, #d9a80c) !important;
  box-shadow: 0 2px 8px rgba(242, 196, 26, .35);
  transition: left .3s cubic-bezier(.4, 0, .2, 1), transform .3s cubic-bezier(.4, 0, .2, 1);
}
/* The bundle moves the thumb itself (checkbox :checked = Day): left 2px, or right-aligned via left/translate. */
html.dark .sidebar .darkLightswitchLabel > div:first-child,
html[data-theme=light] .sidebar .darkLightswitchLabel > div:nth-child(2) { color: #1c1c1c; }
html.dark .sidebar .darkLightswitchLabel > div:nth-child(2) { color: #fff9; }
html[data-theme=light] .sidebar .darkLightswitchLabel > div:first-child { color: var(--rl-muted); }
html.dark .sidebar .darkLightswitchLabel > div:first-child svg,
html[data-theme=light] .sidebar .darkLightswitchLabel > div:nth-child(2) svg { fill: #1c1c1c !important; }
