@font-face {
  font-family: "HeaderFont";
  src: url("fonts/drip_font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  src: url("fonts/content_font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "InterFont";
  src: url("fonts/inter_font.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* -------------------------
   Loader Styles
------------------------- */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.loader-overlay.slide-up {
  transform: translateY(-100%);
}

.loader-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-decoration {
  position: absolute;
  top: calc(50% + 3px);
  left: 50%;
  transform: translate(-50%, -50%);
}

.loader-decoration svg {
  color: var(--dark-secondary-color);
  width: 50px;
}

/* From Uiverse.io by gagan-gv */ 
.spinner {
  position: relative;
 border: 0 solid transparent;
 border-radius: 50%;
 width: 80px;
 height: 80px;
}

.loader {
 width: inherit;
 height: inherit;
 position: absolute;
}

.loader::before,
.loader::after {
 content: '';
 border: 3px solid var(--dark-secondary-color);
 border-radius: 50%;
 width: inherit;
 height: inherit;
 position: absolute;
 opacity: 1;
}

.l1::before,
.l1::after {
 animation: clockwiseZ 2.5s infinite;
}

.l2::after,
.l2::before {
 animation: anticlockwiseZ 2.5s infinite;
}

@keyframes clockwiseZ {
 0%, 100% {
  transform: rotateY(0);
 }

 50% {
  transform: rotateY(180deg) skew(-10deg, -5deg);
 }
}

@keyframes anticlockwiseZ {
 0%, 100% {
  transform: rotateX(0);
 }

 50% {
  transform: rotateX(-180deg) skew(10deg, 5deg);
 }
}

/* .loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #EEE6D9;
  border-top: 4px solid #3A45A4;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} */


:root {
  /* Customize DataTable */
  --dt-row-selected: 67, 102, 129 !important;
  --dt-row-selected-text: 255, 255, 255 !important;

  /* Custom Colors */
  --primary-color: #F3EFE4;
  --dark-primary-color: #EEE6D9;
  
  --secondary-color: #436681;
  --dark-secondary-color: #161A3E;
  
  --blue-accent-color: #3A45A4;
  --brown-accent-color: #C5B496;
  
  --green: #46825e;
  --blue: #346184;
  --red: #993B37;
  --orange: #FA8700;
  --gray: #7A7B80;
  
  --gold: #F6C800;
  --purple: #9776D3;
  --light-blue: #5687F2;
  
  --card-radius: 5px;

  --input-bg: #F4F0E5;
}

input::-ms-reveal,
input::-ms-clear {
  display: none;
}

body {
  height: 100vh;
  height: 100dvh;
  
  display: flex;
  justify-content: center;
  align-items: center;
  
  font-family: "InterFont", "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: url("assets/logger_bg.webp") top left / 100% 100% no-repeat;
  
  font-size: 16px;
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.blur-overlay {
  position: absolute;
  inset: 0;
  background: url("assets/logger_bg.webp") top left / 100% 100% no-repeat;
  filter: blur(3.65px);
  z-index: -1;
}

.login-panel {
  position: relative;
  width: 330px;
  min-height: 468px;
  background: #F5F1E6;
  border-radius: 5px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 16px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.login-border {
  padding: 8px;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.login-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Login Title Section */
.login-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 16px;
}

.welcome-text {
  text-align: center;
  font-family: "HeaderFont";
}

.welcome-main {
  display: block;
  font-size: 36px;
  color: var(--dark-secondary-color);
  line-height: 1.2;
}

.welcome-sub {
  display: block;
  font-size: 20px;
  margin-top: -10px;
  color: var(--secondary-color);
}

/* Subtext box with decoration */
.login-subtext-box {
  position: relative;
  min-height: 51px;
  border: 1px solid #EDE4D6;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}

.login-decoration {
  position: absolute;
  left: 24px;
  top: -39px;
  pointer-events: none;
}

.login-decoration svg {
  width: 176.801px;
  height: 130.869px;
}

.login-subtext, .login-subtext-highlight {
  z-index: 5;

}

.login-subtext {
  font-family: "InterFont", sans-serif;
  font-size: 14px;
  color: var(--secondary-color);
  text-align: center;
  margin: 0;
}

.login-subtext-highlight {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  letter-spacing: 0.7px;
  font-size: 14px;
  background: linear-gradient(90deg, #161A3E 34.6%, #3A45A4 57.4%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

/* Login Input Fields */
.login-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 263px;
  padding-top: 16px;
  padding-bottom: 48px;
}

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-input-group label {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 16px;
  color: var(--secondary-color);
  line-height: 1.4;
}

.login-input-group .form-group {
  margin: 0 !important;
}

.login-input-group input.form-control {
  width: 100%;
  height: 40px;
  padding: 12px 16px;
  background: var(--input-bg);
  border: 1px solid #B3A487;
  border-radius: 8px;
  font-size: 16px;
  color: #1E1E1E;
}

.login-input-group input.form-control:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(67, 102, 129, 0.2);
}

#login_password {
  padding-right: 45px !important;
}

/* Password field with toggle */
.password-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  bottom: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.password-toggle svg {
  width: 24px;
  height: 24px;
}

/* Show hidden icon by default, hide visible icon */
.password-toggle .icon-hidden {
  display: block;
}

.password-toggle .icon-visible {
  display: none;
}

/* When visible class is added, swap icons */
.password-toggle.visible .icon-hidden {
  display: none;
}

.password-toggle.visible .icon-visible {
  display: block;
}

/* Login Button */
.btn-login {
  width: 183px;
  height: 48px;
  margin-bottom: 8px;
  background: var(--dark-secondary-color);
  border: 1px solid var(--brown-accent-color);
  border-radius: 52px;
  color: #EEE6DB;
  font-family: "HeaderFont";
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login:hover {
  background: #1e2352;
  transform: translateY(-2px);
  color: var(--primary-color);
}

.btn-login:active {
  transform: translateY(0);
}

/* ============================================
   END LOGIN PAGE STYLES
   ============================================ */

/* Override shinyToastr styling */
#toast-container>div.toast {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  box-shadow: none;
  opacity: 1;
}

#toast-container>.toast-success {
  background-color: var(--green);
}

#toast-container>.toast-error {
  background-color: var(--red);
}

/* Header Row with logout */
.header-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  width: 100%;
  margin-bottom: 32px;
}

.header-title {
  color: var(--dark-secondary-color);
  text-align: center;
  font-family: "HeaderFont";
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  
  width: 482px;
  height: 124px;
  background: url("assets/header_banner.webp") center / cover no-repeat;
}

.logout-container {
  position: absolute;
  right: 20px;
  top: -55px;

  margin-top: 8px;
  border-bottom: none;
}

.btn-logout {
  padding: 19px 14px;
  background: #222648;
  border: 2px solid #f9f9f9;
  border-radius: 5px;
  
  font-family: "HeaderFont", sans-serif;
  font-size: 18px;
  color: white;
  
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout .action-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-logout:hover {
  border: 2px solid #f9f9f9;
  background: #2d3260;
  transform: translateY(-10px);
  color: white;
}

.subtitle {
  color: var(--secondary-color);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.tabbable {
  position: relative;
  z-index: 1;
}

.tab-content {
  position: relative;
  z-index: 1;
}

/* Navigation Tabs - Shiny tabsetPanel styling */
.panel-wrapper .nav-tabs {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  position: absolute;
  top: -55px;
  left: 20px;
  z-index: 1;
  border-bottom: none;
}

.panel-wrapper .nav-tabs > li {
  margin-bottom: 0;
}

.panel-wrapper .nav-tabs > li > a {
  background: rgba(245, 241, 230, 0.5);
  border: 2px solid var(--dark-primary-color);
  border-radius: 5px;
  color: white;
  font-family: "HeaderFont";
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  user-select: none;
  padding: 19px 14px;
  margin-right: 0;
}

.panel-wrapper .nav-tabs > li > a:hover {
  transform: translateY(-10px);
  background: rgba(245, 241, 230, 0.5);
  border-color: var(--dark-primary-color);
}

.panel-wrapper .nav-tabs > li.active > a,
.panel-wrapper .nav-tabs > li.active > a:hover,
.panel-wrapper .nav-tabs > li.active > a:focus {
  transform: translateY(-10px);
  background: rgba(245, 241, 230, 0.5);
  border: 2px solid var(--dark-primary-color);
  color: white;
}

.panel-wrapper .tab-content {
  padding-top: 0;
}

.panel-wrapper .tab-content > .tab-pane {
  padding: 0;
}


.panel-wrapper {
  position: relative;
  min-height: 530px;
}

.logger-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 530px;
  overflow: hidden;
}

.input-card {
  display: flex;
  padding: 16px;
  gap: 28px;
  width: 100%;

  margin-inline: auto;
  border-radius: 5px;
  background: var(--dark-primary-color);
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

/* Override bootstrap */
.form-control, .selectize-input {
  display: flex !important;
  height: 40px !important;
  padding: 12px 16px !important;
  align-items: center !important;
  gap: 8px !important;
  color: black !important;
  align-self: stretch !important;

  border-radius: 8px !important;
  border: 1px solid var(--brown-accent-color) !important;
  background: var(--input-bg) !important;

  font-size: 16px;
}

.form-group {
  width: 100% !important;
}

.input-card .col {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
  gap: 8px;
  flex-shrink: 0;
}

.input-card .col-4 {
  flex: 0 0 350px;
}

/* Date Input */
.date-container {
  position: relative;
  width: 100%;
}

.date-container svg {
  position: absolute;
  right: 16px;
  top: 39px;
  pointer-events: none;
}


/* Action Buttons Styling */
.btn-row {
  display: grid;
  row-gap: 8px;
  column-gap: 8px;
  flex: 1 0 0;
  align-self: stretch;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.btn-custom {
  display: flex;
  width: 100%;
  height: 48px;
  color: var(--primary-color);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;

  padding: 4px 10px 4px 7px;
  align-items: center;
  font-family: "HeaderFont";
  align-self: end;
  justify-self: stretch;
  border-radius: 52px;
  transition: background-color 0.2s ease;
}

.btn-custom .action-label {
  display: flex;
  align-items: center;
}

.btn-add {
  background: var(--green);
}

.btn-add .action-label {
  gap: 28px;
}

.btn-update {
  padding-left: 10px;
  background: var(--blue);
}

.btn-update .action-label {
  gap: 14px;
}

.btn-delete,
.btn-clear {
  align-self: start;
}

.btn-delete {
  background: var(--red);
}

.btn-delete .action-label {
  gap: 12px;
}

.btn-clear {
  background: var(--gray);
}

.btn-clear .action-label {
  gap: 16px;
}


label {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-weight: 400;
  font-size: 16px;
  color: var(--secondary-color);
}

/* -------- SECOND SECTION -------------- */
/* Styling of History Table */
.table-card {
  flex: 1;
  min-height: 0;
  background-color: var(--dark-primary-color);
  border-radius: var(--card-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.table-card-header svg {
  margin-bottom: 4px;
}

.table-card .left-side {
  font-family: "HeaderFont";
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #161A3E 0.02%, #3A45A4 25.72%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.left-side svg {
  padding-bottom: 4px;
}

.table-card .subheader {
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "InterFont";
  margin-bottom: 4px;
}


.table-card .right-side {
  display: flex;
  align-items: center;
}

.inline-field label {
  display: inline-block;
  margin-right: 8px;
  margin-bottom: 0;
  font-family: "HeaderFont";

  background: linear-gradient(90deg, #161A3E 0.02%, #3A45A4 67.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.inline-field label + div {
  margin-bottom: 4px;
}

.inline-field .shiny-input-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
}

.inline-field .selectize-input {
  display: flex;
  width: 250px;
  height: 29px;
  padding: 12px 16px;
  align-items: center;
  gap: 8px;
}

table, th, td {
  border-collapse: collapse;
}

.dataTables_scroll {
  border: 1px solid var(--dark-secondary-color);
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--dark-secondary-color);
}

.dataTables_scrollBody {
  scrollbar-width: thick;
  scrollbar-color: var(--dark-secondary-color) #E2D8C9;
}

/* Custom scrollbar styles */
.dataTables_scrollBody::-webkit-scrollbar {
  width: 10px; /* similar to scrollbar-width: thick */
}

.dataTables_scrollBody::-webkit-scrollbar-track {
  background: #E2D8C9;
}

.dataTables_scrollBody::-webkit-scrollbar-thumb {
  background-color: var(--dark-secondary-color);
}

/* current active button styling */
.dataTables_wrapper .dataTables_paginate a.paginate_button.current {
  color: var(--primary-color) !important;
  background: var(--dark-secondary-color) !important;
}

/* Override hover styling */
.dataTables_wrapper .dataTables_paginate a.paginate_button:hover {
  color: var(--primary-color) !important;
  background: var(--secondary-color) !important;
}

/* Disabled text on hover be visible */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, .dataTables_wrapper .dataTables_paginate a.paginate_button.disabled:hover {
  color: var(--primary-color) !important;
}

/* Avoid current button to hover */
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate a.paginate_button.current:hover {
  color: var(--primary-color) !important;
  background: var(--dark-secondary-color) !important;
}

/* Add vertical borders between table columns */
.table-card th,
.table-card td {
  border-right: 1px solid var(--dark-secondary-color);
}

.table-card th:last-child,
.table-card td:last-child {
  border-right: none;
}

/* Header */
.table-card thead th {
  background: var(--dark-secondary-color);
  color: var(--primary-color);

  font-family: "ContentFont";
  letter-spacing: 0.7px;
  
  text-align: center !important;
  font-size: 16px;
  font-style: normal;
  font-weight: 400 !important;

  border-bottom: 1px solid var(--dark-secondary-color);
}

/* Body cells */
.table-card tbody td {
  border-bottom: 1px solid var(--dark-secondary-color);
  text-align: center !important;
}

/* Zebra rows */
.table-card tbody tr:nth-child(even) {
  background-color: var(--dark-primary-color);
}

.table-card tbody tr:nth-child(odd) {
  background-color: var(--primary-color);
}

/* Hover */
.table-card tbody tr:hover {
  background: #E2D8C9;
}

/* --- Analytics Page Styling --- */
.analytics-content {
  display: flex;
  gap: 16px;
  width: 100%;
  height: 530px;
}

.analytics-left {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  min-height: 0;
}

.analytics-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.stats-card {
  background: var(--dark-primary-color);
  border-radius: var(--card-radius);
  padding: 16px;
}

.overall-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Overall Statistics Card Title */
.stats-card-title {
  background: var(--dark-secondary-color);
  color: var(--dark-primary-color);
  font-family: "HeaderFont";
  font-size: 16px;
  padding: 9px 8px 4px 8px;
  border-radius: var(--card-radius);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stats-card-title svg {
  margin-bottom: 5.5px;
}

.pull-trends .stats-card-header {
  justify-content: space-between;
}

.stats-card-header {
  font-family: "HeaderFont";
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.recent-pulls-card .stats-card-header {
  background: linear-gradient(90deg, #161A3E 0.02%, #3A45A4 57.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pull-trends .stats-card-header {
  background: none;
  -webkit-text-fill-color: initial;
}

.pull-trends .stats-card-header .header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #161A3E 0.02%, #3A45A4 50%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats-card-header svg {
  flex-shrink: 0;
}

.stats-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.stats-column {
  display: flex;
  width: 100%;
  padding: 0 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  position: relative;
}

.stats-divider {
  display: flex;
  width: 100%;
  padding: 0 16px;
  flex-direction: column;
  align-items: flex-start;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
}

.divider-line {
  background: rgba(0, 0, 0, 0.30);
  width: 100%;
  height: 1px;
}

.stat-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-label {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 12px;
  color: var(--secondary-color);
}

.stat-value {
  display: flex;
  gap: 4px;

  font-family: "InterFont";
  font-weight: bold;
  font-size: 16px;
  color: var(--dark-secondary-color);
}

/* Info Icon */
.info-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: help;
}

.info-icon svg {
  width: 15px;
  height: 15px;
}

.info-icon:hover svg path {
  stroke: #3A45A4;
}


/* Current Progress Card */
.current-progress {
  padding: 16px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.progress-title {
  width: 100%;
  font-family: "HeaderFont";
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(90deg, #161A3E 0.2%, #3A45A4 67.7%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.progress-title svg {
  flex-shrink: 0;
}

.progress-header .shiny-input-container {
  margin: 0;
  display: flex;
  justify-content: end;
}

.progress-header .selectize-input {
  background: var(--primary-color) !important;
  border-color: #b3a487 !important;
  min-width: 120px;
  width: 236.748px;
}

.pity-progress-box {
  background: var(--primary-color);
  border-radius: 8px;
  padding: 16px;
}

.pity-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.pity-label {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 12px;
  color: #8d8d8d;
  letter-spacing: 0.5px;
}

.pity-highlight {
  color: var(--green);
}

.pity-counter {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.pity-current {
  font-size: 20px;
  color: var(--dark-secondary-color);
}

.pity-max {
  font-size: 12px;
  color: #8d8d8d;
}

.pity-bar-container {
  width: 100%;
}

.pity-bar {
  width: 100%;
  height: 12px;
  background: linear-gradient(90deg, var(--green) 0%, var(--orange) 72.65%, #993B37 100%);
  border-radius: 64px;
  overflow: hidden;
  position: relative;
}

.soft-pity-indicator {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.pity-bar-bg {
  width: 100%;
  height: 12px;
  background: #E2D8C9;
  border-radius: 64px;
  overflow: hidden;
  position: relative;
}

.pity-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green) 0%, var(--orange) 80%, var(--red) 100%);
  border-radius: 64px;
  transition: width 0.3s ease, background-size 0.3s ease;
  background-size: 100% 100%;
  background-position: left;
  background-repeat: no-repeat;
}

.pity-markers {
  display: flex;
  margin-top: 4px;
  font-family: "InterFont";
  font-size: 10px;
  color: #8d8d8d;
  letter-spacing: 0.5px;
}

.marker {
  text-align: end;
}

.marker.hard-pity {
  flex: 1; /* (74/90)*100 */
}

.soft-pity {
  color: var(--orange);
}

.hard-pity {
  color: var(--red);
}

/* Recent Pulls Card */
.recent-pulls-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

#recent_pulls_list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--dark-secondary-color) #E2D8C9;
}

#recent_pulls_list::-webkit-scrollbar {
  width: 6px;
}

#recent_pulls_list::-webkit-scrollbar-track {
  background: #E2D8C9;
  border-radius: 3px;
}

#recent_pulls_list::-webkit-scrollbar-thumb {
  background-color: var(--dark-secondary-color);
  border-radius: 3px;
}

.recent-pull-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: var(--primary-color);
  border-radius: var(--card-radius);
  margin-bottom: 10px;
  border: 1px solid var(--gold);
}

.recent-pull-item.purple {
  border-color: var(--purple);
}

.recent-pull-item.gold {
  border-color: var(--gold);
}

.recent-pull-item:last-child {
  margin-bottom: 0;
}

.pull-stars {
  font-size: 18px;
  min-width: 100px;
  display: flex;
  justify-content: flex-end;
  gap: 2px;
  color: #F6C800; /* gold for 5-star by default */
}

.recent-pull-item.purple .pull-stars {
  color: #a259ec; /* purple for 4-star */
}
.recent-pull-item.gold .pull-stars {
  color: #F6C800; /* gold for 5-star */
}

.stars-5 {
  color: var(--gold);
}

.stars-4 {
  color: var(--purple);
}

.stars-3 {
  color: var(--light-blue);
}

.pull-name {
  flex: 1;
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 14px;
  color: var(--secondary-color);
  margin-left: 16px;
  margin-right: 12px;
}

.pull-pity {
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  font-size: 20px;
}

.pull-pity.stars-5 {
  color: var(--gold);
}

.pull-pity.stars-4 {
  color: #9d7ed3;
}

.no-pulls {
  text-align: center;
  color: var(--secondary-color);
  font-family: "ContentFont";
  letter-spacing: 0.7px;
  padding: 20px;
}

/* Pull Trends Card */
.pull-trends {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.pull-trends svg, .progress-title svg, .btn-logout svg {
  margin-bottom: 4px;
}

.trends-chart-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  border-radius: var(--card-radius);
  overflow: hidden;
  background-color: var(--dark-secondary-color);
}

.trends-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  background: var(--dark-secondary-color);
  border-radius: var(--card-radius);
  color: var(--primary-color);
  font-family: "ContentFont";
  letter-spacing: 0.7px;
}

/* -------------------------
   Import Button Styles
------------------------- */
.btn-import {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  background-color: var(--green);
  color: white;
  border-radius: 5px;
  font-family: "HeaderFont", sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-import .action-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-import:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(70, 130, 94, 0.4);
}

.btn-import svg {
  flex-shrink: 0;
}

/* -------------------------
   Import Modal Styles
------------------------- */
.modal-content {
  background-color: var(--primary-color) !important;
  border-radius: var(--card-radius) !important;
  border: none !important;
}

.modal-header {
  border-bottom: 1px solid var(--dark-primary-color) !important;
  padding: 16px 20px !important;
}

.modal-title {
  width: 100%;
}

.import-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "HeaderFont", sans-serif;
  font-size: 18px;
  color: var(--dark-scondary-color);
}

.import-modal-header svg {
  color: var(--green);
}

.modal-body {
  padding: 20px !important;
}

.import-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.import-instructions {
  font-family: "ContentFont", sans-serif;
  color: var(--secondary-color);
}

.import-instructions p {
  margin: 0 0 4px 0;
}

.import-note {
  font-size: 12px;
  color: var(--gray);
  font-style: italic;
}

/* File Input Styling */
.import-modal-content .form-group {
  margin-bottom: 0;
}

.import-modal-content .btn-default {
  display: flex;
  align-items: center;
  background-color: var(--green);
  color: white;
  font-family: "ContentFont", sans-serif;
  border-radius: 5px 0 0 5px;
  height: 40px;
  line-height: 1.5;
}

.import-modal-content .btn-default:hover {
  background-color: #3a6e4e;
}

.import-modal-content .form-control {
  border: 1px solid var(--dark-primary-color);
  border-radius: 0 5px 5px 0 !important;
  font-family: "ContentFont", sans-serif;
  border-left: none;
}

/* Preview Table */
.import-preview {
  max-height: 200px;
  overflow-y: auto;
}

.preview-label {
  font-family: "ContentFont", sans-serif;
  font-size: 14px;
  color: var(--secondary-color);
  margin-bottom: 8px;
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "InterFont", sans-serif;
  font-size: 12px;
}

.preview-table th {
  background-color: var(--dark-primary-color);
  color: var(--dark-secondary-color);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
}

.preview-table td {
  padding: 6px 12px;
  border-bottom: 1px solid var(--dark-primary-color);
  color: var(--secondary-color);
}

.preview-table tr:hover td {
  background-color: var(--dark-primary-color);
}

.preview-more {
  font-family: "ContentFont", sans-serif;
  font-size: 12px;
  color: var(--gray);
  font-style: italic;
  margin-top: 8px;
}

.import-error {
  color: var(--red);
  font-family: "ContentFont", sans-serif;
  font-size: 14px;
}

/* Existing Data Warning in Import Modal */
.existing-data-warning {
  background: rgba(250, 135, 0, 0.1);
  border: 1px solid var(--orange);
  border-radius: 5px;
  padding: 12px;
  margin-bottom: 12px;
}

.existing-data-warning .warning-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "ContentFont", sans-serif;
  font-size: 14px;
  color: var(--orange);
  margin-bottom: 8px;
}

.existing-data-warning .warning-header svg {
  flex-shrink: 0;
  color: var(--orange);
}

.existing-data-warning .checkbox {
  margin: 0;
}

.existing-data-warning .checkbox label {
  font-family: "ContentFont", sans-serif;
  font-size: 13px;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.existing-data-warning input[type="checkbox"] {
  position: relative;
  margin-top: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--red);
}

.existing-data-warning span {
  display: flex;
  align-items: center;
}

/* Modal Footer */
.modal-footer {
  border-top: 1px solid var(--dark-primary-color) !important;
  padding: 12px 20px !important;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn-modal-cancel {
  background-color: var(--gray);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: "ContentFont", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-modal-import {
  background-color: var(--green);
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  font-family: "ContentFont", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

/* ============================================
   ITEM DETAIL MODAL STYLES
   ============================================ */

.item-detail-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "HeaderFont", sans-serif;
  font-size: 18px;
  color: var(--dark-secondary-color);
}

.item-detail-modal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.item-detail-image-container {
  width: 140px;
  height: 170px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-primary-color) 0%, #E2D8C9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.item-detail-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.item-detail-header-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-detail-name {
  font-family: "HeaderFont", sans-serif;
  font-size: 24px;
  color: var(--dark-secondary-color);
  line-height: 1.2;
}

.item-detail-title {
  font-family: "ContentFont", sans-serif;
  font-size: 14px;
  color: var(--secondary-color);
  font-style: italic;
  margin-top: -4px;
}

.item-detail-stars {
  display: flex;
  gap: 2px;
}

.item-detail-stars.stars-5 {
  color: var(--gold);
}

.item-detail-stars.stars-4 {
  color: var(--purple);
}

.item-detail-stars.stars-3 {
  color: var(--light-blue);
}

.item-detail-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.item-detail-info-row .info-label {
  font-family: "ContentFont", sans-serif;
  color: var(--secondary-color);
  min-width: 60px;
}

.item-detail-info-row .info-value {
  font-family: "InterFont", sans-serif;
  color: var(--dark-secondary-color);
  font-weight: 500;
}

.item-detail-passive {
  margin-top: 4px;
  font-size: 13px;
}

.item-detail-passive .passive-label {
  font-family: "ContentFont", sans-serif;
  color: var(--secondary-color);
}

.item-detail-passive .passive-name {
  font-family: "InterFont", sans-serif;
  color: var(--blue-accent-color);
  font-weight: 500;
}

.item-detail-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-detail-section {
  background: var(--dark-primary-color);
  border-radius: 8px;
  padding: 12px;
}

.item-detail-section .section-title {
  font-family: "HeaderFont", sans-serif;
  font-size: 14px;
  color: var(--dark-secondary-color);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.item-detail-section .section-content {
  font-family: "ContentFont", sans-serif;
  font-size: 13px;
  color: var(--secondary-color);
  line-height: 1.5;
}

.item-detail-section .api-error {
  color: var(--gray);
  font-style: italic;
  text-align: center;
  padding: 16px 0;
}

.item-detail-pull-info {
  display: flex;
  gap: 16px;
  justify-content: space-around;
  background: var(--dark-primary-color);
  border-radius: 8px;
  padding: 12px;
}

.pull-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pull-info-label {
  font-family: "ContentFont", sans-serif;
  font-size: 11px;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pull-info-value {
  font-family: "InterFont", sans-serif;
  font-size: 16px;
  color: var(--dark-secondary-color);
  font-weight: 600;
}

.pull-info-value.pity-value.stars-5 {
  color: var(--gold);
}

.pull-info-value.pity-value.stars-4 {
  color: var(--purple);
}

.pull-info-value.pity-value.stars-3 {
  color: var(--light-blue);
}

.btn-modal-close {
  background-color: var(--dark-secondary-color);
  color: white;
  padding: 8px 24px;
  border-radius: 5px;
  font-family: "ContentFont", sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border: none;
}

.btn-modal-close:hover {
  color: white;
  background-color: #2d3260;
}

/* Make recent pull items clickable */
.recent-pull-item {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recent-pull-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.recent-pull-item:active {
  transform: translateY(0);
}