@tailwind base;
@tailwind components;
@tailwind utilities;


/* main.css - Custom styles for VMPAY */

/* Base styles that Tailwind doesn't cover */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-primary: #1e3a8a; /* blue-900 */
  --color-secondary: #ecc94b; /* yellow-500 */
  --color-accent: #4299e1; /* blue-500 */
}

/* Custom font family */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Network selection cards */
.network-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.network-option:hover {
  transform: translateY(-2px);
}

.network-option input[type="radio"]:checked + div {
  border-color: var(--color-secondary);
  background-color: rgba(254, 252, 191, 0.5); /* yellow-50 with opacity */
  box-shadow: 0 0 0 2px rgba(236, 201, 75, 0.3);
}

/* Form inputs focus state */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Custom buttons */
.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #d69e2e; /* yellow-600 */
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #1e40af; /* blue-800 */
  transform: translateY(-1px);
}

/* Custom animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.3s ease-in;
}

/* Transaction status badges */
.status-badge {
  @apply px-2 py-1 rounded-full text-xs font-semibold;
}

.status-success {
  @apply bg-green-100 text-green-800;
}

.status-pending {
  @apply bg-yellow-100 text-yellow-800;
}

.status-failed {
  @apply bg-red-100 text-red-800;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1e40af; /* blue-800 */
}

/* Print styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
    font-size: 12pt;
  }
}


/* Dashboard cards */
.dashboard-card {
  @apply bg-white rounded-xl shadow-md overflow-hidden;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  @apply shadow-lg;
  transform: translateY(-2px);
}

/* Loading spinner */
.loading-spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--color-secondary);
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Tooltips */
.tooltip {
  @apply invisible absolute;
}

.has-tooltip:hover .tooltip {
  @apply visible z-50;
}


.network-option input[type="radio"]:checked + div {
    border-color: #ecc94b; /* yellow-500 */
    background-color: #fefcbf; /* yellow-50 */
}

.network-option:hover div {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.alertnotification{
  color: red;
}