html,
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a,
.btn-link {
  color: #006bb7;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA9NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
  text-align: start;
}

/* OmniForge Stream Counter Styles - Ported from Node.js version */

body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

[data-bs-theme="dark"] body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
}

.stream-counter-container {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  /* Increased slightly for Blazor layout */
  width: 100%;
  margin: 0 auto;
}

.stream-counter-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 40px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .stream-counter-container {
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
}

[data-bs-theme="dark"] .stream-counter-container h1 {
  color: #fff;
}

[data-bs-theme="dark"] .counter-box {
  background: #2d2d2d;
  border-top: 5px solid;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .counter-value {
  color: #fff;
}

[data-bs-theme="dark"] .counter-label {
  color: #aaa;
}

[data-bs-theme="dark"] .stat-item {
  background: #2d2d2d;
  border-left: 4px solid #667eea;
}

[data-bs-theme="dark"] .stat-item span:first-child {
  color: #aaa;
}

[data-bs-theme="dark"] .stats-grid {
  background: #1a1a1a;
}

[data-bs-theme="dark"] .card {
  background-color: #2d2d2d;
  color: #fff;
}

[data-bs-theme="dark"] .table {
  color: #fff;
}

[data-bs-theme="dark"] .table-striped>tbody>tr:nth-of-type(odd)>* {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .table-hover>tbody>tr:hover>* {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
  background-color: #2d2d2d;
  border-color: #444;
  color: #fff;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #3d3d3d;
  color: #fff;
}

[data-bs-theme="dark"] .auth-card {
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
}

[data-bs-theme="dark"] .auth-header h1 {
  color: #fff;
}

[data-bs-theme="dark"] .auth-subtitle,
[data-bs-theme="dark"] .auth-login p,
[data-bs-theme="dark"] .auth-features li {
  color: #aaa;
}

[data-bs-theme="dark"] .auth-features h3 {
  color: #8b9dc3;
}

.counters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.counter-box {
  background: white;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 5px solid;
}

.counter-box.deaths {
  border-top-color: #e74c3c;
}

.counter-box.swears {
  border-top-color: #f39c12;
}

.counter-label {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.counter-value {
  font-size: 4em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #333;
  font-family: 'Courier New', monospace;
}

.counter-box.deaths .counter-value {
  color: #e74c3c;
}

.counter-box.swears .counter-value {
  color: #f39c12;
}

.btn-custom {
  padding: 12px 24px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-increment,
.btn-decrement {
  width: 50px;
  height: 50px;
  padding: 0;
  font-size: 1.5em;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.counter-box.deaths .btn-increment {
  background: #e74c3c;
  color: white;
}

.counter-box.deaths .btn-decrement {
  background: #c0392b;
  color: white;
}

.counter-box.swears .btn-increment {
  background: #f39c12;
  color: white;
}

.counter-box.swears .btn-decrement {
  background: #d68910;
  color: white;
}

.btn-increment:hover,
.btn-decrement:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-increment:active,
.btn-decrement:active {
  transform: scale(0.95);
}

.controls-section {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-reset {
  background: #3498db;
  color: white;
}

.btn-export {
  background: #2ecc71;
  color: white;
}

.btn-reset:hover {
  background: #2980b9;
  color: white;
}

.btn-export:hover {
  background: #27ae60;
  color: white;
}

/* Dashboard Button Colors */
.btn-series {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
  color: white;
}

.btn-series:hover {
  background: linear-gradient(135deg, #00a187 0%, #00b8b5 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
}

.btn-settings {
  background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  color: white;
}

.btn-settings:hover {
  background: linear-gradient(135deg, #5b4cdb 0%, #918af5 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.btn-alerts {
  background: linear-gradient(135deg, #fd7e14 0%, #ffc107 100%);
  color: white;
}

.btn-alerts:hover {
  background: linear-gradient(135deg, #e67211 0%, #e6ad06 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.4);
}

.btn-effects {
  background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
  color: white;
}

.btn-effects:hover {
  background: linear-gradient(135deg, #d63884 0%, #fc6b9b 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232, 67, 147, 0.4);
}

.btn-discord {
  background-color: #5865F2;
  color: white;
}

.btn-discord:hover {
  background-color: #4752c4;
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #00b894 0%, #55efc4 100%);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #00a187 0%, #4de0b5 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #d63031 0%, #ff7675 100%);
  color: white;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #ff6b6b 100%);
  color: white;
}

.stats-grid {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border-left: 4px solid #667eea;
}

.stat-item span:first-child {
  color: #666;
  font-weight: bold;
}

.stat-item span:last-child {
  color: #667eea;
  font-weight: bold;
  font-size: 1.1em;
}

@media (max-width: 600px) {
  .stream-counter-container {
    padding: 20px;
  }

  .stream-counter-container h1 {
    font-size: 2em;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .counter-value {
    font-size: 3em;
  }
}
