:root{
  --bg:#fffef7;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#ffeaa7;
  --primary:#FFE082;
  --primary-2:#FFB74D;
  --shadow: 0 8px 24px rgba(255,193,7,.12);
  --radius:16px;
  
  /* Page specific colors */
  --orders-color: #FFE082;
  --orders-dark: #FFB74D;
  --orders-hist-color: #F48FB1;
  --orders-hist-dark: #F06292;
  --meet-color: #80DEEA;
  --meet-dark: #4DD0E1;
  --tasks-color: #A5D6A7;
  --tasks-dark: #81C784;
  --social-color: #FFCC80;
  --social-dark: #FFB74D;
  --campaigns-color: #FFAB91;
  --campaigns-dark: #FF8A65;
  
  /* Common button colors */
  --btn-info: #17a2b8;
  --btn-info-hover: #138496;
  --btn-warning: #ffc107;
  --btn-warning-hover: #e0a800;
}

/* Performance: GPU acceleration for animations */
.modal, .card, .btn, .tab, .tab-content {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* GPU hızlandırma - Modal ve büyük konteynırlar */
.modal-content,
#ordersHistLinesContainer,
#uretimSatirlarContainer,
#tekliflerListeContainer,
.card-modern-body {
  will-change: auto;
  contain: layout style;
}

/* Modal açıldığında GPU kullanımı */
.modal[style*="flex"] .modal-content,
.modal[style*="block"] .modal-content {
  will-change: transform, opacity;
}

/* Üretim detay kartları için performans */
#uretimSatirlarContainer .card-modern {
  contain: layout paint;
}

/* Tablo satırları için performans */
.cart-row, .order-line-row {
  contain: layout;
}

/* Pulse animation for critical alerts */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.9;
  }
}

/* Modal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Modern Şikayet Kartları */
.sikayet-card-modern {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.sikayet-card-modern:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.sikayet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.sikayet-customer {
  flex: 1;
}

.customer-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 6px;
}

.customer-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #6b7280;
}

.customer-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.sikayet-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.sikayet-durum-badge {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sikayet-durum-select {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='currentColor' d='M6 8L2 4h8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}

.sikayet-durum-select:hover {
  border-color: currentColor;
  opacity: 0.9;
}

.btn-sikayet-delete {
  background: #fee;
  color: #dc2626;
  border: 1px solid #fca5a5;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.btn-sikayet-delete:hover {
  background: #dc2626;
  color: white;
  transform: scale(1.05);
}

.sikayet-hashtag {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  margin-bottom: 12px;
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.sikayet-content {
  color: #374151;
  line-height: 1.6;
  font-size: 0.9375rem;
  white-space: pre-wrap;
  margin-bottom: 12px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 10px;
}

.sikayet-media-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.sikayet-media {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 2px solid #e5e7eb;
}

.sikayet-media:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.sikayet-cevaplar {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #e5e7eb;
}

.sikayet-cevaplar h4 {
  font-size: 1rem;
  color: #111827;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sikayet-cevap-item {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  border-left: 3px solid #3b82f6;
}

.cevap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8125rem;
}

.cevap-header strong {
  color: #1e40af;
  font-weight: 700;
}

.cevap-time {
  color: #6b7280;
}

.cevap-text {
  color: #1f2937;
  line-height: 1.5;
  font-size: 0.9375rem;
}

.sikayet-cevap-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px dashed #e5e7eb;
}

.sikayet-cevap-form h4 {
  font-size: 1rem;
  color: #111827;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sikayet-cevap-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9375rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.sikayet-cevap-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-sikayet-cevap {
  margin-top: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sikayet-cevap:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-sikayet-cevap:active {
  transform: translateY(0);
}

*{ box-sizing:border-box; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #FFFBF0 0%, #FFFEF7 100%);
  color: var(--text);
  min-height: 100vh;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 32px;
  min-height: 80px;
  background: linear-gradient(135deg, #FF8F00 0%, #FFB74D 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(255, 143, 0, 0.3);
  /* backdrop-filter: blur(10px); - FPS düşürüyor, kaldırıldı */
}
.brand {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.container{
  max-width:1600px;
  margin:18px auto;
  padding:0 16px;
}

.card{
  background: white;
  padding: 20px;
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  border: 2px solid rgba(255, 224, 130, 0.1);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: rgba(255, 224, 130, 0.3);
}

h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  font-weight: 800;
  color: #1f2937;
  background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  margin: 0 0 12px 0;
  font-size: 17px;
  font-weight: 700;
  color: #374151;
}

.muted{ color:var(--muted); font-size:13px; }

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}
.grid3{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:14px;
}
.grid4{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap:14px;
}

@media (max-width: 980px){
  .grid4{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .grid2,.grid3,.grid4{ grid-template-columns:1fr; }
}

.field label{
  display:block;
  margin:0 0 6px 0;
  font-size:12px;
  color:var(--muted);
}
input, select, textarea{
  width:100%;
  padding:11px 12px;
  border:2px solid rgba(255, 224, 130, 0.3);
  border-radius:12px;
  font-size:14px;
  outline:none;
  background:#fffef7;
  transition: all 0.3s ease;
}
textarea{ min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus{
  border-color:#FFE082;
  box-shadow:0 0 0 4px rgba(255, 224, 130, 0.15);
  background: white;
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;           /* ✅ Butonlar üst üste değil, sığmazsa alt satıra iner */
  align-items:center;
  justify-content:flex-start;
  margin-top:10px;
}

.btn{
  border: none;
  background: white;
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.btn:active { transform: translateY(0px); }

.btn.primary{
  background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%);
  border: none;
  color: #1a1a1a;
  font-weight: 800;
}
.btn.primary:hover {
  box-shadow: 0 4px 16px rgba(255, 224, 130, 0.5);
}

.btn.ghost{
  background:#f3f4f6;
}

.badge{
  display:inline-flex; align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:#fff;
  font-size:12px;
  font-weight:700;
}

.tableWrap{
  margin-top:10px;
  overflow:auto;
  border:1px solid var(--border);
  border-radius:14px;
}
table{
  width:100%;
  border-collapse:collapse;
  min-width:860px;
}
th, td{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:13px;
  white-space:nowrap;
}
th{
  position:sticky; top:0;
  background:#fafafa;
  z-index:1;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.msg{
  margin-top:10px;
  font-size:13px;
}
hr.sep{
  border:none;
  border-top:1px solid var(--border);
  margin:14px 0;
}
.stack { display:flex; flex-direction:column; gap:12px; }
.row2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:720px){ .row2{ grid-template-columns:1fr; } }

.sectionTitle{ font-weight:800; margin:0; font-size:14px; color:#111827; }
.small{ font-size:12px; color:#6b7280; }

.readonly{
  background:#f3f4f6 !important;
  color:#111827 !important;
}


.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px;}
.tab{border:1px solid var(--border);background:#fff;padding:10px 12px;border-radius:999px;cursor:pointer;font-weight:700;}
.tab.active{background:var(--primary);border-color:var(--primary);color:#fff;}
.tabPanel{
  margin-top: 6px;
  padding-top: 80px; /* Sticky nav için boşluk */
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Sticky nav aktif olduğunda tabPanel padding artır */
body[data-current-page] .tabPanel {
  padding-top: 80px;
}


/* UI tweaks requested */
#ordersPage .grid2 { grid-template-columns: 1fr 1fr; }
#cartCard { grid-column: 1 / -1; }



/* ---------------------------
   Home (mobile app style) menu
---------------------------- */
.subbar{
  display:flex;
  align-items:center;
  gap:16px;
  padding: 16px 24px;
  margin: 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: sticky;
  top: 80px;
  z-index: 9;
}
.pageTitle{
  font-weight:900;
  letter-spacing:.3px;
  font-size:20px;
  color:#1a1a1a;
  flex: 1;
}

.homeMenu .menuHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
/* =============== MODERN DASHBOARD LAYOUT =============== */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 20px 0;
}

.dashboard-section {
  animation: fadeInUp 0.5s ease;
}

.section-title {
  font-size: 16px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 16px;
  padding-left: 8px;
  border-left: 4px solid #667eea;
  letter-spacing: -0.3px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.dashboard-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.dashboard-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border: none;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: width 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.dashboard-card:hover::before {
  width: 8px;
}

.dashboard-card:active {
  transform: translateY(-2px) scale(0.98);
}

.card-icon {
  font-size: 40px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.dashboard-card:hover .card-icon {
  transform: scale(1.1) rotate(-5deg);
}

.card-content {
  flex: 1;
  min-width: 0;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.card-arrow {
  font-size: 24px;
  color: #d1d5db;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.dashboard-card:hover .card-arrow {
  transform: translateX(6px);
  color: #9ca3af;
}

/* Card Themes */
.card-primary::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-primary:hover { background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%); }

.card-info::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-info:hover { background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%); }

.card-success::before { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.card-success:hover { background: linear-gradient(135deg, rgba(67, 233, 123, 0.05) 0%, rgba(56, 249, 215, 0.05) 100%); }

.card-warning::before { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.card-warning:hover { background: linear-gradient(135deg, rgba(250, 112, 154, 0.05) 0%, rgba(254, 225, 64, 0.05) 100%); }

.card-social::before { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.card-social:hover { background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%); }

.card-campaign::before { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.card-campaign:hover { background: linear-gradient(135deg, rgba(240, 147, 251, 0.05) 0%, rgba(245, 87, 108, 0.05) 100%); }

.card-analytics::before { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.card-analytics:hover { background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%); }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-grid-wide {
    grid-template-columns: 1fr;
  }
  
  .dashboard-card {
    padding: 20px;
  }
  
  .card-icon {
    font-size: 36px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 15px;
  }
}

/* =============== PWA STANDALONE MODE =============== */
body.pwa-standalone {
  /* iOS safe area insets */
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.pwa-standalone .topbar {
  display: none !important; /* Ana ekrandan açıldığında üst bar gizle */
}

body.pwa-standalone #appShell {
  padding-top: 0 !important;
}

body.pwa-standalone .subbar {
  position: sticky;
  top: 0;
  z-index: 998;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

body.pwa-standalone .subbar .pageTitle {
  color: white;
  font-weight: 700;
}

body.pwa-standalone #btnHome {
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

/* PWA splash screen simulation */
@media (display-mode: standalone) {
  body {
    -webkit-user-select: none;
    -webkit-touch-callout: none;
  }
}

/* =============== OLD MENU GRID (BACKUP) =============== */
.menuGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
}
@media (max-width: 980px){
  .menuGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .menuGrid{ grid-template-columns: 1fr; }
}

.menuTile{
  border: none;
  border-radius: 20px;
  padding: 28px 24px;
  min-height: 180px;
  cursor: pointer;
  text-align: left;
  color: #1a1a1a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: 200% 200%;
  background-position: 0% 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.menuTile::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: all 0.4s ease;
}

.menuTile:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  background-position: 100% 50%;
}

.menuTile:hover::before {
  width: 200px;
  height: 200px;
  transform: translate(30%, -30%);
}

.menuTile:active {
  transform: translateY(-4px) scale(0.98);
}

.tileIcon {
  font-size: 48px;
  opacity: 0.95;
  display: inline-block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.menuTile:hover .tileIcon {
  transform: scale(1.15) rotate(5deg);
}

.tileTitle {
  font-size: 20px;
  font-weight: 800;
  margin-top: 16px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.tileSub {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 8px;
  line-height: 1.4;
  font-weight: 500;
}

/* Modern gradient themes - Pastel tones matching menu */
.menuTile.t-orders {
  background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%);
}

.menuTile.t-orders-hist {
  background: linear-gradient(135deg, #F48FB1 0%, #F06292 100%);
}

.menuTile.t-meet {
  background: linear-gradient(135deg, #80DEEA 0%, #4DD0E1 100%);
}

.menuTile.t-tasks {
  background: linear-gradient(135deg, #A5D6A7 0%, #81C784 100%);
}

.menuTile.t-social {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
}

.menuTile.t-campaigns {
  background: linear-gradient(135deg, #FFAB91 0%, #FF8A65 100%);
}

.menuTile.t-analytics {
  background: linear-gradient(135deg, #CE93D8 0%, #BA68C8 100%);
}

.menuTile.t-sikayetler {
  background: linear-gradient(135deg, #FF8A80 0%, #FF5252 100%);
}

/* Mobile optimizations */
@media (max-width: 768px) {
  .menuTile {
    min-height: 160px;
    padding: 24px 20px;
  }
  
  .tileIcon {
    font-size: 42px;
  }
  
  .tileTitle {
    font-size: 18px;
  }
  
  .tileSub {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .menuTile {
    min-height: 140px;
    padding: 20px 18px;
  }
  
  .tileIcon {
    font-size: 38px;
  }
  
  .tileTitle {
    font-size: 17px;
  }
  
  .tileSub {
    font-size: 11px;
  }
}

/* Tabs: modern gradient theme */
.tabs{
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.2);
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  min-height: 60px; /* Minimum yükseklik */
  width: 100%;
  max-width: 100%;
}
.tabs::-webkit-scrollbar {
  height: 6px;
  display: block; /* Scrollbar'ı göster */
}

.tabs::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF8F00 0%, #FFB74D 100%);
  border-radius: 10px;
}

.tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #F57C00 0%, #FF8F00 100%);
}

/* Modern sticky top navigation */
.tabs-modern-sticky {
  position: sticky;
  top: 80px;
  z-index: 999;
  margin-bottom: 0;
  padding: 12px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0;
  border: none;
  border-bottom: 3px solid #FF8F00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Scroll fade indicators */
  position: relative;
}

.tabs-modern-sticky::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, rgba(255,255,255,1), transparent);
  pointer-events: none;
  z-index: 1;
}

.tabs-modern-sticky::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to left, rgba(255,255,255,1), transparent);
  pointer-events: none;
  z-index: 1;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.tabBtn{
  border: none;
  background: transparent;
  padding: 12px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.2px;
  z-index: 2;
}
.tabBtn:hover{
  background: linear-gradient(135deg, rgba(255, 143, 0, 0.1) 0%, rgba(255, 183, 77, 0.1) 100%);
  color: #FF8F00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.2);
}
.tabBtn.active{
  background: linear-gradient(135deg, #FF8F00 0%, #FFB74D 100%);
  color: white;
  box-shadow: 04px;
  transform: translateY(-2px);
  z-index: 2
  transform: translateY(-2px);
}

/* Page-specific tab colors */
body[data-current-page="orders"] .tabBtn.active[data-tab="orders"],
body[data-current-page="orders"] .tabs {
  background: linear-gradient(135deg, rgba(255, 224, 130, 0.15) 0%, rgba(255, 183, 77, 0.15) 100%);
}

body[data-current-page="orders_hist"] .tabBtn.active[data-tab="orders_hist"],
body[data-current-page="orders_hist"] .tabs {
  background: linear-gradient(135deg, rgba(244, 143, 177, 0.15) 0%, rgba(240, 98, 146, 0.15) 100%);
}

body[data-current-page="meet"] .tabBtn.active[data-tab="meet"],
body[data-current-page="meet"] .tabs {
  background: linear-gradient(135deg, rgba(128, 222, 234, 0.15) 0%, rgba(77, 208, 225, 0.15) 100%);
}

body[data-current-page="tasks"] .tabBtn.active[data-tab="tasks"],
body[data-current-page="tasks"] .tabs {
  background: linear-gradient(135deg, rgba(165, 214, 167, 0.15) 0%, rgba(129, 199, 132, 0.15) 100%);
}

body[data-current-page="social"] .tabBtn.active[data-tab="social"],
body[data-current-page="social"] .tabs {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

/* Social page - tabPanel padding sıfır (bottom nav var) */
body[data-current-page="social"] .tabPanel[data-tab="social"] {
  padding-top: 0 !important;
}

body[data-current-page="campaigns"] .tabBtn.active[data-tab="campaigns"],
body[data-current-page="campaigns"] .tabs {
  background: linear-gradient(135deg, rgba(255, 171, 145, 0.15) 0%, rgba(255, 138, 101, 0.15) 100%);
}


.right{ text-align:right !important; }
.btn.sm{ padding:7px 10px; border-radius:10px; font-size:12px; }


/* ---- Progress Bars (Görevler / Hedefler) ---- */
.pbInline{
  display:flex;
  align-items:center;
  gap:8px;
  white-space:nowrap;
}
.pb{
  position:relative;
  width:120px;
  height:10px;
  border-radius:999px;
  background: rgba(37,99,235,.12);
  overflow:hidden;
}
.pb-sm{ height:8px; width:120px; }
.pb-xs{ height:6px; width:90px; }

.pb-fill{
  display:block;
  height:100%;
  width:0%;
  border-radius:999px;
  background: var(--primary);
  transition: width .6s ease;
}

.pb-val{
  font-size:12px;
  color: var(--muted);
}

.pbCell{
  text-align:right;
  vertical-align:middle;
}
.pbCell .pbInline{
  justify-content:flex-end;
}

/* small pulse for better visual feedback (subtle) */
@keyframes pbPulse {
  0%{ opacity: .85; }
  50%{ opacity: 1; }
  100%{ opacity: .85; }
}
.pb-fill{
  animation: pbPulse 1.8s ease-in-out infinite;
}



/* =========================
   Verilen Siparişler (Modern)
   ========================= */
.pageTitleRow{display:flex;align-items:center;gap:12px;margin:6px 0 14px 0}
.pageTitle{margin:0;font-size:22px;font-weight:700;letter-spacing:.2px}
.cardTitleRow{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ohFilterGrid{display:grid;grid-template-columns:1fr 240px auto;gap:12px;align-items:end}
.ohFilterBtns{display:flex;gap:10px;justify-content:flex-end}
.ohFilterGrid .hint{font-size:12px;color:var(--muted);margin-top:6px}
.ordersHistLayout{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin-top:14px;align-items:start}
@media (max-width: 1100px){
  .ohFilterGrid{grid-template-columns:1fr;align-items:stretch}
  .ohFilterBtns{justify-content:flex-start}
  .ordersHistLayout{grid-template-columns:1fr}
}
.tbl tr.clickRow{cursor:pointer}
.tbl tr.clickRow:hover{background:rgba(0,0,0,.03)}
.tbl thead th{position:sticky;top:0;background:var(--card);z-index:2}
.tbl th.num,.tbl td.num{text-align:right}
.ohDetail{min-height:420px}
.ohStatusBadge{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;background:rgba(0,0,0,.06);color:#111}
.ohStatusBadge:before{content:"";width:8px;height:8px;border-radius:99px;background:rgba(0,0,0,.25)}
.ohStatusBadge.draft{background:rgba(0,0,0,.06)}
.ohStatusBadge.draft:before{background:#64748b}
.ohStatusBadge.wait:before{background:#f59e0b}
.ohStatusBadge.done:before{background:#10b981}
.ohDoc{border:1px solid rgba(0,0,0,.06);border-radius:16px;padding:14px;background:linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,0));margin-bottom:12px}
.ohEmpty{padding:18px;border-radius:14px;background:rgba(255,255,255,.65)}
.ohEmptyTitle{font-weight:800;font-size:14px;margin-bottom:4px}
.ohEmptySub{font-size:12px;color:var(--muted)}
.ohDocHead{display:grid;grid-template-columns:1fr minmax(260px, 44%);gap:12px;align-items:start}
@media (max-width: 1100px){.ohDocHead{grid-template-columns:1fr}}
.ohBrand{display:flex;flex-direction:column;gap:6px}
.ohLogoText{font-size:22px;font-weight:900;letter-spacing:.6px}
.ohDocTitle{font-weight:800;font-size:14px;opacity:.85}
.ohBarcode{height:64px;border-radius:10px;background:#fff;border:1px solid rgba(0,0,0,.06);display:flex;align-items:center;justify-content:center;overflow:hidden}
.ohBarcodeSvg{width:100%;height:60px}
.ohBarcodeText{font-size:12px;color:var(--muted);margin-top:4px}
.ohMeta{border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px;background:rgba(255,255,255,.65)}
.ohMetaRow{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:4px 0}
.ohMetaRow span{color:var(--muted)}
.ohMetaRow b{font-weight:800}
.ohCust{margin-top:10px;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px;background:rgba(255,255,255,.65)}
.ohCustRow{display:grid;grid-template-columns:160px 1fr;gap:10px;font-size:13px;padding:4px 0}
@media (max-width: 560px){.ohCustRow{grid-template-columns:1fr}}
.ohCustRow span{color:var(--muted)}
.ohCustRow b{font-weight:800}
.ohLinesWrap{max-height:360px;overflow:auto}
.ohFooter{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-top:10px}
@media (max-width: 900px){.ohFooter{flex-direction:column;align-items:stretch}}
.ohNote{color:var(--muted);font-size:13px}
.ohTotalBox{min-width:220px;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px;background:rgba(255,255,255,.65);text-align:right}
.ohTotal{font-size:20px;font-weight:900;letter-spacing:.2px}

.tbl tr.rowSelected{background:rgba(59,130,246,.08)}

/* Verilen Siparişler: Detay altta görünsün */
.ordersHistLayout{
  grid-template-columns: 1fr !important;
}


/* Yazdır: sadece sipariş detay kartı */

.ohInfo{margin-top:10px;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:10px;background:rgba(255,255,255,.65)}
.ohInfoRow{display:flex;gap:10px;font-size:13px;padding:3px 0}
.ohInfoRow span{min-width:140px;color:var(--muted)}
.ohInfoRow b{font-weight:800}

/* Social Feed Styles */
.social-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 24px;
  border-radius: 16px;
  margin-bottom: 24px;
  color: white;
}

.social-header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-icon {
  background: rgba(255,255,255,0.2);
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.btn-icon:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}

.social-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.social-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-create-card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-create-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #333;
}

.social-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s ease;
}

.social-textarea:focus {
  outline: none;
  border-color: #667eea;
}

.social-media-upload {
  margin: 12px 0;
  padding: 12px;
  border: 2px dashed #e5e7eb;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-media-upload:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.social-media-upload input {
  display: none;
}

.social-tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  min-height: 40px;
}

.social-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.social-tag-remove {
  cursor: pointer;
  font-weight: bold;
  opacity: 0.8;
}

.social-tag-remove:hover {
  opacity: 1;
}

.btn-post {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-post:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.social-filter-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.social-filter-card h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #666;
}

.social-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-tag-filter {
  padding: 6px 12px;
  background: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.social-tag-filter:hover {
  background: #e5e7eb;
}

.social-tag-filter.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: #667eea;
}

.social-feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-post {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.social-post:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.post-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 18px;
}

.post-info {
  flex: 1;
}

.post-author {
  font-weight: 600;
  color: #111;
  font-size: 15px;
}

.post-date {
  font-size: 13px;
  color: #999;
}

.post-body {
  margin: 16px 0;
  line-height: 1.6;
  color: #333;
}

.post-media {
  margin: 16px 0;
  border-radius: 12px;
  overflow: hidden;
}

.post-media img {
  width: 100%;
  height: auto;
  display: block;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.post-actions {
  display: flex;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.post-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #666;
  transition: all 0.3s ease;
}

.post-action-btn:hover {
  background: #f3f4f6;
  color: #667eea;
}

.post-comments {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.comment {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
  background: #f8f9ff;
  padding: 10px 14px;
  border-radius: 12px;
}

.comment-author {
  font-weight: 600;
  font-size: 13px;
  color: #111;
  margin-bottom: 4px;
}

.comment-text {
  font-size: 13px;
  color: #333;
  line-height: 1.5;
}

.comment-date {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.comment-input-box {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.comment-input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.comment-input:focus {
  outline: none;
  border-color: #667eea;
}

.btn-comment {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-comment:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

@media (max-width: 1024px) {
  .social-container {
    grid-template-columns: 1fr;
  }
  
  .social-sidebar {
    order: 2;
  }
  
  .social-feed {
    order: 1;
  }
}

@media print {
  body.print-detail-only * {
    visibility: hidden !important;
  }
  body.print-detail-only #ordersHistDetail,
  body.print-detail-only #ordersHistDetail * {
    visibility: visible !important;
  }
  body.print-detail-only #ordersHistDetail {
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    margin: 0 !important;
  }
  body.print-detail-only #ordersHistDetail button {
    display: none !important;
  }
  body.print-detail-only {
    background: #fff !important;
  }
}
/* Instagram-Style Social Feed */

.ig-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 28px;
  max-width: 935px;
  margin: 0 auto;
  padding: 30px 20px;
  background: #fafafa;
  min-height: 100vh;
}

.ig-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ig-create-card, .ig-filter-card {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 20px;
}

.ig-textarea {
  width: 100%;
  min-height: 80px;
  padding: 12px;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  resize: vertical;
  margin-bottom: 12px;
}

.ig-textarea:focus {
  outline: none;
  border-color: #0095f6;
}

.ig-media-btn {
  width: 100%;
  padding: 10px;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  background: white;
  color: #0095f6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.ig-media-btn:hover {
  background: #fafafa;
}

.media-preview-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.media-preview-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.media-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-preview-remove:hover {
  background: rgba(0, 0, 0, 0.9);
}

.ig-tags-display {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ig-tag-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  font-size: 14px;
}

.ig-tag-input:focus {
  outline: none;
  border-color: #0095f6;
}

.ig-post-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.ig-post-btn:hover {
  opacity: 0.9;
}

.ig-post-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ig-filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-tag-filter {
  padding: 6px 12px;
  background: #fafafa;
  border: 1px solid #dbdbdb;
  border-radius: 16px;
  font-size: 13px;
  color: #262626;
  cursor: pointer;
  transition: all 0.2s;
}

.social-tag-filter:hover {
  background: #efefef;
}

.social-tag-filter.active {
  background: #0095f6;
  color: white;
  border-color: #0095f6;
}

/* Instagram Post Card */
.ig-feed {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.instagram-post {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  overflow: hidden;
}

.ig-post-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.ig-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ig-username {
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.ig-time {
  font-size: 12px;
  color: #8e8e8e;
}

.ig-media-container {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 600px;
  overflow: hidden;
}

.ig-media-image, .ig-media-video {
  width: 100%;
  height: auto;
  display: block;
}

.ig-actions-bar {
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ig-actions-left {
  display: flex;
  gap: 16px;
}

.ig-action-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.ig-action-btn:hover {
  opacity: 0.6;
}

.ig-icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}

.ig-action-btn.liked .ig-icon {
  fill: #ed4956;
  stroke: #ed4956;
  animation: likeAnimation 0.3s ease;
}

@keyframes likeAnimation {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.ig-likes {
  padding: 0 16px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #262626;
}

.ig-caption {
  padding: 0 16px 8px;
  font-size: 14px;
  line-height: 18px;
}

.ig-caption-username {
  font-weight: 600;
  color: #262626;
  margin-right: 8px;
}

.ig-caption-text {
  color: #262626;
}

.ig-tags {
  padding: 0 16px 8px;
  font-size: 14px;
}

.ig-tag {
  color: #00376b;
  cursor: pointer;
  margin-right: 6px;
}

.ig-tag:hover {
  text-decoration: underline;
}

.ig-view-comments {
  padding: 0 16px 8px;
  background: none;
  border: none;
  font-size: 14px;
  color: #8e8e8e;
  cursor: pointer;
  text-align: left;
}

.ig-view-comments:hover {
  color: #262626;
}

.ig-comments-section {
  padding: 0 16px 8px;
}

.ig-comment {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 18px;
}

.ig-comment-username {
  font-weight: 600;
  color: #262626;
  margin-right: 8px;
}

.ig-comment-text {
  color: #262626;
}

.ig-comment-form {
  padding: 12px 16px;
  border-top: 1px solid #efefef;
  display: flex;
  gap: 12px;
}

.ig-comment-input {
  flex: 1;
  border: none;
  font-size: 14px;
  outline: none;
  color: #262626;
}

.ig-comment-input::placeholder {
  color: #8e8e8e;
}

.ig-comment-btn {
  background: none;
  border: none;
  color: #0095f6;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ig-comment-btn:hover {
  color: #00376b;
}

.empty-feed-state {
  background: white;
  border: 1px solid #dbdbdb;
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.empty-feed-state h3 {
  color: #262626;
  font-size: 20px;
  margin: 0 0 8px 0;
}

.empty-feed-state p {
  color: #8e8e8e;
  font-size: 14px;
  margin: 0;
}

/* Social Tags */
.social-tag {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
  margin-bottom: 4px;
  position: relative;
}

.social-tag-remove {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .ig-container {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  
  .ig-sidebar {
    order: 2;
  }
  
  .ig-feed {
    order: 1;
  }
}

/* ========================================
   PAGE-SPECIFIC THEME COLORS
   ======================================== */

/* Orders Page - Pastel Yellow theme */
[data-page="orders"] .card-modern-header,
[data-page="orders"] .btn-order-save,
[data-page="orders"] .btn-primary {
  background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%) !important;
  color: #1a1a1a !important;
}

[data-page="orders"] .order-page-header {
  border-bottom-color: rgba(255, 224, 130, 0.3);
}

[data-page="orders"] h2 {
  background: linear-gradient(135deg, #FFE082 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Orders History Page - Pink theme */
[data-page="orders_hist"] .card-modern-header,
[data-page="orders_hist"] .btn-primary {
  background: linear-gradient(135deg, #F48FB1 0%, #F06292 100%) !important;
  color: #1a1a1a !important;
}

[data-page="orders_hist"] .order-page-header {
  border-bottom-color: rgba(244, 143, 177, 0.3);
}

[data-page="orders_hist"] h2 {
  background: linear-gradient(135deg, #F48FB1 0%, #F06292 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-page="orders_hist"] .order-detail-badge {
  background: linear-gradient(135deg, #F48FB1 0%, #F06292 100%);
}

/* Orders_hist için geniş layout */
[data-page="orders_hist"] .tabPanel {
  max-width: 95%;
  padding-left: 20px;
  padding-right: 20px;
}

/* Meet Page - Cyan theme */
[data-page="meet"] .btn-primary {
  background: linear-gradient(135deg, #80DEEA 0%, #4DD0E1 100%) !important;
  color: #1a1a1a !important;
}

[data-page="meet"] h2 {
  background: linear-gradient(135deg, #80DEEA 0%, #4DD0E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-page="meet"] .card {
  border-color: rgba(128, 222, 234, 0.2);
}

/* Tasks Page - Green theme */
[data-page="tasks"] .btn-primary {
  background: linear-gradient(135deg, #A5D6A7 0%, #81C784 100%) !important;
  color: #1a1a1a !important;
}

[data-page="tasks"] h2 {
  background: linear-gradient(135deg, #A5D6A7 0%, #81C784 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-page="tasks"] .card {
  border-color: rgba(165, 214, 167, 0.2);
}

/* Social Page - Orange theme */
[data-page="social"] .btn-primary {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%) !important;
  color: #1a1a1a !important;
}

[data-page="social"] h2 {
  background: linear-gradient(135deg, #FFCC80 0%, #FFB74D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Campaigns Page - Coral theme */
[data-page="campaigns"] .btn-primary {
  background: linear-gradient(135deg, #FFAB91 0%, #FF8A65 100%) !important;
  color: #1a1a1a !important;
}

[data-page="campaigns"] h2 {
  background: linear-gradient(135deg, #FFAB91 0%, #FF8A65 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Bildirim Stilleri */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.notification-dropdown {
  position: fixed;
  top: 60px;
  right: 10px;
  width: 380px;
  max-width: calc(100vw - 20px);
  max-height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 9998;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  color: #1f2937;
}

.btn-link {
  background: none;
  border: none;
  color: #FF8F00;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.notification-list {
  overflow-y: auto;
  max-height: 440px;
}

.notification-item {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: #f9fafb;
}

.notification-item.unread {
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
}

.notification-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5px;
}

.notification-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 14px;
}

.notification-time {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
}

.notification-message {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
}

.notification-type {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
}

.notification-type.GOREV {
  background: #fef3c7;
  color: #f59e0b;
}

.notification-type.SIKAYET {
  background: #fee2e2;
  color: #ef4444;
}

.notification-type.GENEL {
  background: #e0e7ff;
  color: #6366f1;
}

.notification-empty {
  padding: 40px 20px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #10b981;
}

input:focus + .slider {
  box-shadow: 0 0 1px #10b981;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Verilen Teklifler Tablosu - Daha Büyük Butonlar ve Satırlar */
#tekliflerListeContainer {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#tekliflerListeContainer table {
  font-size: 14px;
  width: 100%;
  min-width: 1000px; /* Tablo minimum genişliği */
  table-layout: fixed;
}

#tekliflerListeContainer table th,
#tekliflerListeContainer table td {
  padding: 16px 14px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Sütun genişlikleri */
#tekliflerListeContainer table th:nth-child(1),
#tekliflerListeContainer table td:nth-child(1) { width: 100px; } /* Teklif No */
#tekliflerListeContainer table th:nth-child(2),
#tekliflerListeContainer table td:nth-child(2) { width: 200px; white-space: normal; } /* Müşteri */
#tekliflerListeContainer table th:nth-child(3),
#tekliflerListeContainer table td:nth-child(3) { width: 120px; } /* Pazarlamacı */
#tekliflerListeContainer table th:nth-child(4),
#tekliflerListeContainer table td:nth-child(4) { width: 80px; } /* Tür */
#tekliflerListeContainer table th:nth-child(5),
#tekliflerListeContainer table td:nth-child(5) { width: 120px; } /* Toplam */
#tekliflerListeContainer table th:nth-child(6),
#tekliflerListeContainer table td:nth-child(6) { width: 140px; } /* Durum */
#tekliflerListeContainer table th:nth-child(7),
#tekliflerListeContainer table td:nth-child(7) { width: 100px; } /* Tarih */
#tekliflerListeContainer table th:nth-child(8),
#tekliflerListeContainer table td:nth-child(8) { width: 140px; } /* İşlemler */

#tekliflerListeContainer table tr {
  min-height: 60px;
}

#tekliflerListeContainer .btn.ghost {
  padding: 10px 14px;
  font-size: 18px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  margin: 2px;
  transition: all 0.2s ease;
}

#tekliflerListeContainer .btn.ghost:hover {
  background: #e5e7eb;
  transform: scale(1.1);
}

/* Teklif satırlarına hover efekti */
#tekliflerListeContainer table tbody tr:hover {
  background: #f9fafb;
  cursor: pointer;
}

/* Teklif detay modal iyileştirmesi */
#teklifDetayModal .modal-content {
  max-width: 900px;
}

/* Radio Card Styles */
.radio-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.radio-card input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
}

.radio-card:has(input:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
}

.radio-card:hover {
  border-color: #93c5fd;
  background: #f0f9ff;
}

.radio-card span {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.radio-card:has(input:checked) span {
  color: #1e40af;
}

/* =============== TOPBAR RESPONSIVE =============== */
@media (max-width: 768px) {
  .topbar {
    padding: 16px 20px;
    min-height: 70px;
  }
  
  .brand {
    font-size: 20px;
    gap: 6px;
  }
  
  .brand img {
    height: 40px !important;
  }
  
  .brand span {
    font-size: 18px !important;
  }
  
  #who {
    font-size: 13px !important;
    padding: 6px 12px !important;
  }
  
  .topbar .btn {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }
  
  /* Subbar mobile */
  .subbar {
    padding: 12px 16px;
    top: 70px;
  }
  
  .pageTitle {
    font-size: 18px;
  }
  
  /* Tabs mobile */
  .tabs-modern-sticky {
    top: 70px;
    padding: 8px 16px;
    min-height: 56px;
    gap: 8px;
  }
  
  .tabBtn {
    padding: 10px 16px;
    font-size: 13px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 14px 16px;
    min-height: 64px;
  }
  
  .brand {
    gap: 6px;
  }
  
  .brand img {
    height: 36px !important;
  }
  
  .brand span {
    font-size: 16px !important;
  }
  
  #who {
    display: none; /* Kullanıcı adını gizle, çok dar */
  }
  
  .topbar .btn {
    padding: 8px 12px !important;
    font-size: 16px !important;
  }
  
  #btnLogout {
    padding: 8px 12px !important;
  }
  
  #btnLogout::before {
    content: "🚪";
  }
  
  #btnLogout {
    font-size: 0; /* Text'i gizle, sadece icon */
  }
  
  /* Subbar mobile küçük */
  .subbar {
    padding: 10px 12px;
    top: 64px;
  }
  
  .pageTitle {
    font-size: 16px;
  }
  
  #btnHome {
    padding: 8px 14px !important;
    font-size: 13px !important;
  }
  
  /* Tabs çok küçük ekran */
  .tabs-modern-sticky {
    top: 64px;
    padding: 6px 12px;
    min-height: 52px;
    gap: 6px;
  }
  
  .tabBtn {
    padding: 8px 12px;
    font-size: 12px;
    min-height: 36px;
  }
}

/* ============================================ */
/* KALAN SİPARİŞ MODAL - FULL SCREEN */
/* ============================================ */
#kalanSiparisModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999 !important;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

#kalanSiparisModal .modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

#kalanSiparisModal .modal-content {
  position: relative;
  z-index: 2;
  background: white;
  border-radius: 20px;
  padding: 30px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.3s ease-out;
}

#kalanSiparisModal .modal-content::-webkit-scrollbar {
  width: 8px;
}

#kalanSiparisModal .modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#kalanSiparisModal .modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #FF8F00 0%, #FFB74D 100%);
  border-radius: 10px;
}

#kalanSiparisModal .modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #FF6F00 0%, #FFA000 100%);
}

/* Tablo taşma düzeltmeleri */
.orders-hist-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-modern-orders-hist {
  width: 100%;
  min-width: 1400px;
  table-layout: auto;
}

.table-modern-orders-hist th,
.table-modern-orders-hist td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cari ünvan sütunu için wrap izni */
.table-modern-orders-hist td:nth-child(4) {
  white-space: normal;
  max-width: 300px;
  word-wrap: break-word;
}

/* Modal tablo responsive */
#dusulmeyiBekleyenModal .order-detail-body {
  overflow-x: auto;
}

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

#dusulmeyiBekleyenModal th,
#dusulmeyiBekleyenModal td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

/* ========================================
   📱 MOBİL RESPONSIVE İYİLEŞTİRMELERİ
   ======================================== */

/* Tüm cihazlarda genel ayarlar */
@media (max-width: 1600px) {
  .container {
    max-width: 95%;
    padding: 0 12px;
  }
  
  .tabPanel {
    max-width: 98%;
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Tablet landscape */
@media (max-width: 1200px) {
  .table-modern-orders-hist {
    min-width: 1200px;
  }
  
  #dusulmeyiBekleyenModal .order-detail-content {
    max-width: 98%;
    width: auto;
  }
  
  /* Dashboard kartları 2 sütun */
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Tablet portrait */
@media (max-width: 768px) {
  /* Container ve layout */
  .container {
    max-width: 100%;
    padding: 0 8px;
  }
  
  .tabPanel {
    padding-top: 60px;
    padding-left: 8px;
    padding-right: 8px;
  }
  
  /* Tablolar mobilde yatay scroll */
  .table-modern-orders-hist {
    min-width: 800px;
    font-size: 13px;
  }
  
  .table-modern-orders-hist th,
  .table-modern-orders-hist td {
    padding: 8px 6px;
  }
  
  /* Modal genişlik */
  .order-detail-modal .order-detail-content {
    max-width: 100%;
    width: 100%;
    margin: 10px;
    padding: 16px;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .order-detail-modal h3 {
    font-size: 18px;
  }
  
  #dusulmeyiBekleyenModal table {
    min-width: 600px;
    font-size: 13px;
  }
  
  /* Dashboard tek sütun */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Tab butonları kaydırmalı */
  .tab-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .tab {
    min-width: 120px;
    font-size: 13px;
    padding: 10px 12px;
  }
  
  /* Form input'ları */
  input[type="text"],
  input[type="number"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px !important; /* iOS zoom'u engelle */
  }
  
  /* Butonlar daha büyük (touch target) */
  .btn {
    min-height: 44px;
    padding: 12px 16px;
  }
  
  /* 2FA sayfası mobil */
  #twoFAPage > div > div {
    padding: 32px 24px;
  }
  
  #twoFACodeInput {
    font-size: 28px !important;
    letter-spacing: 10px;
    padding: 16px;
  }
}

/* Mobil (küçük ekranlar) */
@media (max-width: 480px) {
  /* Header */
  .header {
    padding: 8px 12px;
  }
  
  .header h1 {
    font-size: 18px;
  }
  
  /* Logout butonu */
  #logoutBtn {
    font-size: 13px;
    padding: 8px 12px;
  }
  
  /* Tablolar */
  .table-modern-orders-hist {
    min-width: 600px;
    font-size: 12px;
  }
  
  .table-modern-orders-hist th,
  .table-modern-orders-hist td {
    padding: 6px 4px;
  }
  
  /* Modal */
  .order-detail-modal .order-detail-content {
    margin: 5px;
    padding: 12px;
  }
  
  .modal-header {
    padding: 12px;
  }
  
  /* Tab butonları */
  .tab {
    min-width: 100px;
    font-size: 12px;
    padding: 8px 10px;
  }
  
  /* Action butonları */
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-buttons button {
    width: 100%;
  }
  
  /* Login card */
  #loginCard {
    padding: 24px;
  }
  
  #loginCard h2 {
    font-size: 24px;
  }
  
  /* 2FA mobil optimizasyon */
  #twoFAPage > div > div {
    padding: 24px 16px;
  }
  
  #twoFAPage h2 {
    font-size: 24px !important;
  }
  
  #twoFACodeInput {
    font-size: 24px !important;
    letter-spacing: 8px;
    padding: 14px;
  }
  
  /* Logo boyutu */
  #twoFAPage .logo-container {
    width: 80px !important;
    height: 80px !important;
  }
  
  #twoFAPage .logo-container span {
    font-size: 48px !important;
  }
}

/* Landscape orientation uyarısı (çok küçük ekranlar) */
@media (max-width: 360px) {
  body::before {
    content: "📱 Daha iyi deneyim için cihazınızı yan çevirin";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 999999;
  }
  
  body {
    padding-top: 40px;
  }
}

/* Action buttons container */
.action-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.action-buttons button {
  flex-shrink: 0;
}

/* ============================================ */
/* CONNECTION CARDS - MODERN DESIGN */
/* ============================================ */
.connection-card-modern {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connection-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.connection-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* Header */
.conn-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.conn-customer-info {
    flex: 1;
    min-width: 0;
}

.conn-customer-name {
    font-weight: 700;
    font-size: 15px;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.conn-contract-no {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

/* Status Badges */
.conn-status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.conn-status-badge.active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #15803d;
}

.conn-status-badge.warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #b45309;
}

.conn-status-badge.completed {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #047857;
}

.conn-status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

/* Details Grid */
.conn-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.conn-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.conn-detail-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.conn-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.conn-detail-label {
    font-size: 10px;
    color: #9ca3af;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.conn-detail-value {
    font-size: 13px;
    color: #374151;
    font-weight: 600;
}

.conn-detail-value.highlight {
    color: #2563eb;
    font-weight: 700;
}

.conn-detail-sub {
    font-size: 11px;
    color: #6b7280;
}

.conn-detail-sub.urgent {
    color: #dc2626;
    font-weight: 600;
}

/* Progress Section */
.conn-progress-section {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
}

.conn-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.conn-progress-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.conn-progress-percent {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
}

.conn-progress-percent.completed {
    color: #10b981;
}

.conn-progress-bar {
    height: 8px;
    background: #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.conn-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

.conn-progress-values {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.conn-current {
    color: #1e40af;
    font-weight: 700;
}

.conn-target {
    color: #64748b;
}

/* Footer Actions */
.conn-card-footer {
    display: flex;
    gap: 8px;
}

.conn-action-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.conn-action-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.conn-action-btn.secondary {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #475569;
}

.conn-action-btn.secondary:hover {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Connection Alert in Order Form */
.connection-alert {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.connection-alert-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.connection-alert-content {
    flex: 1;
}

.connection-alert-title {
    font-weight: 700;
    color: #1e40af;
    font-size: 14px;
    margin-bottom: 4px;
}

.connection-alert-text {
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.4;
}

.connection-alert-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #1e40af;
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .conn-details-grid {
        grid-template-columns: 1fr;
    }
    
    .conn-card-footer {
        flex-direction: column;
    }
}
