/* public/css/style.css - Kayapınar Belediyesi Görev Takip - Aydınlık & Kurumsal Tema */
:root {
  color-scheme: light;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-focus: #2563eb;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-primary: #2563eb;
  --accent-primary-hover: #1d4ed8;
  --accent-success: #16a34a;
  --accent-success-hover: #15803d;
  --accent-warning: #d97706;
  --accent-warning-hover: #b45309;
  --accent-danger: #dc2626;
  --accent-danger-hover: #b91c1c;
  --accent-purple: #7c3aed;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.12);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
}

/* Açılan Sayfalarda Arka Fondaki Kayapınar Logosu (Sadece Geniş Ekranlar) */
@media (min-width: 769px) {
  body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vmin, 580px);
    height: min(85vmin, 580px);
    background-image: url('../images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.16;
    pointer-events: none;
    z-index: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulseGlow {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.animate-fade {
  animation: fadeIn 0.25s ease-out forwards;
}

/* App Container */
#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.5rem;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  padding: 2px 4px;
  border-radius: 8px;
}

.brand-container:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.brand-container:active {
  transform: scale(0.98);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.15);
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: #2563eb;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-detail {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
}

.user-role-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
}

.role-admin {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.role-staff {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* Notification Bell */
.notif-bell-btn {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.notif-bell-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #dc2626;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  animation: pulseGlow 2s infinite;
}

.notif-badge.hidden {
  display: none;
}

/* Mobile Notification Backdrop */
.notif-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1990;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.notif-backdrop.show {
  display: block;
  opacity: 1;
}

body.notif-open {
  overflow: hidden;
}

.btn-close-notif-mobile {
  display: none;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 4px;
}

.btn-close-notif-mobile:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Notification Dropdown Drawer */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 2100;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.notif-dropdown.show {
  display: flex;
}

.notif-header {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.notif-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-mark-all-read {
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-mark-all-read:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.notif-item {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.notif-item:hover {
  background: #f8fafc;
}

.notif-item.unread {
  background: #eff6ff;
}

.notif-item.unread:hover {
  background: #dbeafe;
}

.notif-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.notif-content {
  flex: 1;
}

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.notif-item-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.notif-item-time {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.notif-item-msg {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-unread-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 9999px;
  flex-shrink: 0;
  margin-top: 6px;
}

.btn-delete-notif {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 0.75rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  line-height: 1;
}

.btn-delete-notif:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
  transform: scale(1.12);
}

.notif-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Main Content Area */
.main-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0.25rem 0.75rem 0.35rem;
  width: 100%;
  flex: 1;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: #2563eb;
  color: white !important;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
  border: 1px solid #1d4ed8;
}

.btn-primary:hover {
  background: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.35);
}

.btn-success {
  background: #16a34a;
  color: white !important;
  border: 1px solid #15803d;
}

.btn-success:hover {
  background: #15803d;
}

.btn-secondary {
  background: #ffffff;
  color: #334155 !important;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #94a3b8;
}

.btn-danger {
  background: #dc2626;
  color: white !important;
  border: 1px solid #b91c1c;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.775rem;
  border-radius: 6px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Compact Stats Strip */
.stats-strip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.35rem 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.stat-pill:hover {
  border-color: #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.stat-pill.active-filter {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 1px #2563eb;
}

.stat-pill-num {
  font-weight: 800;
  font-size: 0.85rem;
  color: #0f172a;
}

/* Stats Cards fallback */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #2563eb;
}

.stat-card.active-filter {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-icon.blue { background: #eff6ff; color: #2563eb; border: 1px solid #dbeafe; }
.stat-icon.yellow { background: #fffbeb; color: #d97706; border: 1px solid #fef3c7; }
.stat-icon.green { background: #f0fdf4; color: #16a34a; border: 1px solid #dcfce7; }
.stat-icon.red { background: #fef2f2; color: #dc2626; border: 1px solid #fee2e2; }
.stat-icon.purple { background: #f5f3ff; color: #7c3aed; border: 1px solid #ede9fe; }

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
}

/* Action Bars & Controls */
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  background: #ffffff;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.controls-left, .controls-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.search-input-box {
  position: relative;
  min-width: 200px;
}

.search-input-box input {
  width: 100%;
  padding: 0.45rem 0.8rem 0.45rem 2rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.825rem;
  outline: none;
  transition: var(--transition);
}

.search-input-box input:focus {
  border-color: var(--border-focus);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-icon-svg {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

.filter-select {
  padding: 0.45rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 0.825rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-select:focus {
  border-color: var(--border-focus);
  background: #ffffff;
}

.filter-select option {
  background: #ffffff;
  color: #0f172a;
}

/* Tabs */
.view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #f1f5f9;
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 0.55rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.35rem 0.85rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: #0f172a;
}

.tab-btn.active {
  background: #ffffff;
  color: #2563eb !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

/* Tables */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-y: auto;
  max-height: calc(100vh - 275px);
  box-shadow: var(--shadow-sm);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: #f8fafc;
  padding: 0.55rem 0.75rem;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #475569;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.03em;
  position: sticky;
  top: 0;
  z-index: 5;
}

.custom-table td {
  padding: 0.55rem 0.75rem;
  font-size: 0.825rem;
  border-bottom: 1px solid #f1f5f9;
  color: #1e293b;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover td {
  background: #f8fafc;
}

/* Status & Priority Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: capitalize;
}

.badge-pending { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-in_progress { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-completed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.badge-overdue { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.badge-low { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.badge-medium { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-high { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.badge-urgent { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; font-weight: 700; }

/* Task Grid for Cards view */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.15rem;
}

.task-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.task-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.task-card-title {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.task-card-desc {
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}

.task-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(15px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-body {
  padding: 1.35rem 1.5rem;
}

.modal-footer {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  background: #f8fafc;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.15rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155 !important;
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a !important;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  -webkit-appearance: none;
}

.form-control::placeholder {
  color: #94a3b8 !important;
}

.form-control:focus {
  border-color: var(--border-focus) !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

textarea.form-control {
  resize: vertical;
  min-height: 85px;
}

select.form-control,
.filter-select,
select {
  color: #0f172a !important;
  background-color: #ffffff !important;
  cursor: pointer;
}

select option,
.form-control option,
.filter-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
  padding: 0.55rem 0.85rem !important;
  font-size: 0.9rem !important;
}

input[type="datetime-local"],
input[type="date"],
input[type="time"] {
  color-scheme: light;
  color: #0f172a !important;
  background: #ffffff !important;
}

/* Login Page Styling */
.login-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 500px);
  height: min(90vw, 500px);
  background-image: url('../images/logo.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.login-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.login-logo-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  border: 1px solid #e2e8f0;
  display: block;
}

.login-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.login-dept-title {
  font-size: 1.15rem;
  color: #2563eb;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.login-app-desc {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  font-size: 0.825rem;
  color: #94a3b8;
}

/* Toast Notifications Container */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
  width: calc(100vw - 3rem);
}

.toast {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.25s ease;
}

.toast.hiding {
  opacity: 0;
  transform: translateX(60px);
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-body {
  flex: 1;
}

.toast-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.toast-msg {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0.1rem;
}

.toast-close:hover {
  color: #0f172a;
}

.toast.toast-success { border-left: 4px solid #16a34a; }
.toast.toast-error { border-left: 4px solid #dc2626; }
.toast.toast-warning { border-left: 4px solid #d97706; }
.toast.toast-info { border-left: 4px solid #2563eb; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.4rem 0.5rem;
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.mobile-nav-item {
  background: none;
  border: none;
  color: #64748b;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.mobile-nav-item.active {
  color: #2563eb;
}

.mobile-nav-icon {
  font-size: 1.25rem;
}

.mobile-url-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-family: monospace;
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
  word-break: break-all;
  margin-bottom: 1rem;
}

.qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin: 1rem 0;
}

/* ==========================================================================
   TASK LIFECYCLE & STREAMLINED DETAIL MODAL STYLES
   ========================================================================== */

/* Task Lifecycle Stepper (Görev Döngüsü Çizelgesi) */
.task-lifecycle-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
}

.task-lifecycle-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.85rem;
}

.task-lifecycle-stepper::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.task-lifecycle-progress-bar {
  position: absolute;
  top: 17px;
  left: 30px;
  height: 3px;
  background: #2563eb;
  z-index: 2;
  transition: width 0.35s ease;
  width: 0%;
}

.lifecycle-step {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f8fafc;
  padding: 0 0.4rem;
  min-width: 75px;
}

.lifecycle-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #64748b;
  transition: var(--transition);
  margin-bottom: 0.35rem;
}

.lifecycle-step.active .lifecycle-circle {
  border-color: #2563eb;
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.lifecycle-step.completed .lifecycle-circle {
  border-color: #16a34a;
  background: #16a34a;
  color: #ffffff;
}

.lifecycle-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.lifecycle-step.active .lifecycle-label {
  color: #2563eb;
  font-weight: 700;
}

.lifecycle-step.completed .lifecycle-label {
  color: #16a34a;
}

.lifecycle-actions-bar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 0.75rem;
  border-top: 1px dashed #e2e8f0;
}

/* Detail Section Cards */
.detail-section-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.detail-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.03em;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Camera & Document Upload Module */
.upload-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.btn-camera-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-camera-action:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}

.btn-doc-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #334155;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-doc-action:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
  transform: translateY(-1px);
}

/* Live Selected File/Photo Preview */
.upload-preview-box {
  background: #f8fafc;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 0.85rem;
  margin-bottom: 0.85rem;
  animation: fadeIn 0.2s ease-out;
}

.preview-media-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.preview-thumbnail {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

.preview-doc-icon {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

/* Attachment Cards */
.attachment-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 0.75rem;
  transition: var(--transition);
}

.attachment-card:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
}

.attachment-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  flex-shrink: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  object-fit: contain;
}

.lightbox-close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0f172a;
  border: none;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Slide up drawer animation for mobile */
@keyframes slideUpDrawer {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive Rules */
@media (max-width: 768px) {
  body {
    background-color: #f8fafc !important;
  }

  body::before {
    display: none !important;
  }

  .login-container {
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding: 1rem 0.75rem !important;
    justify-content: flex-start !important;
    padding-top: 1rem !important;
    overflow-y: auto !important;
  }

  .login-container::before {
    display: none !important;
  }

  .login-card {
    padding: 1.25rem 1rem !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06) !important;
    transform: none !important;
    -webkit-transform: none !important;
    animation: none !important;
  }

  /* Mobile Bottom Sheet Drawer for Notifications */
  .notif-dropdown {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 82vh !important;
    border-radius: 20px 20px 0 0 !important;
    border: none !important;
    border-top: 1px solid #cbd5e1 !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35) !important;
    z-index: 2100 !important;
    background: #ffffff !important;
    animation: slideUpDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  .btn-close-notif-mobile {
    display: flex !important;
  }

  .notif-header {
    padding: 1rem 1.15rem !important;
    background: #ffffff !important;
    border-radius: 20px 20px 0 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
  }

  .notif-list {
    max-height: calc(82vh - 65px) !important;
    padding-bottom: 2rem !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .notif-item {
    padding: 0.9rem 1.15rem !important;
  }

  /* Navbar Mobile */
  .navbar {
    padding: 0.45rem 0.75rem !important;
    gap: 0.4rem;
  }
  .brand-logo-img {
    width: 32px !important;
    height: 32px !important;
  }
  .brand-title {
    font-size: 0.88rem !important;
  }
  .brand-subtitle {
    font-size: 0.7rem !important;
  }
  .brand-detail {
    display: none !important;
  }
  .nav-actions {
    gap: 0.4rem !important;
  }
  .user-badge {
    padding: 0.18rem 0.45rem !important;
    font-size: 0.725rem !important;
  }
  .user-role-tag {
    display: none !important;
  }
  .btn-logout-inline {
    font-size: 0.7rem !important;
  }

  /* Main Container & Strips Mobile */
  .main-container {
    padding: 0.65rem 0.5rem 2rem !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .top-admin-panel {
    padding: 0.45rem !important;
  }
  .stats-strip {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.35rem !important;
  }
  .stat-pill {
    padding: 0.35rem 0.55rem !important;
    font-size: 0.75rem !important;
    justify-content: space-between !important;
  }
  .view-tabs {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 0.2rem !important;
    gap: 0.25rem !important;
  }
  .tab-btn {
    white-space: nowrap !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.6rem !important;
    flex-shrink: 0 !important;
  }

  /* Table Cards Mobile */
  .table-card {
    border-radius: var(--radius-md) !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
  }
  .custom-table {
    min-width: 600px !important;
  }

  /* Modals Mobile */
  .modal-overlay {
    padding: 0 !important;
    align-items: flex-end !important;
  }
  .modal-box {
    max-height: 92vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
  }
  .modal-header {
    padding: 0.85rem 1.15rem !important;
  }
  .modal-body {
    padding: 1rem 0.9rem !important;
    max-height: calc(92vh - 120px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .modal-footer {
    padding: 0.75rem 0.9rem !important;
    flex-wrap: wrap !important;
    gap: 0.45rem !important;
  }
  .task-lifecycle-stepper {
    padding: 0.5rem 0 !important;
  }
  .lifecycle-label {
    font-size: 0.68rem !important;
  }
  .lifecycle-actions-bar {
    flex-direction: column !important;
    gap: 0.35rem !important;
  }
  .lifecycle-actions-bar .btn {
    width: 100% !important;
  }
  .upload-action-buttons {
    grid-template-columns: 1fr !important;
  }
  .task-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   CANLI CHAT (MESAJLAŞMA) & AKILLI ARAMA STİLLERİ
   ========================================================================== */

/* Navbar Eylem Butonları (Arama & Sohbet) */
.nav-btn-action {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.nav-btn-action:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.chat-nav-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  animation: pulseGlow 2s infinite;
}

/* Chat Modal Düzeni */
.chat-modal-box {
  width: 95vw;
  max-width: 900px;
  height: 85vh;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
  background: #ffffff;
  border-radius: var(--radius-lg);
}

.chat-layout {
  display: flex;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* Sol Panel: Sohbet Listesi */
.chat-sidebar {
  width: 320px;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.chat-sidebar-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.chat-sidebar-search {
  width: 100%;
  padding: 0.45rem 0.75rem 0.45rem 2rem;
  font-size: 0.825rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 0.65rem center;
}

.chat-sidebar-search:focus {
  border-color: var(--accent-primary);
  background-color: #ffffff;
}

.chat-conversations-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  background: #ffffff;
  position: relative;
}

.chat-conv-item:hover {
  background: #f1f5f9;
  border-color: var(--border-color);
}

.chat-conv-item.active {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.chat-conv-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: #e2e8f0;
  color: #1e293b;
  flex-shrink: 0;
  font-weight: 700;
}

.chat-conv-avatar.general {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
}

.chat-conv-avatar.admin {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.chat-conv-info {
  flex: 1;
  min-width: 0;
}

.chat-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.chat-conv-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-conv-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.chat-conv-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-conv-snippet {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.chat-conv-unread {
  background: #2563eb;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Sağ Panel: Aktif Sohbet Penceresi */
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  height: 100%;
}

.chat-window-header {
  padding: 0.75rem 1.15rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.chat-header-target {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-header-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-header-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
}

.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: #f1f5f9;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 16px 16px;
}

.chat-date-divider {
  align-self: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin: 0.4rem 0;
}

/* Mesaj Baloncukları */
.chat-bubble {
  max-width: 75%;
  padding: 0.6rem 0.85rem;
  border-radius: 14px;
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.15s ease-out;
}

.chat-bubble.outgoing {
  align-self: flex-end;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  border-bottom-right-radius: 3px;
}

.chat-bubble.incoming {
  align-self: flex-start;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 3px;
}

.chat-bubble-sender {
  font-size: 0.725rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: #2563eb;
}

.chat-bubble.outgoing .chat-bubble-sender {
  display: none;
}

.chat-bubble-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  margin-top: 3px;
  font-size: 0.65rem;
  opacity: 0.8;
}

.chat-bubble.outgoing .chat-bubble-footer {
  color: #dbeafe;
}

.chat-bubble.incoming .chat-bubble-footer {
  color: #64748b;
}

/* Chat Input Alanı */
.chat-input-container {
  padding: 0.65rem 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chat-input-box {
  flex: 1;
  padding: 0.55rem 0.85rem;
  font-size: 0.875rem;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  outline: none;
  background: #f8fafc;
  transition: var(--transition);
}

.chat-input-box:focus {
  border-color: var(--accent-primary);
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.chat-send-btn {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.chat-send-btn:hover {
  background: var(--accent-primary-hover);
  transform: translateY(-1px);
}

/* Akıllı Arama Modal Stilleri */
.search-modal-box {
  width: 95vw;
  max-width: 650px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-input-header {
  padding: 0.85rem 1.15rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.search-main-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
}

.search-results-container {
  max-height: 480px;
  overflow-y: auto;
  padding: 0.85rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.search-section-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.search-result-card {
  padding: 0.6rem 0.85rem;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.search-result-card:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  transform: translateX(2px);
}

.search-result-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}

.search-result-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Mobil Uyumlu Chat */
@media (max-width: 768px) {
  .chat-layout {
    position: relative;
  }
  .chat-sidebar {
    width: 100%;
  }
  .chat-window {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: none;
  }
  .chat-window.mobile-active {
    display: flex;
  }
  .chat-modal-box {
    height: 92vh;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}

/* ==========================================================================
   SESLİ ARAMA (VOICE CALL & WEBRTC) STİLLERİ
   ========================================================================== */
.call-modal-overlay {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px);
  z-index: 10000 !important;
  display: none;
  align-items: center;
  justify-content: center;
}

.call-modal-overlay.active {
  display: flex !important;
}

.call-card-box {
  background: linear-gradient(180deg, #1e293b, #0f172a);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 90vw;
  max-width: 380px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.call-avatar-container {
  position: relative;
  width: 96px;
  height: 96px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.call-big-avatar {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #ffffff;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
}

.call-pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.7);
  animation: pulseRing 1.8s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.call-pulse-ring.delay {
  animation-delay: 0.6s;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.call-title {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: #ffffff;
}

.call-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 1.5rem;
}

.call-status-pill {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.call-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulseGlow 1.5s infinite;
}

.call-waves-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  margin-bottom: 1.5rem;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background: #38bdf8;
  border-radius: 2px;
  animation: waveMotion 1s ease-in-out infinite alternate;
}

.wave-bar:nth-child(2) { animation-delay: 0.2s; height: 18px; }
.wave-bar:nth-child(3) { animation-delay: 0.4s; height: 26px; }
.wave-bar:nth-child(4) { animation-delay: 0.1s; height: 16px; }
.wave-bar:nth-child(5) { animation-delay: 0.3s; height: 10px; }

@keyframes waveMotion {
  0% { transform: scaleY(0.4); }
  100% { transform: scaleY(1.3); }
}

.call-actions-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  width: 100%;
}

.btn-call-action {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.btn-call-accept {
  background: #16a34a;
  color: #ffffff;
}

.btn-call-accept:hover {
  background: #15803d;
  transform: translateY(-2px);
}

.btn-call-reject {
  background: #dc2626;
  color: #ffffff;
}

.btn-call-reject:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

.btn-call-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-call-circle:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

.btn-call-end {
  background: #dc2626 !important;
}

.btn-call-end:hover {
  background: #b91c1c !important;
}

/* ======================================================== */
/* TÜRKİYE TARİH & SAAT WIDGET STYLES */
/* ======================================================== */
.nav-time-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.32rem 0.65rem;
  background: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #166534 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-time-btn:hover {
  background: #dcfce7 !important;
  border-color: #86efac !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(22, 101, 52, 0.15);
}

@media (max-width: 768px) {
  .hidden-on-mobile {
    display: none !important;
  }
  .nav-time-btn {
    padding: 0.25rem 0.45rem !important;
    font-size: 0.75rem !important;
    gap: 4px !important;
  }
}




/* ======================================================== */
/* INVENTORY MODULE STYLES (BİLGİSAYAR & AĞ ENVANTERİ)     */
/* ======================================================== */
.ip-pill {
  transition: all 0.15s ease;
  user-select: all;
}
.ip-pill:hover {
  background: #dbeafe !important;
  color: #1e40af !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.mac-pill {
  transition: all 0.15s ease;
  user-select: all;
}
.mac-pill:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

#inventory-import-dropzone:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  transform: scale(1.01);
}

.inventory-row-checkbox {
  accent-color: #2563eb;
}




/* ======================================================== */
/* BRAND DIGITAL CLOCK (KAYAPINAR BİLGİ İŞLEM ALTINDAKİ SAAT) */
/* ======================================================== */
.brand-clock-widget {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  padding: 0.15rem 0.45rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #166534;
  cursor: pointer;
  width: fit-content;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  user-select: none;
}

.brand-clock-widget:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(22, 101, 52, 0.12);
}

.brand-clock-widget .brand-clock-time {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.82rem;
  font-weight: 800;
  color: #15803d;
  letter-spacing: 0.02em;
}

.brand-clock-widget .brand-clock-date {
  color: #166534;
  font-size: 0.72rem;
  font-weight: 600;
  border-left: 1px solid #bbf7d0;
  padding-left: 5px;
}

/* ======================================================== */
/* BELİRGİN ÇIKIŞ BUTONU (MOBİL VE WEB TAM UYUMLU)           */
/* ======================================================== */
.btn-navbar-logout {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  border: 1px solid #b91c1c !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.8rem !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.25) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

.btn-navbar-logout:hover {
  background: #b91c1c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.35) !important;
}

.btn-navbar-logout:active {
  transform: scale(0.97) !important;
}

.top-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: #f8fafc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.top-icon-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* MOBİL EKRANLARDA (<= 768px) ASLA SAĞA TAŞMA YAPMAYAN ULTRA UYUMLU DÜZEN */
@media (max-width: 768px) {
  .navbar {
    padding: 0.35rem 0.5rem !important;
    gap: 0.3rem !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
  }
  .brand-container {
    gap: 0.4rem !important;
    padding: 0 !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  .brand-logo-img {
    width: 28px !important;
    height: 28px !important;
  }
  .brand-title {
    font-size: 0.8rem !important;
    line-height: 1.1 !important;
  }
  .brand-subtitle {
    font-size: 0.65rem !important;
    line-height: 1.1 !important;
  }
  .brand-clock-widget {
    padding: 0.08rem 0.3rem !important;
    margin-top: 2px !important;
    gap: 3px !important;
  }
  .brand-clock-widget .brand-clock-time {
    font-size: 0.72rem !important;
  }
  .brand-clock-widget .brand-clock-date {
    display: none !important;
  }
  .nav-actions {
    gap: 0.3rem !important;
    flex-shrink: 0 !important;
  }
  .top-icon-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.85rem !important;
  }
  .notif-bell-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  .user-badge {
    padding: 0.2rem 0.4rem !important;
    font-size: 0.72rem !important;
    max-width: 80px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .user-badge .user-role-tag {
    display: none !important;
  }
  .btn-navbar-logout {
    padding: 0.3rem 0.55rem !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    flex-shrink: 0 !important;
  }
}


/* ======================================================== */
/* INVENTORY CAMERA & OCR SCANNER STYLES                    */
/* ======================================================== */
.btn-field-camera-small {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 0.12rem 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-field-camera-small:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}

.btn-inv-cam-scan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: #15803d;
  border: none;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.btn-inv-cam-scan:hover {
  color: #166534;
  text-decoration: underline;
}

@keyframes laserScanAnim {
  0% { top: 10%; opacity: 0.8; }
  50% { top: 90%; opacity: 1; }
  100% { top: 10%; opacity: 0.8; }
}

#ocr-laser-line {
  animation: laserScanAnim 2s ease-in-out infinite;
}
