@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Dancing+Script:wght@400..700&family=Pacifico&display=swap');

@tailwind base;
@tailwind components;
@tailwind utilities;

:root {
  --primary: #4F46E5; /* Rich Indigo */
  --primary-hover: #4338CA;
  --secondary: #10B981; /* Emerald */
  --bg-color: #F8FAFC; /* Slate 50 */
  --text-dark: #0F172A; /* Slate 900 */
  --text-muted: #64748B; /* Slate 500 */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}
.primary-glow {
  box-shadow: 0 0 20px rgba(128, 131, 255, 0.4);
}

.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.document-shadow {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(144, 143, 160, 0.2);
  border-radius: 10px;
}

.document-blur {
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}
.signature-gradient {
  background: linear-gradient(135deg, #8083ff 0%, #00a572 100%);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.2);
}
.glow-hover:hover {
  box-shadow: 0 0 20px rgba(192, 193, 255, 0.4);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #0b1326;
  color: #dae2fd;
  -webkit-font-smoothing: antialiased;
}

/* Premium Navigation */
.navbar-glass {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.navbar-glass .navbar-brand {
  color: var(--primary) !important;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}
.navbar-glass .nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}
.navbar-glass .nav-link:hover {
  color: var(--primary) !important;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.2);
  transition: all 0.2s ease-in-out;
}
.btn-primary:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px -2px rgba(79, 70, 229, 0.3);
}

/* Cards & Glassmorphism */
.card {
  border: none;
  border-radius: 16px;
  background: white;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Forms */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Data Tables */
.table {
  color: var(--text-dark);
}
.table thead th {
  background-color: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1rem;
}
.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
}
.badge {
  padding: 0.5em 0.8em;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 9999px; /* Pill shape */
}

/* Auth Pages */
.auth-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.05), transparent 40%),
              radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.05), transparent 40%);
}
