/* Modern UI Styles for Veriss Payments - Enhanced Design System */

/* Import Inter font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");

/* CSS Variables for Modern Color Palette */
:root {
  /* Primary Colors - Professional Blue/Cyan */
  --primary-50: #ecfeff;
  --primary-100: #cffafe;
  --primary-200: #a5f3fc;
  --primary-300: #67e8f9;
  --primary-400: #22d3ee;
  --primary-500: #06b6d4;
  --primary-600: #0891b2;
  --primary-700: #0e7490;
  --primary-800: #155e75;
  --primary-900: #164e63;

  /* Neutral Colors */
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-300: #d1d5db;
  --neutral-400: #9ca3af;
  --neutral-500: #6b7280;
  --neutral-600: #4b5563;
  --neutral-700: #374151;
  --neutral-800: #1f2937;
  --neutral-900: #111827;

  /* Success Colors */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-500: #22c55e;
  --success-600: #16a34a;
  --success-700: #15803d;

  /* Error Colors */
  --error-50: #fef2f2;
  --error-100: #fee2e2;
  --error-500: #ef4444;
  --error-600: #dc2626;
  --error-700: #b91c1c;

  /* Warning Colors */
  --warning-50: #fffbeb;
  --warning-100: #fef3c7;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  /* Shadow System - Enhanced */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08),
    0 2px 4px -2px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.12),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-inner: inset 0 2px 4px 0 rgb(0 0 0 / 0.06);

  /* Border Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

/* Base Typography */
* {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition-property: color, background-color, border-color,
    text-decoration-color, fill, stroke, opacity, box-shadow, transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Vue.js v-cloak directive to hide raw templates until mounted */
[v-cloak] {
  display: none;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 12.8px;
  line-height: 1.6;
  color: var(--neutral-900);
  background-color: var(--neutral-50);
}

/* Typography Hierarchy */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

h1 {
  font-size: 2rem;
  font-weight: 800;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-weight: 400;
  line-height: 1.7;
  color: var(--neutral-700);
}

/* Modern Card Design - Enhanced */
.modern-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--neutral-100);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modern-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-100);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-card-compact {
  padding: 1.5rem;
}

/* Modern Button Styles - Enhanced */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-700) 100%
  );
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--primary-700) 0%,
    var(--primary-800) 100%
  );
}

.btn-success {
  background: linear-gradient(
    135deg,
    var(--success-600) 0%,
    var(--success-700) 100%
  );
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, var(--success-700) 0%, #15803d 100%);
}

.btn-secondary {
  background-color: var(--neutral-100);
  color: var(--neutral-900);
  border: 1px solid var(--neutral-200);
}

.btn-secondary:hover {
  background-color: var(--neutral-200);
  border-color: var(--neutral-300);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-600);
  color: var(--primary-600);
  box-shadow: none;
}

.btn-outline:hover {
  background-color: var(--primary-600);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Modern Input Styles - Enhanced */
.modern-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--neutral-900);
  background-color: white;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.modern-input:hover {
  border-color: var(--neutral-300);
}

.modern-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
  background-color: var(--primary-50);
}

.modern-input::placeholder {
  color: var(--neutral-400);
}

select.modern-input {
  cursor: pointer;
  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;
}

textarea.modern-input {
  resize: vertical;
  min-height: 100px;
}

/* Modern Header Styles */
.modern-header {
  background: linear-gradient(
    135deg,
    var(--primary-600) 0%,
    var(--primary-700) 100%
  );
  box-shadow: var(--shadow-md);
  padding: 1.5rem 0;
}

.modern-header h1 {
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.status-paid {
  background-color: var(--success-100);
  color: var(--success-700);
}

.status-pending {
  background-color: var(--warning-100);
  color: var(--warning-600);
}

.status-failed {
  background-color: var(--error-100);
  color: var(--error-700);
}

/* Spacing Utilities */
.spacing-section {
  margin-bottom: 3rem;
}

.spacing-card {
  margin-bottom: 1.5rem;
}

/* Grid Improvements */
.modern-grid {
  display: grid;
  gap: 1.5rem;
}

.modern-grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.modern-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.modern-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Container Improvements */
.modern-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .modern-container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .modern-container {
    padding: 0 3rem;
  }
}

/* Stat Card - Enhanced */
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--neutral-100);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--primary-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
  border-color: var(--primary-100);
}

.stat-card:hover::after {
  transform: scaleX(1);
}

.stat-card h3 {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--neutral-500);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-card .stat-value {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  background: linear-gradient(135deg, currentColor 0%, currentColor 100%);
  -webkit-background-clip: text;
}

/* Table Improvements - Enhanced */
.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.modern-table thead {
  background: linear-gradient(
    135deg,
    var(--neutral-50) 0%,
    var(--neutral-100) 100%
  );
}

.modern-table th {
  padding: 1.125rem 1rem;
  text-align: left;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--neutral-700);
  border-bottom: 2px solid var(--neutral-200);
  white-space: nowrap;
}

.modern-table td {
  padding: 1.125rem 1rem;
  border-bottom: 1px solid var(--neutral-100);
  color: var(--neutral-700);
  font-size: 0.75rem;
}

.modern-table tbody tr {
  transition: all 0.2s ease;
  background-color: white;
}

.modern-table tbody tr:hover {
  background-color: var(--primary-50);
  transform: scale(1.01);
}

.modern-table tbody tr:last-child td {
  border-bottom: none;
}

.modern-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.modern-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

/* Link Styles */
.modern-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Footer */
.modern-footer {
  background-color: var(--neutral-100);
  border-top: 1px solid var(--neutral-200);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--neutral-500);
}

.empty-state p {
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Smooth Transitions - Applied globally via base styles */

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1rem;
  }
}

.swal2-cancel {
  background-color: var(--neutral-200) !important;
  color: var(--neutral-700) !important;
  border-radius: 0.5rem !important;
  padding: 0.75rem 2rem !important;
  font-weight: 600 !important;
}

.swal2-icon.swal2-success {
  border-color: var(--success-500) !important;
  color: var(--success-500) !important;
}

.swal2-icon.swal2-error {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.swal2-icon.swal2-warning {
  border-color: #f59e0b !important;
  color: #f59e0b !important;
}

.swal2-icon.swal2-info {
  border-color: var(--primary-500) !important;
  color: var(--primary-500) !important;
}

[v-cloak] {
  display: none !important;
}
