/* Fonts */
:root {
  --default-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Poppins", sans-serif;
  --nav-font: "Poppins", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #1D1D1F;
  /* Background color for the entire website, including individual sections */
  --default-color: #E0E0E0;
  /* Default color used for the majority of the text content across the entire website */
  --heading-color: #E0E0E0;
  /* Color for headings, subheadings and title throughout the website */
  --accent-color: #FC02FA;
  /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #403C46;
  --surface-color-2: #1D1D1F;
  --surface-color-3: #8F8F8F;
  /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #E0E0E0;
  /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
  --black-color: #000000;
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #E0E0E0;
  /* The default color of the main navmenu links */
  --nav-hover-color: #BD037D;
  /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #1D1D1F;
  /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #1D1D1F;
  /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #E0E0E0;
  /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #BD037D;
  /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.color-default {
  color: var(--default-color);
}

.color-accent {
  color: var(--accent-color);
}

.color-accent-50 {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
}

.color-surface {
  color: var(--surface-color);
}

.color-surface-2 {
  color: var(--surface-color-2);
}

.color-surface-3 {
  color: var(--surface-color-3);
}

.color-black {
  color: var(--black-color-3);
}


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

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

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

.bg-surface {
  background-color: var(--surface-color) !important;
}

.bg-surface-2 {
  background-color: var(--surface-color-2);
}

.bg-surface-3 {
  background-color: var(--surface-color-3);
}

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

.border-willstore {
  border-color: var(--accent-color) !important;
}

.border-accent {
  border: 1px solid var(--accent-color);
}

.border-default {
  border: .25px solid var(--default-color);
  opacity: 100%;
}
.gradient-accent {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--accent-color), transparent 50%), rgba(255, 255, 255, 0));
}

.cursor-pointer {
  cursor: pointer;
}

.w-max-content {
  width: max-content !important;
}

/* Form Control */

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml;charset=UTF-8,<svg fill='white' viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'><polygon points='70,100 20,40 120,40'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
}

.form-control,
.form-control:disabled {
  color: var(--default-color);
  background-color: var(--surface-color);
  border: 0;
  transition: .3s;
  padding-block: .5rem;
}

.form-control.is-invalid {
  box-shadow: 0 0 0 0.1rem #DC3545;
  transition: ease .3s;
}

.form-control.is-invalid:focus {
  border: none;
  box-shadow: 0 0 4px 0.1rem #DC3545;
}

.form-control::placeholder,
.form-control:disabled::placeholder {
  color: var(--surface-color-3);
  transition: ease 0.3s;
}

.form-control:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  border: none;
  box-shadow: 0 0 0 0.1rem var(--accent-color);
}

.form-control:focus::placeholder {
  padding-left: 0.2rem;
}

.form-select option:nth-child():hover {
  background: var(--accent-color);
}

.form-control:disabled {
  cursor: not-allowed;
}

input[type="file"]::file-selector-button {
  background-color: var(--accent-color);
  border: none;
}

/* input[type="checkbox"]:checked {
  background-color: var(--accent-color) !important;
} */

.form-label {
  color: var(--default-color);
}

.ts-control {
    color: var(--default-color) !important;
    background-color: var(--surface-color) !important;
    border: none;
    transition: .3s;
    padding-block: .5rem;
    border-radius: .375rem;
}

.focus .ts-control {
    color: var(--default-color) !important;
    background-color: var(--surface-color) !important;
    border: none;
    box-shadow: 0 0 0 0.1rem var(--accent-color);
}

.ts-control input::placeholder {
    color: var(--default-color) !important;
    opacity: 1;
}

.ts-control input {
    color: var(--default-color) !important;
    opacity: 1;
}

.ts-dropdown .active {
    background-color: var(--accent-color);
    color: var(--default-color);
}

.ts-dropdown {
    background-color: var(--surface-color);
    color: var(--default-color);
    border: none;
    border-radius: .25rem;
}

.ts-dropdown .highlight {
  font-weight: bold;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

.wsj-alert{
  z-index: 9999;
  position: fixed;
  top: 5rem;
  left: 50%;
  width: fit-content;
  max-width: 90%;
  transform: translate(-50%, -100px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform, opacity;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.wsj-alert.show{
  transform: translate(-50%, 0);
  opacity: 1;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  background-color: var(--black-color);
}

.footer .footer-top img {
  max-width: 100px;
}

.footer .footer-description {
  margin-right: 40px;
}

.footer .social-links {
  padding-bottom: 20px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 85%);
  font-size: 16px;
  color: var(--accent-color);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  margin-right: 3px;
  font-size: 12px;
  line-height: 0;
  color: var(--accent-color);
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  display: inline-block;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-about a {
  color: var(--heading-color);
  font-size: 24px;
  font-weight: 600;
  font-family: var(--heading-font);
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Button Section
--------------------------------------------------------------*/
/* Button */
  .btn-accent,
  .btn-accent:focus {
    border: none;
    background-color: var(--accent-color);
  }

  .btn-accent:disabled,
  .btn-accent:focus:disabled {
    border: none;
    background-color: var(--accent-color);
  }

  .btn-accent:hover,
  .btn-accent:focus:hover {
    background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  }

  .btn-accent-outline,
  .btn-accent-outline:focus {
    color: var(--accent-color);
    border-color: var(--accent-color);
  }

  .btn-accent-outline:hover,
  .btn-accent-outline:focus:hover {
    color: var(--contrast-color);
    background-color: var(--accent-color);
  }

  .rank-img {
    width: 60px;
  }
/* End Button */

.badge-accent {
  background-color: var(--accent-color);
  color: var(--default-color);
}

.box-visitor {
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent-color), transparent 50%);
}


/* Tiptap editor css */
.cms-content {
    color: #d1d5db;
    line-height: 1.7;
}

/* Judul utama */
.cms-content h1,
.cms-content h2,
.cms-content h3 {
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 12px;
}

/* Tambahin icon lampu otomatis */
.cms-content h1::before,
.cms-content h2::before,
.cms-content h3::before {
    content: "💡 ";
    color: #facc15;
}

/* Paragraf */
.cms-content p {
    color: #9ca3af;
    margin-bottom: 12px;
}

/* List */
.cms-content ul {
    padding-left: 20px;
}

.cms-content li {
    margin-bottom: 10px;
    color: #d1d5db;
}

/* Strong (jadi accent otomatis) */
.cms-content strong {
    color: #60a5fa;
    font-weight: 600;
}

.pagination {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination li {
    display: inline-block;
}

.pagination .page-link {
    padding: 6px 12px;
    border-radius: 6px;
    background: #1f2937;
    border: 1px solid #374151;
    color: #d1d5db;
    text-decoration: none;
}

.pagination .page-link:hover {
    background: #374151;
    color: #fff;
}

.pagination .active .page-link {
    background: #9333ea;
    border-color: #9333ea;
    color: #fff;
}
.pagination svg {
    width: 16px;
    height: 16px;
}