/* 
  OMNI Global Theme - Modern Dark Cyber/Glass
  Centralized styling for the entire platform.
*/

:root {
  /* Colors */
  --bg: #09111E;
  --surface: rgba(10, 13, 20, 0.62);
  --surface-solid: #0A0D14;
  --border: #1E293B;
  --border-active: rgba(37, 99, 235, 0.4);
  
  --primary: #2563EB;
  --primary-glow: rgba(37, 99, 235, 0.3);
  --accent: #38BDF8;
  --accent-glow: rgba(56, 189, 248, 0.3);
  
  --text: #FFFFFF;
  --text-muted: #9CA3AF;
  --text-dim: #9CA3AF;
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  
  /* Glassmorphism */
  --glass-bg: rgba(10, 13, 20, 0.62);
  --glass-border: #1E293B;
  --glass-blur: blur(16px);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
}

/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(6, 182, 212, 0.05), transparent);
  background-attachment: fixed;
  color: var(--text);
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&display=swap');

body, button, input, select, textarea {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4, .font-syne, .font-display {
  font-family: 'Outfit', 'Inter', sans-serif !important;
  letter-spacing: -0.02em;
}

.gradient-title, .title-gradient, .omni-title, .brand-name-top, .omni-logo-text {
  background: linear-gradient(135deg, #0EA5E9 0%, #38BDF8 40%, #06B6D4 70%, #2DD4BF 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.omni-logo-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0F172A 0%, #0284C7 50%, #06B6D4 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
  color: #38BDF8;
  font-size: 20px;
}

/* Glass Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(59, 130, 246, 0.1);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 12px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-muted);
}

/* Inputs */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-field {
  width: 100%;
  background: #1E293B;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  background: #1E293B;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-solid);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* Light Mode Support */
[data-theme="light"] {
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.7);
  --surface-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-active: rgba(61, 107, 255, 0.4);
  
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.15);
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.15);
  
  --text: #000000;
  --text-muted: #475569;
  --text-dim: #64748b;
  
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(15, 23, 42, 0.07);
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.1), transparent),
    radial-gradient(ellipse 50% 50% at 90% 20%, rgba(6, 182, 212, 0.05), transparent);
}

[data-theme="light"] .input-field {
  background: rgba(15, 23, 42, 0.02);
  color: #0f172a;
}

[data-theme="light"] .logo-wrap span {
  background: linear-gradient(135deg, #0f172a, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 3x4 Photo Layout and Rounded Borders */
.cpf-dossie__photo,
.photo-gallery__item,
.photo-3x4-container {
  width: 30mm !important;
  height: 40mm !important;
  max-width: 30mm !important;
  max-height: 40mm !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
  display: inline-block !important;
  position: relative !important;
}

.cpf-dossie__photo img,
.photo-gallery__item img,
.photo-3x4-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
