/**
 * MUHASEBE SİSTEMİ - THEME CSS
 * Tasarım: Apple Tarzı Minimalist
 * Font: Onest
 * Tarih: 2 Kasım 2025
 */

/* ========================================
   ONEST FONT IMPORT
   ======================================== */

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

/* ========================================
   CSS VARIABLES - COLOR SYSTEM
   ======================================== */

:root {
  /* Primary Colors - Lacivert/Navy Blue */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #1e40af;
  --primary-600: #1e3a8a;
  --primary-700: #1e3a8a;
  --primary-800: #1e293b;
  --primary-900: #0f172a;

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

  /* Success/Green */
  --success-50: #f0fdf4;
  --success-100: #dcfce7;
  --success-500: #10b981;
  --success-600: #059669;
  --success-700: #047857;

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

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

  /* Info/Blue */
  --info-50: #eff6ff;
  --info-100: #dbeafe;
  --info-500: #3b82f6;
  --info-600: #2563eb;
  --info-700: #1d4ed8;

  /* ========================================
     SIDEBAR COLORS
     ======================================== */
  
  --sidebar-bg: #1a1d29;
  --sidebar-text: #a0a3b5;                /* Açık gri (pasif) */
  --sidebar-text-hover: #e4e6eb;          /* Hover */
  --sidebar-text-active: #ffffff;         /* Aktif */
  --sidebar-icon: #6c7086;                /* Icon rengi */
  --sidebar-icon-hover: #e4e6eb;
  --sidebar-icon-active: var(--primary-500);
  --sidebar-divider: #2d3142;
  --sidebar-hover-bg: #252836;
  --sidebar-active-bg: #2d3142;
  --sidebar-dropdown-bg: #1f2231;
  
  /* ========================================
     SPACING SYSTEM (4px base)
     ======================================== */
  
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* ========================================
     BORDER RADIUS
     ======================================== */
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* ========================================
     SHADOWS
     ======================================== */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* ========================================
     TRANSITIONS
     ======================================== */
  
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 300ms ease;
}

/* ========================================
   BASE TYPOGRAPHY
   ======================================== */

body {
  font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, .h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h2, .h2 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-3);
}

h3, .h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--space-3);
}

h4, .h4 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--space-2);
}

h5, .h5 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

h6, .h6 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: var(--space-2);
}

/* Body text */
p {
  margin-bottom: var(--space-4);
}

/* Small text */
small, .small {
  font-size: 14px;
  line-height: 1.4;
}

/* Caption */
.caption {
  font-size: 12px;
  line-height: 1.4;
  color: var(--gray-500);
}

/* Muted text */
.text-muted {
  color: var(--gray-500) !important;
}

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

/* Font weights */
.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

/* Text colors */
.text-primary { color: var(--primary-500) !important; }
.text-success { color: var(--success-500) !important; }
.text-error { color: var(--error-500) !important; }
.text-warning { color: var(--warning-500) !important; }
.text-info { color: var(--info-500) !important; }

/* Background colors */
.bg-primary { background-color: var(--primary-500) !important; }
.bg-success { background-color: var(--success-500) !important; }
.bg-error { background-color: var(--error-500) !important; }
.bg-warning { background-color: var(--warning-500) !important; }
.bg-info { background-color: var(--info-500) !important; }

/* Border radius */
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* Shadows */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

/* Transitions */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
.transition-slow { transition: all var(--transition-slow); }

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

@media print {
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  
  .sidebar,
  .topbar,
  .no-print {
    display: none !important;
  }
}
