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

:root {
  --primary: #0f172a;
  --primary-light: #1e293b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #dbeafe;
  --success: #16a34a;
  --success-light: #dcfce7;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --info: #0891b2;
  --info-light: #cffafe;
  --bg: #f1f5f9;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --sidebar-width: 260px;
  --header-height: 64px;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--primary);
  color: #fff;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-brand {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-brand .logo {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.sidebar-brand h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sidebar-brand span {
  font-size: 11px;
  color: var(--text-light);
  display: block;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 12px 0;
}

.nav-section {
  padding: 8px 24px 4px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.nav-item.active {
  background: rgba(37,99,235,0.15);
  color: #60a5fa;
  border-left-color: var(--accent);
}

.nav-item .icon {
  width: 20px;
  text-align: center;
  font-size: 16px;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 600;
}

/* MAIN CONTENT */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* HEADER */
.header {
  height: var(--header-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-left h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search {
  position: relative;
}

.header-search input {
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  width: 240px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.header-search input:focus {
  border-color: var(--accent);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.header-btn {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.header-btn:hover {
  background: var(--bg);
  color: var(--text);
}

.header-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid var(--card);
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.user-menu:hover {
  background: var(--bg);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.user-info {
  line-height: 1.3;
}

.user-info .name {
  font-weight: 600;
  font-size: 13px;
}

.user-info .role {
  font-size: 11px;
  color: var(--text-secondary);
}

/* PAGE CONTENT */
.page-content {
  padding: 24px 32px;
}

/* STATS CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
}

.stat-card .stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.stat-icon.blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--success-light); color: var(--success); }
.stat-icon.yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.red { background: var(--danger-light); color: var(--danger); }
.stat-icon.cyan { background: var(--info-light); color: var(--info); }

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-card .stat-change {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

.stat-change.up { color: var(--success); }
.stat-change.down { color: var(--danger); }

/* CARDS */
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.card-body {
  padding: 20px;
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* GRID LAYOUTS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.grid-1-2 {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}

/* TABLES */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--bg);
}

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: #b45309; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-info { background: var(--info-light); color: var(--info); }
.badge-primary { background: var(--accent-light); color: var(--accent); }
.badge-secondary { background: #f1f5f9; color: var(--text-secondary); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #15803d; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { background: #b91c1c; }

.btn-warning {
  background: var(--warning);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: var(--bg);
  color: var(--text);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-icon {
  padding: 6px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

/* FORMS */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: var(--card);
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 32px;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

/* TABS */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}

.tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.15s;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: var(--bg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-secondary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* PROGRESS BAR */
.progress {
  height: 6px;
  background: var(--bg);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.progress-bar.blue { background: var(--accent); }
.progress-bar.green { background: var(--success); }
.progress-bar.yellow { background: var(--warning); }
.progress-bar.red { background: var(--danger); }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card);
}

.timeline-item.done::before {
  background: var(--success);
}

.timeline-item.pending::before {
  background: var(--warning);
}

.timeline-item .tl-time {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 2px;
}

.timeline-item .tl-title {
  font-weight: 600;
  font-size: 13px;
}

.timeline-item .tl-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* STATUS FLOW */
.status-flow {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 16px 0;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
}

.status-step::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.status-step:last-child::after {
  display: none;
}

.status-step .step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
  color: var(--text-secondary);
}

.status-step.active .step-circle {
  background: var(--accent);
  color: #fff;
}

.status-step.done .step-circle {
  background: var(--success);
  color: #fff;
}

.status-step .step-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  text-align: center;
}

.status-step.active .step-label {
  color: var(--accent);
  font-weight: 600;
}

/* KANBAN */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
}

.kanban-col {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  min-height: 300px;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.kanban-col-header h4 {
  font-size: 13px;
  font-weight: 600;
}

.kanban-col-header .count {
  font-size: 11px;
  background: var(--card);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
}

.kanban-card {
  background: var(--card);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.kanban-card:hover {
  box-shadow: var(--shadow-md);
}

.kanban-card .kc-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.kanban-card .kc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.kanban-card .kc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-card .kc-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

/* FILTER BAR */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-bar .filter-item {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--card);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-bar .filter-item:hover {
  border-color: var(--accent);
}

.filter-bar .filter-item.active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-secondary);
}

.empty-state .icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.empty-state h4 {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

/* ALERTS */
.alert {
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-info {
  background: var(--info-light);
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.alert-success {
  background: var(--success-light);
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert-warning {
  background: var(--warning-light);
  color: #92400e;
  border: 1px solid #fde68a;
}

.alert-danger {
  background: var(--danger-light);
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .grid-2, .grid-3, .grid-2-1, .grid-1-2 {
    grid-template-columns: 1fr;
  }
  .kanban {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.animate-in {
  animation: fadeIn 0.3s ease;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* UTILITY */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 12px; }
.fw-600 { font-weight: 600; }
.d-flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-1 { gap: 8px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cursor-pointer { cursor: pointer; }

/* Product Card Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card .pc-img {
  height: 180px;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--text-light);
}

.product-card .pc-body {
  padding: 16px;
}

.product-card .pc-category {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-card .pc-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .pc-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.product-card .pc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.product-card .pc-price span {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 400;
}

/* Map placeholder */
.map-placeholder {
  height: 300px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

/* Mini chart bars */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 40px;
}

.mini-chart .bar {
  flex: 1;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.mini-chart .bar:hover {
  opacity: 1;
}

/* Notification dropdown */
.notification-count {
  font-size: 11px;
  background: var(--danger);
  color: #fff;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  position: absolute;
  top: -4px;
  right: -4px;
  font-weight: 600;
}

/* Detail list */
.detail-list dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.detail-list dd {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

/* Tabla row click */
.clickable-row {
  cursor: pointer;
}
.clickable-row:hover td {
  background: var(--accent-light) !important;
}

/* ===== PROFESYONEL İKON SİSTEMİ ===== */
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.nav-icon {
  opacity: 0.85;
  transition: opacity 0.15s;
}

.nav-item:hover .nav-icon,
.nav-item.active .nav-icon {
  opacity: 1;
}

/* Stat card icon container */
.stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.svg-blue { background: var(--accent-light); color: var(--accent); }
.stat-icon.svg-green { background: var(--success-light); color: var(--success); }
.stat-icon.svg-yellow { background: var(--warning-light); color: var(--warning); }
.stat-icon.svg-red { background: var(--danger-light); color: var(--danger); }
.stat-icon.svg-cyan { background: var(--info-light); color: var(--info); }

.stat-icon .icon,
.stat-icon svg {
  color: inherit;
}

/* Sidebar nav icon alignment */
.nav-item .icon,
.nav-item svg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Button icons */
.btn .icon,
.btn svg {
  margin-right: 2px;
}

.btn-icon-only {
  padding: 6px;
  width: 32px;
  height: 32px;
  justify-content: center;
}

/* Card section icons */
.card-header .icon,
.card-header svg {
  color: var(--text-secondary);
  margin-right: 6px;
}

/* Table icons */
.table-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-icon .icon,
.table-icon svg {
  color: var(--text-secondary);
}

/* ===== KURUMSAL TASARIM GÜNCELLEMELERİ ===== */

/* Daha profesyonel sidebar */
.sidebar {
  border-right: 1px solid rgba(255,255,255,0.06);
}

.sidebar-brand {
  padding: 20px 20px;
}

.sidebar-brand .logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}

.sidebar-brand h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.sidebar-brand span {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Daha temiz nav item */
.nav-item {
  padding: 9px 20px;
  margin: 1px 8px;
  border-radius: 6px;
  border-left: none;
  font-size: 13px;
  gap: 10px;
}

.nav-item:hover {
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  background: rgba(37,99,235,0.12);
  color: #93c5fd;
  border-left: none;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-section {
  padding: 16px 20px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}

/* Daha profesyonel header */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-left h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--primary);
}

/* Daha kurumsal kartlar */
.stat-card {
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.stat-card:hover {
  border-left-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Profesyonel tablolar */
thead th {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  padding: 10px 14px;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
}

tbody tr {
  transition: background 0.1s;
}

tbody tr:hover {
  background: #f8fafc;
}

/* Daha modern butonlar */
.btn {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: -0.01em;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.btn-primary {
  box-shadow: 0 1px 3px rgba(37,99,235,0.2);
}

.btn-primary:hover {
  box-shadow: 0 2px 8px rgba(37,99,235,0.3);
  transform: translateY(-1px);
}

/* Daha modern badge'ler */
.badge {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 3px 9px;
  border-radius: 5px;
}

/* Kart başlıkları */
.card-header h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
}

/* Form kontrolleri */
.form-control {
  font-size: 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  transition: all 0.15s;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}

/* Modal iyileştirmeleri */
.modal {
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Profesyonel progress bar */
.progress {
  height: 5px;
  border-radius: 3px;
  background: #f1f5f9;
}

.progress-bar {
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Sidebar logo glow */
.sidebar-brand .logo {
  position: relative;
}

.sidebar-brand .logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  border-radius: 12px;
  z-index: -1;
  opacity: 0.2;
  filter: blur(4px);
}

/* Alert iyileştirmeleri */
.alert {
  font-weight: 500;
  font-size: 13px;
  border-radius: 8px;
}

/* Tooltip */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 100;
  margin-bottom: 4px;
}

/* Skeleton loading */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* Pulse for live indicators */
@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse-live {
  animation: pulse-live 2s ease-in-out infinite;
}

/* Live dot */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
  animation: pulse-live 2s ease-in-out infinite;
}

/* Upgrade card styling */
.upgrade-card {
  background: linear-gradient(135deg, var(--primary), #1e293b);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 24px;
}

.upgrade-card h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.upgrade-card p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

/* Data table sorting */
.sortable {
  cursor: pointer;
  user-select: none;
}

.sortable:hover {
  color: var(--accent);
}

.sortable::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.3;
}

/* KPI gauge */
.kpi-gauge {
  width: 80px;
  height: 40px;
  position: relative;
  overflow: hidden;
}

.kpi-gauge::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  border-radius: 50%;
  border: 6px solid #f1f5f9;
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(225deg);
}
