html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #121212;
  color: #ffffff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Dark Theme */
.bg-darker {
  background-color: #1a1a1a !important;
}

.card {
  background-color: #1e1e1e;
  border: 1px solid #333;
}

.card-header {
  border-bottom: 1px solid #333;
}

/* Gradient Effects */
.text-gradient {
  background: linear-gradient(45deg, #4780fa, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.border-gradient {
  border: 2px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #4780fa, #7c5cff);
}

.btn-gradient {
  background: linear-gradient(45deg, #4780fa, #7c5cff);
  border: none;
  color: white;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-gradient:hover {
  background: linear-gradient(45deg, #7c5cff, #4780fa);
  transform: translateY(-2px);
  color: white;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 4rem 0;
  border-bottom: 3px solid;
  border-image-slice: 1;
  border-image-source: linear-gradient(45deg, #4780fa, #7c5cff);
  margin-bottom: 2rem;
}

/* Feature Cards */
.feature-card {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%;
  border: 1px solid #333;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #4780fa, #7c5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: #aaaaaa;
  margin-bottom: 0;
}

/* Form Controls */
.form-control {
  background-color: #2a2a2a;
  border: 1px solid #333;
  color: #ffffff;
}

.form-control:focus {
  background-color: #2a2a2a;
  border-color: #4780fa;
  color: #ffffff;
  box-shadow: 0 0 0 0.2rem rgba(71, 128, 250, 0.25);
}

.input-group-text {
  background-color: #2a2a2a;
  border: 1px solid #333;
  color: #4780fa;
}

/* Credits Display */
.credits-display {
  background: rgba(71, 128, 250, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

/* Alert Styling */
.alert {
  background-color: #1e1e1e;
  border: 1px solid #333;
  color: #ffffff;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.2);
  border-color: #28a745;
  color: #28a745;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.2);
  border-color: #dc3545;
  color: #dc3545;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #4780fa;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #7c5cff;
}

.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;
}