/* ANIB Private Banking - Custom Styles */
/* Converted from Next.js globals.css */

:root {
  /* Cruip Mosaic Color Palette */
  --primary: 239 84% 67%;
  --primary-light: 239 84% 77%;
  --primary-dark: 239 84% 57%;
  
  --secondary: 271 91% 65%;
  --secondary-light: 271 91% 75%;
  --secondary-dark: 271 91% 55%;
  
  /* Functional Colors */
  --success: 142 76% 36%;
  --warning: 38 92% 50%;
  --danger: 0 72% 51%;
  --info: 199 89% 48%;
  
  /* Neutral Scales */
  --background: 210 20% 98%;
  --surface: 0 0% 100%;
  --surface-secondary: 210 20% 96%;
  --surface-hover: 214 32% 91%;
  
  --text-primary: 222 47% 11%;
  --text-secondary: 215 20% 65%;
  --text-muted: 214 32% 91%;
  
  --border: 214 32% 91%;
  --border-hover: 215 20% 65%;
  
  /* Sidebar Dark Theme */
  --sidebar-bg: 222 47% 11%;
  --sidebar-hover: 217 33% 17%;
  --sidebar-border: 215 28% 17%;
  
  /* Gradients */
  --gradient-start: 239 84% 67%;
  --gradient-end: 271 91% 65%;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

body {
  background: hsl(var(--background));
  color: hsl(var(--text-primary));
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  padding: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: hsl(var(--background));
}

::-webkit-scrollbar-thumb {
  background: hsl(var(--border));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: hsl(var(--text-muted));
}

/* Custom utilities */
.gradient-primary {
  background: linear-gradient(135deg, hsl(var(--gradient-start)) 0%, hsl(var(--gradient-end)) 100%);
}

.text-gradient {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card {
  background: hsl(var(--surface));
  border-radius: 16px;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

.btn-primary {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--primary-dark)) 100%);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, hsl(var(--primary-light)) 0%, hsl(var(--primary)) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--primary) / 0.4);
  color: white;
  text-decoration: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: hsl(var(--surface));
  color: hsl(var(--text-primary));
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: hsl(var(--surface-hover));
  border-color: hsl(var(--border-hover));
  text-decoration: none;
}

.btn-danger {
  background: linear-gradient(135deg, hsl(var(--danger)) 0%, hsl(0 72% 41%) 100%);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--danger) / 0.4);
}

.btn-success {
  background: linear-gradient(135deg, hsl(var(--success)) 0%, hsl(142 76% 26%) 100%);
  color: white;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px hsl(var(--success) / 0.4);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: hsl(var(--surface));
  color: hsl(var(--text-primary));
  font-size: 15px;
  transition: all 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.1);
}

.input-field::placeholder {
  color: hsl(var(--text-muted));
}

.label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: hsl(var(--text-secondary));
  margin-bottom: 6px;
}

/* Status badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-pending {
  background: hsl(var(--warning) / 0.15);
  color: hsl(var(--warning));
}

.badge-processing {
  background: hsl(var(--info) / 0.15);
  color: hsl(var(--info));
}

.badge-approved {
  background: hsl(var(--success) / 0.15);
  color: hsl(var(--success));
}

.badge-completed {
  background: hsl(142 76% 36% / 0.15);
  color: hsl(142 76% 30%);
}

.badge-rejected {
  background: hsl(var(--danger) / 0.15);
  color: hsl(var(--danger));
}

/* Modern Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-slideIn { animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-slideUp { animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-scaleIn { animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

.skeleton {
  background: linear-gradient(90deg, hsl(var(--border)) 25%, hsl(var(--background)) 50%, hsl(var(--border)) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Modern hover effects */
.hover-lift {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hover-glow {
  transition: all 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 20px hsl(var(--primary) / 0.3);
}

/* Modern card styles */
.card-modern {
  background: hsl(var(--surface));
  border-radius: 20px;
  border: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card-modern:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Gradient backgrounds */
.gradient-mesh {
  background: 
    radial-gradient(at 0% 0%, hsl(var(--primary) / 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 0%, hsl(var(--secondary) / 0.1) 0px, transparent 50%),
    radial-gradient(at 100% 100%, hsl(var(--info) / 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 100%, hsl(var(--primary) / 0.1) 0px, transparent 50%);
}

/* Sidebar styles */
.sidebar {
  background: hsl(var(--sidebar-bg));
  color: white;
  min-height: 100vh;
  width: 256px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #94a3b8;
  text-decoration: none;
  transition: all 0.15s ease;
  font-size: 14px;
  font-weight: 500;
}

.sidebar-link:hover {
  background: hsl(var(--sidebar-hover));
  color: white;
}

.sidebar-link.active {
  background: hsl(var(--sidebar-hover));
  color: white;
}

.sidebar-link.active svg {
  color: #818cf8;
}

/* Main content area */
.main-content {
  margin-left: 256px;
  min-height: 100vh;
}

/* Table styles */
.table-modern {
  width: 100%;
  border-collapse: collapse;
}

.table-modern thead {
  background: hsl(var(--surface-secondary));
}

.table-modern th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--text-secondary));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-modern td {
  padding: 16px;
  border-bottom: 1px solid hsl(var(--border));
}

.table-modern tbody tr:hover {
  background: hsl(var(--surface-secondary));
}

/* Alert styles */
.alert {
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.alert-success {
  background: hsl(var(--success) / 0.1);
  border: 1px solid hsl(var(--success) / 0.3);
  color: hsl(var(--success));
}

.alert-danger {
  background: hsl(var(--danger) / 0.1);
  border: 1px solid hsl(var(--danger) / 0.3);
  color: hsl(var(--danger));
}

.alert-warning {
  background: hsl(var(--warning) / 0.1);
  border: 1px solid hsl(var(--warning) / 0.3);
  color: hsl(var(--warning));
}

.alert-info {
  background: hsl(var(--info) / 0.1);
  border: 1px solid hsl(var(--info) / 0.3);
  color: hsl(var(--info));
}

/* Form group */
.form-group {
  margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
}

/* Loading overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid hsl(var(--border));
  min-width: 200px;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid hsl(var(--border));
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Step indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  background: hsl(var(--border));
  color: hsl(var(--text-secondary));
}

.step.active .step-number {
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--secondary)) 100%);
  color: white;
}

.step.completed .step-number {
  background: hsl(var(--success));
  color: white;
}

.step-line {
  width: 40px;
  height: 2px;
  background: hsl(var(--border));
}

.step-line.completed {
  background: hsl(var(--success));
}

/* File upload */
.file-upload {
  border: 2px dashed hsl(var(--border));
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.05);
}

.file-upload.dragover {
  border-color: hsl(var(--primary));
  background: hsl(var(--primary) / 0.1);
}
