/* بوابة طلبات النائب - تصميم بسيط ونظيف */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

body {
  background: #f9fafb;
  font-family: 'Cairo', sans-serif;
  color: #111827;
}

.app-navbar {
  background: linear-gradient(135deg, #1e40af 0%, #1b3a99 100%) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1050;
}

.app-navbar .navbar-brand {
  color: white !important;
  font-size: 1.2rem;
  font-weight: 700;
}

.app-navbar .navbar-brand i {
  font-size: 1.3rem;
}

.app-navbar .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.app-navbar .btn-outline-secondary:hover {
  background: white;
  color: #1e40af;
}

.app-navbar .btn-primary {
  background: white;
  color: #1e40af;
}

.app-navbar .btn-outline-danger {
  background: rgba(239, 68, 68, 0.1);
  color: white;
  border: 1px solid rgba(239, 68, 68, 0.5);
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.kpi-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e5e7eb;
}

.kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.kpi-total .kpi-icon {
  background: #dbeafe;
  color: #1e40af;
}

.kpi-new .kpi-icon {
  background: #d1fae5;
  color: #059669;
}

.kpi-progress .kpi-icon {
  background: #fef3c7;
  color: #d97706;
}

.kpi-closed .kpi-icon {
  background: #f3f4f6;
  color: #6b7280;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.status-new {
  background: #d1fae5;
  color: #065f46;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8125rem;
}

.status-progress {
  background: #fef3c7;
  color: #92400e;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8125rem;
}

.status-closed {
  background: #f3f4f6;
  color: #374151;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8125rem;
}

.status-failed {
  background: #fee2e2;
  color: #991b1b;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8125rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.small-muted {
  color: #6b7280;
  font-size: 0.875rem;
}

.text-gradient {
  color: #1e40af;
  font-weight: 700;
}

.table thead {
  background: #f9fafb;
}

.table tbody tr:hover {
  background: #f9fafb;
}

.activity-list {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 992px) {
  .activity-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.activity-item {
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, #f9fbff 100%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.activity-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: #dbeafe;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.15);
}

.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.app-footer {
  background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
  color: #e5e7eb;
  padding: 1.5rem 0;
  border-top: 3px solid #2563eb;
}

.app-footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.footer-pill-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.app-footer__copy {
  color: #9ca3af;
  font-size: 0.9rem;
}

.filter-panel {
  background: white;
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #2563eb;
}

.section-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@media (max-width: 768px) {
  .kpi-value { font-size: 1.5rem; }
  .app-navbar .navbar-brand { font-size: 1rem; }
  
  /* Compact cards on mobile */
  .card-body {
    padding: 1rem !important;
  }
  
  /* Smaller form elements */
  .form-control, .form-select {
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
  }
  
  .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.375rem;
  }
  
  /* Compact buttons */
  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
  }
  
  /* Smaller status badges */
  .status-new, .status-progress, .status-closed {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  /* Compact timeline */
  .timeline-dot {
    width: 6px;
    height: 6px;
  }
  
  /* Reduce vertical spacing */
  .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1rem !important;
  }
  
  /* Smaller section icons */
  .section-icon {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  
  .app-footer__top, .app-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Form Select Small */
.form-select-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 6px;
}

.form-select-sm:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Table Wrapper */
.table-wrapper {
  overflow: hidden;
}

.table-responsive {
  overflow-x: auto;
}

/* Timeline Styles - Compact Version */
.timeline-compact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.timeline-item-compact {
  position: relative;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  background: #2563eb;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* Hover effect for recent requests */
a[style*="background: #f9fafb"]:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}
