/* ===================================
   Lavren - Kurumsal Tasarım Sistemi
   Modern, Minimal, Profesyonel
=================================== */

/* Google Fonts - DM Sans (Karakterli & Profesyonel) */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

:root {
  /* Yeni Renk Paleti */
  --accent: #5b5f7a;
  --accent-main-dark: #303349;
  --dark-accent: #13151C;
  --dark-accent-2: #0e1015;
  --dark-accent-3: #07080b;
  --light-accent: #1C1F28;
  --siyah: #000000;
  --nötr1: #e4e7ec;
  --nötr2: #b9c2cf;
  --nötr3: #8a94a6;
  --nötr4: #6b7280;
  
  /* Eski değişkenler için uyumluluk (accent kullan) */
  --primary: var(--accent);
  --primary-dark: var(--dark-accent);
  --primary-light: var(--accent);
  --primary-subtle: rgba(91, 95, 122, 0.08);
  
  /* Accent - Yeni palet */
  --accent-light: var(--accent);
  --accent-subtle: rgba(91, 95, 122, 0.1);
  
  /* Koyu Tonlar */
  --navy: #0f1419;
  --navy-light: #1a2027;
  --navy-medium: #242d36;
  
  /* Nötr Skalası - Yeni palet */
  --white: var(--nötr3);
  --gray-25: var(--nötr3);
  --gray-50: var(--nötr3);
  --gray-100: var(--nötr2);
  --gray-200: var(--nötr2);
  --gray-300: var(--nötr1);
  --gray-400: var(--nötr1);
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: var(--siyah);
  
  /* Metin Renkleri */
  --text-primary: var(--siyah);
  --text-secondary: #4b5563;
  --text-tertiary: #6b7280;
  --text-muted: var(--nötr1);
  --text-inverse: #ffffff;
  
  /* Durum Renkleri */
  --success: var(--accent);
  --success-light: rgba(91, 95, 122, 0.1);
  --warning: #d97706;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #0284c7;
  --info-light: #e0f2fe;
  
  /* Kenarlık */
  --border: var(--nötr2);
  --border-light: var(--nötr3);
  --border-focus: var(--accent);
  
  /* Gölgeler - Daha Subtle */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  
  /* Geçişler */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-normal: 200ms var(--ease-out);
  --transition-slow: 300ms var(--ease-out);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* Spacing */
  --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;
}

/* ===================================
   Reset & Base
=================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--nötr3);
  overflow-x: hidden;
}

body.profil-page {
  font-size: 16px;
}

/* ===================================
   App Container
=================================== */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--nötr3);
}

/* ===================================
   Header / Ribbon - Minimal & Elegant
=================================== */
.ribbon {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  background: var(--navy);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
  gap: var(--space-6);
}

.ribbon-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ribbon-brand img {
  height: 72px;
  width: auto;
}

.ribbon-tabs {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ribbon-tabs::-webkit-scrollbar {
  display: none;
}

.ribbon-tab {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.ribbon-tab:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.ribbon-tab.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.ribbon-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 2px;
}

.ribbon-tab i {
  font-size: 14px;
  opacity: 0.9;
}

/* User Info */
.ribbon-user-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-transform: capitalize;
}

.user-name-display {
  text-transform: capitalize;
}

.user-plan {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================================
   Simple Page Header (Back Button)
=================================== */
.page-header-simple {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 56px;
  min-height: 56px;
  background: var(--nötr3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Main layout padding adjustment for simple header */
.app:has(.page-header-simple) .main-layout {
  padding-top: 56px;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  height: 38px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.back-btn:hover {
  background: var(--nötr3);
  border-color: var(--primary);
  color: var(--primary);
}

.back-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}

.page-header-simple .page-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
  flex: 1;
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.header-spacer {
  width: 100px;
  flex-shrink: 0;
}

.logout-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

/* ===================================
   Main Layout
=================================== */
.main-layout {
  display: flex;
  flex: 1;
  margin-top: 64px;
  min-height: calc(100vh - 64px);
}

/* ===================================
   Navigation Pane - Minimal Sidebar
=================================== */
.nav-pane {
  width: 280px;
  min-width: 280px;
  background: var(--nötr3);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 64px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 100;
}

.nav-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-light);
}

.nav-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.nav-content {
  flex: 1;
  padding: var(--space-3) 0;
}

.nav-section {
  margin-bottom: var(--space-2);
}

.nav-section-header {
  padding: var(--space-2) var(--space-6);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--space-3);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.nav-item:hover {
  background: var(--nötr3);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
}

.nav-item-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
}

/* ===================================
   Content Area
=================================== */
.content-area {
  flex: 1;
  margin-left: 280px;
  padding: var(--space-6) var(--space-8);
  min-height: calc(100vh - 64px);
  background: var(--nötr3);
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.content-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.content-body {
  width: 100%;
}

.content-actions {
  display: flex;
  gap: var(--space-3);
}

/* ===================================
   Cards - Clean & Minimal
=================================== */
.card {
  background: var(--nötr3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-normal);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.card-body {
  padding: var(--space-5);
}

/* ===================================
   Buttons - Refined
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(91, 95, 122, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(91, 95, 122, 0.25);
}

.btn-secondary {
  background: var(--nötr3);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--nötr3);
  border-color: var(--gray-300);
  color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--gray-100);
  color: var(--text-primary);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-lg {
  padding: 14px 24px;
  font-size: 15px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

/* ===================================
   Form Elements
=================================== */
.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--nötr3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}

/* ===================================
   Tables
=================================== */
.table-container {
  background: var(--nötr3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--nötr3);
  border-bottom: 1px solid var(--border);
}

.table td {
  padding: var(--space-3) var(--space-4);
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-light);
}

.table tbody tr:hover {
  background: var(--gray-25);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===================================
   Badges
=================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.badge-primary {
  background: var(--primary-subtle);
  color: var(--primary);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-light);
  color: var(--danger);
}

/* ===================================
   Status Bar
=================================== */
.status-bar {
  position: fixed;
  bottom: 0;
  left: 280px;
  right: 0;
  height: 36px;
  background: var(--nötr3);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--space-5);
  font-size: 12px;
  color: var(--text-muted);
  z-index: 100;
}

.status-left,
.status-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ===================================
   Search Interface
=================================== */
.search-interface {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.search-input-group {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--nötr3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-icon {
  color: var(--text-muted);
  font-size: 16px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: var(--space-2) var(--space-2);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* ===================================
   Search Results
=================================== */
.search-results {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.result-item {
  padding: var(--space-5);
  background: var(--nötr3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.result-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-3);
}

.result-header h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.result-date {
  font-size: 12px;
  color: var(--text-muted);
}

.result-meta {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.result-type,
.result-court {
  padding: 4px 8px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
}

.result-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-4);
}

.result-actions {
  display: flex;
  gap: var(--space-2);
}

/* No Results */
.no-results {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  color: var(--text-muted);
}

.no-results i {
  font-size: 48px;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.no-results h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0 0 var(--space-2);
}

.no-results p {
  font-size: 14px;
  margin: 0;
}

/* ===================================
   Loading States
=================================== */
.loading-results {
  text-align: center;
  padding: var(--space-12) var(--space-6);
}

.loading-spinner-circle {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-5);
}

.spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* SVG Spin Animation */
.spin-icon {
  animation: spin 1s linear infinite;
}

svg.spin-icon,
svg[style*="animation:spin"],
svg[style*="animation: spin"] {
  animation: spin 1s linear infinite;
}

.loading-results h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-2);
}

.loading-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ===================================
   AI Panel - Left Sidebar Enhancement
=================================== */
.ai-panel {
  background: linear-gradient(180deg, #0f1419 0%, #1a2027 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-hero {
  padding: var(--space-6) var(--space-5);
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ai-hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-lg);
  font-size: 24px;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(91, 95, 122, 0.4);
}

.pulse-animation {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(91, 95, 122, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(91, 95, 122, 0.5);
  }
}

.ai-hero-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.3px;
}

.ai-hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  margin: 0;
}

.ai-content {
  padding: var(--space-5);
}

.ai-search-prompt {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(255, 255, 255, 0.12);
}

.ai-prompt-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
}

.ai-prompt-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 var(--space-5);
}

.ai-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.ai-step {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

.ai-step-number {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
}

.ai-step-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.ai-action-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.btn-ai-primary {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(91, 95, 122, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-ai-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 95, 122, 0.4);
}

.btn-ai-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.shimmer-btn .shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.btn-ai-secondary {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ai-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ai-info {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* Progress */
.mutalaa-progress {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  margin: var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.mutalaa-progress-title {
  margin: 0 0 var(--space-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  text-align: center;
}

.mutalaa-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.mutalaa-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 2px;
}

.mutalaa-progress-percent {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-align: right;
}

.mutalaa-steps-compact {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.mutalaa-step-compact {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  opacity: 0.4;
  transition: all var(--transition-normal);
}

.mutalaa-step-compact.active {
  opacity: 1;
  background: rgba(91, 95, 122, 0.15);
}

.mutalaa-step-compact.completed {
  opacity: 1;
  background: rgba(91, 95, 122, 0.15);
}

.mutalaa-step-compact i {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

.mutalaa-step-compact.active i {
  color: var(--primary-light);
  animation: bounce 0.8s infinite;
}

.mutalaa-step-compact.completed i {
  color: var(--accent);
}

.mutalaa-step-compact span {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ===================================
   Modals
=================================== */
.ictihat-modal,
.report-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.ictihat-modal.show,
.report-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
}

.modal-content {
  background: var(--nötr3);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s var(--ease-out);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--text-primary);
}

.modal-body {
  flex: 1;
  padding: var(--space-6);
  overflow-y: auto;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border);
  background: var(--nötr3);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.download-buttons-group {
  display: flex;
  gap: var(--space-2);
}

/* ===================================
   Login Page
=================================== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f1419 0%, #1a2027 50%, #0f1419 100%);
  padding: var(--space-5);
}

.login-container {
  background: var(--nötr3);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.login-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-2);
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.login-btn {
  width: 100%;
  padding: var(--space-4);
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.login-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===================================
   Document Type Cards
=================================== */
.document-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0;
}

.document-type-card {
  background: var(--nötr3);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.document-type-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.document-type-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.document-type-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: var(--space-4);
}

.document-type-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.document-type-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===================================
   Grid Utilities
=================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ===================================
   Spacing Utilities
=================================== */
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* ===================================
   Text Utilities
=================================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.font-semibold { font-weight: 600; }

/* ===================================
   Status Badges
=================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.status-preparing { background: #fef3c7; color: #92400e; }
.status-active { background: rgba(91, 95, 122, 0.1); color: var(--accent); }
.status-waiting { background: #e0e7ff; color: #3730a3; }
.status-appeal { background: #fce7f3; color: #be185d; }
.status-won { background: rgba(91, 95, 122, 0.1); color: var(--accent); }
.status-lost { background: #fee2e2; color: #991b1b; }
.status-default { background: var(--nötr2); color: #374151; }

/* ===================================
   Search Box
=================================== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-subtle);
}

.search-box i {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ===================================
   Action Buttons
=================================== */
.action-buttons {
  display: flex;
  gap: var(--space-1);
  align-items: center;
}

.action-buttons .btn {
  padding: 6px 10px;
  font-size: 12px;
}

/* ===================================
   Scrollbar Styling
=================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-400);
}

/* ===================================
   Responsive Design
=================================== */
@media (max-width: 1200px) {
  .ribbon {
    padding: 0 var(--space-4);
    height: 60px;
  }
  
  .ribbon-brand {
    font-size: 18px;
  }
  
  .ribbon-tab {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }
  
  .nav-pane {
    width: 240px;
    min-width: 240px;
  }
  
  .content-area {
    margin-left: 240px;
    padding: var(--space-5);
  }
  
  .status-bar {
    left: 240px;
  }
}

@media (max-width: 900px) {
  .ribbon-tab span {
    display: none;
  }
  
  .ribbon-tab i {
    margin: 0;
    font-size: 16px;
  }
  
  .user-details {
    display: none;
  }
  
  .nav-pane {
    width: 200px;
    min-width: 200px;
  }
  
  .content-area {
    margin-left: 200px;
  }
  
  .status-bar {
    left: 200px;
  }
}

@media (max-width: 768px) {
  .nav-pane {
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
  }
  
  .nav-pane.open {
    transform: translateX(0);
  }
  
  .content-area {
    margin-left: 0;
    padding: var(--space-4);
  }
  
  .status-bar {
    left: 0;
  }
  
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .main-layout {
    margin-top: 60px;
  }
}

/* ===================================
   Form Actions
=================================== */
.form-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: flex-end;
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

/* Hide title bar */
.titlebar {
  display: none;
}
