/*
 * Crypto Payment Gateway - Custom Styles
 * Professional theme with crypto-inspired colors
 */

/* === Color Palette === */
:root {
  /* Primary - Deep Blue (Trust & Security) */
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-dark: #1e40af;

  /* Secondary - Teal (Crypto/Tech) */
  --secondary: #0d9488;
  --secondary-light: #14b8a6;
  --secondary-dark: #0f766e;

  /* Accent - Purple (Innovation) */
  --accent: #7c3aed;
  --accent-light: #a78bfa;

  /* Neutral Colors */
  --dark: #1f2937;
  --light: #f9fafb;
  --border: #e5e7eb;

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;
}

/* === Typography === */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  background-color: #f8fafc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--dark);
}

/* === Navigation Bar === */
.navbar-dark {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  transition: transform 0.2s ease;
}

.navbar-brand:hover {
  transform: translateY(-2px);
}

.navbar-brand i {
  color: var(--secondary-light);
}

.nav-link {
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--secondary-light) !important;
  transform: translateX(2px);
}

.user-avatar {
  color: var(--secondary-light);
}

/* === Buttons === */
.btn-primary-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* === Auth Cards === */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
}

.auth-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: 480px;
  width: 100%;
}

.auth-card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
}

.auth-card-header i {
  font-size: 3rem;
  color: var(--secondary-light);
  margin-bottom: 1rem;
}

.auth-card-header h2 {
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.auth-card-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.95rem;
}

.auth-card-body {
  padding: 2.5rem 2rem;
}

/* === Form Styling === */
.form-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-check-input {
  border: 2px solid var(--border);
  border-radius: 0.25rem;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-label {
  cursor: pointer;
  font-weight: 500;
  color: var(--dark);
}

/* === Links === */
.auth-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-link:hover {
  color: var(--primary-light);
  text-decoration: underline;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* === Alerts === */
.alert {
  border-radius: 0.75rem;
  border: none;
  font-weight: 500;
}

.alert-success {
  background-color: #d1fae5;
  color: #065f46;
}

.alert-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
}

/* === Dropdown Menu === */
.dropdown-menu {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.5rem;
  min-width: 220px;
}

.dropdown-item {
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--light);
  color: var(--primary);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-header {
  font-weight: 700;
  color: var(--dark);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dropdown-divider {
  margin: 0.5rem 0;
}

/* === Footer === */
footer {
  background-color: var(--light);
  margin-top: auto;
}

footer p,
footer small {
  margin: 0;
}

/* === Home Page Hero === */
.hero-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-icon {
  font-size: 4rem;
  color: var(--secondary-light);
  margin-bottom: 2rem;
}

/* === Feature Cards === */
.feature-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-light);
}

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.75rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.feature-card p {
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}

/* === Error Messages === */
.field_with_errors {
  display: inline;
}

.field_with_errors .form-control {
  border-color: var(--danger);
}

#error_explanation {
  background-color: #fee2e2;
  border: 2px solid #fecaca;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

#error_explanation h2 {
  color: #991b1b;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

#error_explanation ul {
  margin: 0;
  padding-left: 1.5rem;
  color: #991b1b;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .auth-card-body {
    padding: 2rem 1.5rem;
  }

  .auth-card-header {
    padding: 2rem 1.5rem;
  }
}

/* === Utilities === */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === OTP Input Styling === */
.otp-input {
  font-family: 'Courier New', monospace;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 1rem;
  font-weight: bold;
  padding: 1rem;
}

.otp-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Remove number input spinners */
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-input[type=number] {
  -moz-appearance: textfield;
}

/* Dashboard Stats Icons */
.stat-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Avatar Circle */
.avatar-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}
