/* Custom CSS from Next.js globals.css */

:root {
  --radius: 0.625rem;
  --orange: #ff945b;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CreatoDisplay";
  src: url("/Content/newui/fonts/CreatoDisplay-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

html {
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "CreatoDisplay", system-ui, sans-serif;
  overflow-x: hidden;
  width: 100%;
  min-width: 280px;
}

.font-sans {
  font-family: "CreatoDisplay", system-ui, sans-serif;
}

.font-roboto {
  font-family: 'Roboto', sans-serif;
}

.font-medium {
  font-weight: 500 !important;
}

.font-bold {
  font-weight: 700 !important;
}

.gradient-gray {
  background: linear-gradient(to right, #fff 100%, #999 60%);
}

/* Disable image dragging on decorative images only */
img:not(.clickable) {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img::selection {
  background: transparent !important;
}

img::-moz-selection {
  background: transparent !important;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hide {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.pin-spacer {
  overflow: hidden !important;
}

/* Custom Tailwind utilities */
.text-primary {
  color: #ff945b !important; /* Orange color */
}

.text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Remove Bootstrap conflicts */
body {
  margin: 0 !important;
}

* {
  box-sizing: border-box;
}

/* Ensure Tailwind classes work properly */
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fix for responsive text sizes */
@media (min-width: 640px) {
  .text-md {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

/* Sticky navbar with backdrop blur support */
nav.sticky {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 50;
}

/* Ensure backdrop-blur works across browsers */
.backdrop-blur-sm {
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Fallback for browsers that don't support backdrop-filter */
@supports not (backdrop-filter: blur(4px)) {
  nav.sticky {
    background-color: rgba(255, 255, 255, 0.98) !important;
  }
}

/* Login page flex utilities */
.flex-2 {
  flex: 2;
}

.flex-4 {
  flex: 4;
}

/* Override Bootstrap styles for new UI pages */
.antialiased .form-control {
  border-radius: 0.5rem;
}

.antialiased .btn {
  border-radius: 0.5rem;
}

/* Table styles for new UI */
.antialiased table.table {
  border-collapse: separate;
  border-spacing: 0;
}

.antialiased table.table thead th {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  color: #4b5563;
  padding: 0.75rem 1rem;
}

.antialiased table.table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.antialiased table.table tbody tr:hover {
  background-color: #f9fafb;
}

/* Card styles override */
.antialiased .card {
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}

.antialiased .card-header {
  background-color: transparent;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
}

.antialiased .card-body {
  padding: 1.5rem;
}

/* Badge styles */
.antialiased .badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* Info box styles override */
.antialiased .info-box {
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.antialiased .small-box {
  border-radius: 0.5rem;
}

/* Form select styles */
.antialiased select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

/* Override Tailwind py-4 padding */
.py-4 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}

/* Payment Method Section - Always Visible */
.payment-method {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.payment-method h1 {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Payment Method Card Hover Animation */
.payment-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
  transform-style: preserve-3d;
  opacity: 1 !important; /* Ensure cards are visible by default */
  visibility: visible !important;
  display: block !important;
}

.payment-card:hover {
  transform: translateY(-8px) scale(1.05) !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15) !important;
  border-color: #ff945b !important;
  background: linear-gradient(135deg, #fff 0%, #fff8f5 100%) !important;
}

.payment-img {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.payment-card:hover .payment-img {
  transform: scale(1.15) rotate(-3deg) !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1)) !important;
}

/* Ensure carousel buttons are visible after animation */
#carousel-prev,
#carousel-next {
  opacity: 1 !important;
  transform: scale(1) !important;
}

/* Deposit Summary Page Styles */
.deposit-summary-table {
  border-collapse: separate;
  border-spacing: 0;
}

.deposit-summary-table thead th {
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 500;
  color: #4b5563;
  padding: 0.75rem 1.5rem;
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.deposit-summary-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  color: #111827;
  font-size: 0.875rem;
}

.deposit-summary-table tbody tr:hover {
  background-color: #f9fafb;
  transition: background-color 0.15s ease-in-out;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
  .deposit-summary-table {
    font-size: 0.75rem;
  }
  
  .deposit-summary-table thead th,
  .deposit-summary-table tbody td {
    padding: 0.75rem 1rem;
  }
}
