/* Custom styles for the coin website */

/* Background gradients for light and dark themes */
[data-bs-theme="light"] body {
  background: linear-gradient(135deg, #e8eaf8 0%, #cdc9d0 100%);
  min-height: 100vh;
}

[data-bs-theme="dark"] body {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  min-height: 100vh;
}

/* Card styles with glass effect */
.card {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  transition: all 0.3s ease;
}

[data-bs-theme="dark"] .card {
  background: rgba(33, 37, 41, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Form controls enhanced styling */
.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  transition: all 0.3s ease;
  font-size: 16px;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  transform: translateY(-1px);
}

[data-bs-theme="dark"] .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #0d6efd;
}

[data-bs-theme="dark"] .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

/* Button enhancements */
.btn {
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: linear-gradient(45deg, #0d6efd, #6610f2);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0b5ed7, #5a0fc8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.btn-outline-secondary {
  border-radius: 0 12px 12px 0;
  border-left: none;
}

/* Header styling */
.navbar {
  backdrop-filter: blur(10px);
  background: rgba(13, 110, 253, 0.95) !important;
}

[data-bs-theme="dark"] .navbar {
  background: rgba(33, 37, 41, 0.95) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

/* Footer styling */
footer {
  backdrop-filter: blur(10px);
  background: rgba(248, 249, 250, 0.9) !important;
}

[data-bs-theme="dark"] footer {
  background: rgba(33, 37, 41, 0.9) !important;
}

/* Theme toggle button */
#themeToggle {
  border-radius: 25px;
  padding: 8px 16px;
  transition: all 0.3s ease;
}

#themeToggle:hover {
  transform: scale(1.05);
}

/* Alert enhancements */
.alert {
  border-radius: 15px;
  border: none;
  backdrop-filter: blur(10px);
}

.alert-danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-left: 4px solid #dc3545;
}

[data-bs-theme="dark"] .alert-danger {
  background: rgba(220, 53, 69, 0.2);
  color: #f8d7da;
}

/* Icon animations */
.bi {
  transition: all 0.3s ease;
}

.card-body i.bi:hover {
  transform: scale(1.1);
}

/* Loading animation */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.btn:disabled {
  animation: pulse 1.5s infinite;
}

/* Input group enhancements */
.input-group .btn {
  border-radius: 0 12px 12px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-body {
    padding: 2rem 1.5rem;
  }
  
  .btn-lg {
    padding: 10px 20px;
    font-size: 1rem;
  }
  
  .form-control-lg {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
