/* ============================================
   CONCONTABIL - Theme CSS
   Color Palette & Design Tokens
   ============================================ */

:root {
  /* PRIMARY PALETTE */
  --primary: #1E3A8A;           /* Deep Blue - Trust, Authority */
  --secondary: #059669;         /* Strategic Green - Growth, Intelligence */
  --accent: #F59E0B;            /* Amber - Attention, Opportunity */
  
  /* BACKGROUNDS */
  --bg-light: #FAFAFA;          /* Off-White - Clean, Professional */
  --bg-white: #FFFFFF;          /* Pure White */
  --bg-gradient: linear-gradient(135deg, #1E3A8A, #059669);
  
  /* TEXT COLORS */
  --text-dark: #1F2937;         /* Dark Gray - Main Text */
  --text-medium: #6B7280;       /* Medium Gray - Secondary Text */
  --text-light: #9CA3AF;        /* Light Gray - Tertiary Text */
  
  /* BORDERS & DIVIDERS */
  --border: #E5E7EB;            /* Light Gray - Borders */
  --border-dark: #D1D5DB;       /* Medium Gray - Borders */
  
  /* SEMANTIC COLORS */
  --success: #10B981;           /* Green - Success */
  --warning: #F59E0B;           /* Amber - Warning */
  --error: #EF4444;             /* Red - Error */
  --info: #3B82F6;              /* Blue - Info */
  
  /* SHADOWS */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
  
  /* SPACING */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  
  /* BORDER RADIUS */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* TRANSITIONS */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary {
  color: var(--primary);
}

.text-secondary {
  color: var(--secondary);
}

.text-accent {
  color: var(--accent);
}

.text-dark {
  color: var(--text-dark);
}

.text-medium {
  color: var(--text-medium);
}

.text-light {
  color: var(--text-light);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-accent {
  background-color: var(--accent);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-white {
  background-color: var(--bg-white);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-normal {
  font-weight: 400;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

/* ============================================
   GRADIENT UTILITIES
   ============================================ */

.gradient-primary-secondary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.gradient-secondary-accent {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

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

/* ============================================
   ANIMATION KEYFRAMES
   ============================================ */

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

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

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

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

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-slide-in-down {
  animation: slideInDown 0.5s ease;
}

.animate-slide-in-up {
  animation: slideInUp 0.5s ease;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.4s ease;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #1a2d6b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background-color: #047857;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

/* ============================================
   CARD STYLES
   ============================================ */

.card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.card-header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.card-body {
  padding: 1rem 0;
}

.card-footer {
  border-top: 1px solid var(--border);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-primary {
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
}

.badge-secondary {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--secondary);
}

.badge-accent {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--accent);
}

/* ============================================
   ALERT STYLES
   ============================================ */

.alert {
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  border-left-color: var(--success);
  color: #065f46;
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  border-left-color: var(--warning);
  color: #78350f;
}

.alert-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left-color: var(--error);
  color: #7f1d1d;
}

.alert-info {
  background-color: rgba(59, 130, 246, 0.1);
  border-left-color: var(--info);
  color: #1e3a8a;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
  body {
    background-color: white;
    color: black;
  }

  a {
    color: var(--primary);
  }

  .no-print {
    display: none !important;
  }
}
