:root {
  --gold-accent: #d4af37;
  --base-color: #a67c52;
  --base-color-light: #d2b48c;
  --complementary-color: #4a78c2;
  --background-color-dark: #121212;
  --text-color-dark: #dadada;
  --btn-bg-color-dark: #333;
  --btn-focus-shadow-dark: #e0e0e0;
  --form-control-bg-color-dark: #262626;
  --form-control-border-color-dark: #444;
  --text-success-color: #6FCF97;
  --text-error-color: #E57373;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../font/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Roboto';
  src: url('../font/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../font/Inter-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('../font/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Alegreya';
  src: url('../font/AlegreyaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

html {
  font-size: 1rem;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 1.1rem;
  }
}

body {
  margin-bottom: 4rem;
  background: linear-gradient(225deg, #232526 0%, #414345 100%);
  color: #f8f9fa;
  font-family: 'Alegreya', sans-serif;
  font-size: 1.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Inter', sans-serif;
  color: var(--base-color);
  font-weight: bold;
}

a {
  color: var(--gold-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:focus {
  color: var(--base-color-light);
}

a.text-reset,
a.text-reset:visited {
  color: #ffd700;
  text-decoration: underline dotted #ffd700;
}

a.text-reset:hover {
  color: #ff8800;
  text-decoration: underline solid #ff8800;
}

.btn,
.btn-dark,
.btn-primary {
  background-image: linear-gradient(90deg, #ff8800 0%, #ffd700 100%);
  color: var(--btn-bg-color-dark);
  /* opacity: 0.9; */
  /* background: linear-gradient(90deg, #232526 0%, #414345 100%); */
  /* color: var(--gold-accent); */
  font-weight: bold;
  letter-spacing: 1px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary.active:focus {
  box-shadow: none;
}

.btn-primary.active {
  color: var(--btn-bg-color-dark);
  background: var(--gold-accent);
}

.btn-dark:hover,
.btn-primary:hover {
  color: #000 !important;
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.5);
  color: #ffd700;
  border: 1px solid #444;
}

.btn-secondary:hover,
.btn-secondary.active {
  background: rgba(0, 0, 0, 0.9);
  color: #ffd700;
}

.form-control,
input.form-control,
select.form-control,
textarea.form-control {
  background: rgba(0, 0, 0, .35);
  color: #ffd700;
  border: 1px solid #444;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
  background: #232526;
  color: #ffd700;
  border-color: #ffd700;
  box-shadow: 0 0 0 2px #ffd70033;
}

.form-check-input {
  background-color: var(--form-control-bg-color-dark);
  border-color: var(--form-control-border-color-dark);
}

.list-group-item+.list-group-item {
  border-top-width: 1px;
}

hr {
  border-top: 2px solid #ffd700;
  opacity: 0.7;
}

.text-success {
  color: #00ff99 !important;
  font-weight: bold;
}

.text-danger {
  color: #ff4d4f !important;
  font-weight: bold;
}

.text-muted {
  color: var(--base-color-light) !important;
}

h5,
.fw-bold {
  color: #ffd700;
}

.navbar {
  background-color: var(--background-color-dark);
}

.navbar a {
  color: var(--gold-accent);
}

.navbar a:hover,
.navbar a:focus {
  color: var(--gold-accent);
  text-shadow: 0 0 0.5rem var(--gold-accent);
}

.navbar-brand {
  color: var(--base-color-light) !important;
}

.table-dark {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.table-dark th,
.table-dark td {
  border-color: #444;
  color: #f8f9fa;
  vertical-align: middle;
}

.table-dark th {
  background: #232526;
  color: #ffd700;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
}

.table-dark tr {
  transition: background 0.2s;
}

.table-dark tr:hover {
  background: #333a40;
}

.table>:not(caption)>*>* {
  background-color: transparent !important;
  border-bottom-width: 2px;
}

.table-comment {
  display: none;
  position: absolute;
  font-size: 0.95em;
  font-weight: normal;
  margin-top: 0.25rem;
  max-width: 30rem;
  padding: .25rem .75rem;
  background-color: var(--background-color-dark);
  border: 2px solid var(--btn-focus-shadow-dark);
  border-radius: 10px;
  z-index: 2;
  color: #aaa;
  word-break: break-word;
  overflow-wrap: break-word;
}

tr:hover .table-comment {
  display: block;
}

.weekday {
  background: rgba(34, 34, 34, 0.85);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid #444;
  border-left: 1rem solid var(--gold-accent);
}

.weekday p {
  font-size: 1.1rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
}

.weekday-win {
  border-left: 1rem solid var(--text-success-color);
}

.weekday-loss {
  border-left: 1rem solid var(--text-error-color);
}

.stat-name {
  width: 7rem;
}

.stat-name-long {
  width: 12rem;
}

.stat-value {
  font-weight: bold;
}

.statistics {
  max-height: 35rem;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.statistics-inner {
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.25);
  /* border: 2px solid var(--base-color); */
  border-radius: .5rem;
}

.filter-button {
  width: calc(33.33% - .5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* border: 2px solid #232526;
  transition: border-color 0.2s; */
}

.card {
  font-size: 0.9rem;
  background-color: rgba(34, 34, 34, 0.95);
  border: 2px solid var(--form-control-border-color-dark);
}

.card-header {
  border-bottom: none;
}

.fa-dice,
.fa-comment,
.fa-copy {
  color: #ffd700;
  transition: color 0.2s;
  cursor: pointer;
}

.fa-dice:hover,
.fa-comment:hover,
.fa-copy:hover {
  color: #ff8800;
}

::-webkit-scrollbar {
  width: 8px;
  background: #232526;
}

::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

#daily-streak {
  font-size: 1.3rem;
  color: #4caf50;
  font-weight: bold;
  background: rgba(76, 175, 80, 0.12);
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 4px;
}

#free-credits-per-amount {
  font-size: 1.3rem;
  color: #ff9800;
  font-weight: bold;
  background: rgba(255, 152, 0, 0.12);
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 4px;
}

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
}

.navbar-toggler-icon {
  background-image: none;
  width: 2rem;
  height: 2rem;
  position: relative;
  display: inline-block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  content: '';
  display: block;
  height: 3px;
  width: 100%;
  background: #ffd700;
  border-radius: 2px;
  margin: 6px 0;
  transition: all 0.3s;
}

.navbar-toggler-icon span {
  margin: 0;
}

.navbar-toggler-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
}

#user-records-table {
  font-size: 0.95rem;
}