// Settings
$has-custom-theme:      true  !default;
$enable-shadows:        true;
$is-dark-theme:         true;
//
// Colors
//
$white:                         #FFFFFF;
$gray-300:                      #f8f8f8;     // list group hover full color
$black:                         #000;


$text-muted:            theme-color("grey");   // text-muted
$border-color:          #E6E6E6;             // border-color
$border-active:         #B6CFF6;             // border-active



// Font family
$font-family-sans-serif: 'Heebo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol" !default;


//
// Sizes
// This variable affects the `.h-*` and `.w-*` classes.
//
$sizes:(
  20: 20%,
  30: 30%,
  40: 40%,
  60: 60%,
  70: 70%,
  80: 80%,
  85: 85%,
  90: 90%,
  95: 95%,
);

//
// Breakpoints
//

$grid-breakpoints: (
  xs: 0,
  sm: 576px,
  md: 768px,
  lg: 992px,
  xl: 1025px
);

//
// Font Sizes
//

$font-size-xl:                2rem    !default;        //32px
$font-size-xs:                0.75rem !default;        //12px
$small-font-size:             0.875rem;
$h3-font-size:                1.5rem  !default;


// Font Weight
$font-weight-normal:          400;
$font-weight-medium:          500;
$font-weight-bold:            700;

$headings-font-weight:        $font-weight-normal;

// Line Height
$headings-line-height:        1.334;


// Grid Columns
$grid-gutter-width:           2rem;

// Components
//
// Define common padding and border radius sizes and more.
$border-radius-lg:             0.5rem;

$line-height-xs:              1 !default;


// Badge
$badge-font-weight:           $font-weight-bold;


// Layout Theme Default/Dark
$x-aside-nav-bg:            $white                        !default;
$x-aside-nav-text:          theme-color("info")        !default;
$x-aside-nav-bg-dark:       theme-color("primary")        !default;
$x-aside-nav-text-dark:     $white                        !default;


// Button
$btn-font-weight:             $font-weight-medium !default;
$input-btn-padding-y-xs:      0.2rem              !default;
$input-btn-padding-x-xs:      0.75rem             !default;
$input-btn-padding-y:         0.5rem;
$input-btn-padding-x:         1.25rem;
$input-btn-padding-y-lg:      1rem;
$input-btn-padding-x-lg:      1.5rem;
$btn-padding-y-lg:            0.75rem;

$input-btn-line-height-sm:    $line-height-xs;
$input-btn-line-height-xs:    $line-height-xs !default;

$btn-letter-spacing:          0.02em !default;
$btn-line-height:             1.2 !default;

// Box Shadow
//
$box-shadow-sm:               0 0 0.25rem rgba(theme-color("info"), 0.16);
$box-shadow:                  0 0.75rem 1.5rem -0.25rem rgba(theme-color("info"), 0.16);
$box-shadow-md:               0 0.75rem 1.5rem -0.25rem rgba(theme-color("info"), 0.25);
$box-highlight-shadow:        0 0.75rem 1.5rem -0.25rem rgba(var(--custom-theme-primary-rgb, theme-color('primary')), 0.2);

// disable inset form-control shadow while keep shadow for other components.
$input-box-shadow:           inset 0 0 0 rgba($black, .000);
$btn-box-shadow:             $input-box-shadow;
$custom-select-box-shadow:   $input-box-shadow;


// Form
//
$form-group-margin-bottom:    2rem;

// Input
$input-placeholder-color:     theme-color("info-transparent");
$input-plaintext-color:       theme-color("default");

$input-border-color:          $border-color;

// Custom Form
$custom-select-padding-x:           1rem;
$custom-select-indicator-padding:   1.25rem;
$custom-select-indicator-color:     theme-color("info");
$custom-select-bg-size:             1.25em 1.25em;
$custom-select-indicator:           str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath fill='#{$custom-select-indicator-color}' d='M20.397 31.733a2.629 2.629 0 0 0-3.642 0 2.44 2.44 0 0 0 0 3.53L46.18 63.79a2.629 2.629 0 0 0 3.642 0l29.425-28.529a2.444 2.444 0 0 0 0-3.53 2.626 2.626 0 0 0-3.64 0L48 57.753l-27.602-26.02z'/%3E%3C/svg%3E"), "#", "%23");



// Custom Form Checkbox & Radio
$custom-control-gutter:                  2.5rem;
$custom-control-indicator-size:          1.5rem;
$custom-checkbox-indicator-border-radius: $border-radius-lg;
$custom-control-indicator-checked-color: var(--custom-theme-primary, theme-color("default"));
$custom-control-indicator-checked-bg:    var(--custom-theme-primary-rgb, theme-color("primary-transparent"));

$custom-control-indicator-active-bg:     $custom-control-indicator-checked-bg;
$custom-control-indicator-bg-size:       cover;
$custom-checkbox-indicator-icon-checked: str-replace(url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cpath fill='#{$custom-control-indicator-checked-color}' d='M66.8786797,30.8786797 C68.0502525,29.7071068 69.9497475,29.7071068 71.1213203,30.8786797 C72.2928932,32.0502525 72.2928932,33.9497475 71.1213203,35.1213203 L41.1213203,65.1213203 C39.8569895,66.3856512 37.7743695,66.270305 36.6573936,64.8740851 L24.6573936,49.8740851 C23.6223649,48.5802993 23.8321291,46.6924222 25.1259149,45.6573936 C26.4197007,44.6223649 28.3075778,44.8321291 29.3426064,46.1259149 L39.2487567,58.5086027 L66.8786797,30.8786797 Z'/%3E%3C/svg%3E"), "#", "%23");

// Card

$card-border-color:                 theme-color("grey");
$card-border-radius:                $border-radius-lg;

// Dropdown
$dropdown-border-color:             theme-color("grey");
$dropdown-box-shadow:               $box-shadow;

// Avatar
// $x-avatar-bg:                 theme-color("light-transparent");
// $x-avatar-text:               theme-color("light");
// $x-avatar-border-color:       theme-color("light");
// $x-avatar-border-width:       2px;

// Tooltip
$tooltip-max-width:           20rem;
$tooltip-bg:                  theme-color("dark-secondary");
$tooltip-border-radius:       $border-radius-lg;
$tooltip-opacity:             0.75;
$tooltip-padding-y:           0.5rem;
$tooltip-padding-x:           $tooltip-padding-y * 2;



// Breadcrumbs
$breadcrumb-margin-bottom:          0;
$breadcrumb-bg:                     transparent;
$breadcrumb-divider-color:          theme-color("info-transparent");
$breadcrumb-active-color:           theme-color("info");
$breadcrumb-divider:                quote("/");



// Badges
$badge-font-size:                   75% !default;
$badge-font-weight:                 $font-weight-medium;
$badge-padding-y:                   .25em;
$badge-padding-x:                   .5em;
$badge-pill-padding-x:              .5em;


//
// Modal
//
$modal-dialog-margin:            0rem; // Put 'rem' here to make sure `calc()` working
$modal-dialog-margin-y-sm-up:    $modal-dialog-margin;

$modal-content-box-shadow-xs:    0 1rem 2rem -0.5rem rgba(theme-color('dark'), .24);
$modal-content-box-shadow-sm-up: $modal-content-box-shadow-xs;

$modal-backdrop-bg:              theme-color('dark-secondary');
$modal-backdrop-opacity:         0.4;

$modal-header-border-color:      $border-color;

$modal-inner-padding:            1rem 2rem;

$modal-lg:                       56.25rem;
$modal-md:                       37.50rem;
$modal-sm:                       22.50rem;


// Link
$link-color:       var(--custom-theme-primary, theme-color('primary'));
$link-hover-color: var(--custom-theme-primary-hover, theme-color('primary'));

// Section
$x-section-header-min-height: 3rem;



// Alerts
$alert-padding-y:                   0.5rem;
$alert-padding-x:                   0.5rem;
$alert-margin-bottom:               1rem;


// Toasts
$toast-max-width: 30rem;
$toast-padding-x: 1rem;
$toast-padding-y: 1rem;
$toast-font-size: $small-font-size;
