/* BTCPay Server Full CSS - UnderHost Branding */
/* ========================================== */

/* Base Styles */
:root {
  --primary-blue: #176ea5;
  --primary-blue-hover: #125986;
  --primary-red: #d10101;
  --primary-red-hover: #a41c21;
  --success-green: #7ab800;
  --dark-bg: #181818;
  --light-bg: #f9f9f9;
}
/* Make it more subtle instead of removing */
.powered-by {
    opacity: 0.5;
    font-size: 0.8em;
    margin-top: 20px;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #2e2e2e;
  background-color: var(--light-bg);
  line-height: 1.6;
}

/* Target BTCPay's default contact links */
footer a[href*="contact"],
.checkout-footer a[href*="contact"] {
    display: inline-block !important;
    background: linear-gradient(145deg, #176ea5, #003366) !important;
    color: white !important;
    padding: 12px 28px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    /* Include all other properties from above */
}

/* BTCPay Server Optimized Logo Sizing */
/* ================================= */

/* Base Logo Styles (applies to all instances) */
.checkout-logo,
.invoice-header img,
.navbar-brand img,
.store-logo {
  max-height: 100px !important; /* Reduced from 150px */
  width: auto !important;
  object-fit: contain;
  margin: 10px auto;
  display: block;
}

/* Context-Specific Logo Adjustments */
.checkout-header .checkout-logo {
  max-height: 120px !important; /* Slightly larger for checkout */
  transform: none; /* Removed scale transform */
}

.invoice-header img {
  max-height: 130px !important; /* Slightly smaller for invoices */
}

.navbar-brand img {
  max-height: 60px !important; /* Compact for admin nav */
}

/* Header/Footer */
#StoreNav {
  background: linear-gradient(-45deg, #0085C3, #0091D6, #434CC5, #87A8C4);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  padding: 15px 0;
}

footer {
  background-color: var(--dark-bg);
  padding: 40px 0;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 30px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue-hover);
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(23, 110, 165, 0.3);
}

.btn-danger {
  background-color: var(--primary-red);
  border-color: var(--primary-red-hover);
}

/* Payment UI */
.invoice-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border: none;
}

.payment-tabs .nav-tabs {
  border-bottom: 2px solid #eee;
}

.payment-tabs .nav-link.active {
  background: var(--primary-blue);
  color: white;
  border-radius: 8px 8px 0 0;
}

/* QR Code Styling */
.qr-container {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border: 1px solid #eaeaea;
}

/* Status Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.status-dot:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(2); opacity: 0; }
  100% { transform: scale(1); opacity: 0; }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .checkout-logo,
  .invoice-header img {
    max-height: 120px !important;
  }
  
  .btn {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .checkout-logo {
    max-height: 100px !important;
    transform: none !important;
  }
  
  .navbar-brand img {
    max-height: 50px !important;
  }
}

/* Animations */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.text-center { text-align: center; }
.w700 { font-weight: 700; }
.bluetext { color: var(--primary-blue); }
.whitetext { color: white; }
.mt-30 { margin-top: 30px; }
.mb-30 { margin-bottom: 30px; }

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  body {
    background: #121212;
    color: #e1e1e1;
  }
  
  .invoice-container,
  .qr-container {
    background: #1e1e1e;
    border-color: #333;
  }
  
  .form-control {
    background: #2d2d2d;
    border-color: #444;
    color: white;
  }
}