* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter','Segoe UI',sans-serif; background: #f0f2f5; color: #1a1a2e; display: flex; min-height: 100vh; }

body.login-page {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh; position: relative;
}
body.login-page::before {
  content: ''; position: fixed; inset: 0;
  background: rgba(0,0,0,0.35); z-index: 0;
}
.login-container { width: 100%; position: relative; z-index: 1; }
.login-box { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); padding: 45px; border-radius: 16px; width: 420px; max-width: 92%; margin: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.login-box h1 { text-align: center; margin-bottom: 5px; font-size: 28px; }
.login-box h1 span { color: #e94560; }
.login-box p.sub { text-align: center; color: #888; font-size: 13px; margin-bottom: 28px; }
.login-box .btn-block { width: 100%; padding: 14px; }

.sidebar {
  width: 220px; background: #1a1a2e; color: white; position: fixed; top: 0; left: 0; height: 100%; z-index: 100;
  display: flex; flex-direction: column;
}
.sidebar .logo { padding: 24px 20px 20px; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sidebar .logo span { color: #e94560; }
.sidebar .logo small { display: block; font-size: 11px; font-weight: 400; opacity: 0.35; margin-top: 2px; }
.sidebar nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 20px; margin: 2px 8px; border-radius: 8px;
  color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s; font-size: 13px; font-weight: 500;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.9); }
.sidebar nav a.active { background: rgba(233,69,96,0.15); color: #e94560; }
.sidebar nav a .icon { font-size: 18px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.06); }
.sidebar-footer .user-info { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.sidebar-footer .user-info small { display: block; }
.sidebar-footer .logout-btn { display: block; padding: 8px; background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.6); border-radius: 8px; cursor: pointer; font-size: 13px; text-align: center; text-decoration: none; transition: 0.2s; }
.sidebar-footer .logout-btn:hover { background: rgba(233,69,96,0.2); color: #e94560; }

.main-content { margin-left: 220px; flex: 1; padding: 24px; min-height: 100vh; }

.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #e8e8e8; flex-wrap: wrap; gap: 12px; }
.page-header h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: white; padding: 20px; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04); display: flex; flex-direction: column; transition: 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-card .stat-icon { font-size: 22px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 26px; font-weight: 700; letter-spacing: -1px; }
.stat-card .stat-label { font-size: 12px; color: #888; margin-top: 2px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.3px; }
.stat-card .stat-desc { font-size: 11px; color: #10b981; margin-top: 4px; font-weight: 600; }
.stat-card .stat-desc.danger { color: #ef4444; }
.text-warning { color: #f59e0b; }

.card { background: white; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); margin-bottom: 24px; overflow: hidden; }
.card-header { padding: 16px 24px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.card-header h2 { font-size: 15px; font-weight: 600; }
.card-body { padding: 16px 24px; overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { background: #f8f9fa; padding: 11px 14px; text-align: left; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: #888; white-space: nowrap; }
.table td { padding: 11px 14px; border-top: 1px solid #f0f0f0; vertical-align: middle; }
.table tbody tr { transition: 0.15s; }
.table tbody tr:nth-child(even) { background: #fafbfc; }
.table tbody tr:hover { background: #f0f2ff; }
.table .actions { display: flex; gap: 4px; flex-wrap: nowrap; }
.table .badge { padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 600; display: inline-block; letter-spacing: 0.2px; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-secondary { background: #e2e3e5; color: #383d41; }

.search-box { display: flex; gap: 8px; flex-wrap: wrap; }
.search-box input, .search-box select { padding: 8px 14px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 13px; outline: none; transition: 0.2s; }
.search-box input:focus, .search-box select:focus { border-color: #1a1a2e; }

.btn { padding: 8px 18px; border: none; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 600; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #1a1a2e; color: white; }
.btn-primary:hover { background: #570d1f; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: #10b981; color: white; }
.btn-success:hover { background: #059669; }
.btn-warning { background: #f59e0b; color: white; }
.btn-warning:hover { background: #d97706; }
.btn-secondary { background: #6b7280; color: white; }
.btn-secondary:hover { background: #4b5563; }
.btn-info { background: #0ea5e9; color: white; }
.btn-sm { padding: 5px 10px; font-size: 11px; border-radius: 6px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 13px; color: #444; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid #e8e8e8; border-radius: 8px; font-size: 13px; outline: none; transition: 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a1a2e; }
.form-group textarea { resize: vertical; min-height: 60px; }
.form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 130px; }

.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 16px; padding: 28px; width: 640px; max-width: 94%; max-height: 88vh; overflow-y: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-lg { width: 1200px; }
.form-grid-4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.money-wrap { position: relative; }
.money-wrap .money-mask { padding-left: 28px !important; }
.money-wrap::before { content: '₺'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; color: #888; font-weight: 600; z-index: 1; pointer-events: none; }

.form-panel { background: #f8fafc; border: 1px solid #e8ecf1; border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.form-panel-title { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #e8ecf1; display: flex; align-items: center; gap: 8px; }
.form-panel-title i { color: #667eea; font-size: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.modal-close { position: absolute; top: 16px; right: 18px; font-size: 22px; cursor: pointer; background: none; border: none; color: #999; transition: 0.2s; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: #f0f0f0; color: #333; }
.modal h2 { margin-bottom: 20px; font-size: 20px; font-weight: 700; }
.modal-footer { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f0f0f0; display: flex; justify-content: flex-end; gap: 10px; }

.alert { padding: 14px 20px; border-radius: 10px; margin-bottom: 20px; font-size: 13px; font-weight: 600; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.progress-bar { height: 6px; background: #e8e8e8; border-radius: 4px; overflow: hidden; margin: 4px 0; }
.progress-bar .progress-fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.progress-fill.green { background: #10b981; }
.progress-fill.yellow { background: #f59e0b; }
.progress-fill.red { background: #ef4444; }

.pagination { display: flex; gap: 6px; justify-content: center; padding: 16px 0; }
.page-link { padding: 6px 12px; border: 1px solid #e8e8e8; border-radius: 6px; text-decoration: none; color: #333; font-size: 13px; transition: 0.2s; }
.page-link:hover { background: #f0f2ff; }
.page-link.active { background: #1a1a2e; color: white; border-color: #1a1a2e; }

.empty-state { text-align: center; padding: 40px; color: #888; }

@media (max-width: 768px) {
  .sidebar { width: 200px; }
  .main-content { margin-left: 200px; padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .page-header { flex-direction: column; align-items: flex-start; }
  .form-row { flex-direction: column; gap: 0; }
}

/* Tags (Kategori / Renk) */
.category-tags, .color-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; min-height: 20px; }
.category-tag, .color-tag { display: inline-flex; align-items: center; gap: 4px; background: #e94560; color: #fff; font-size: 12px; font-weight: 500; padding: 4px 8px; border-radius: 20px; white-space: nowrap; position: relative; }
.category-tag-del { position: absolute; top: -6px; right: -6px; background: #c0392b; border: 2px solid #fff; color: #fff; cursor: pointer; font-size: 10px; line-height: 1; width: 16px; height: 16px; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.category-tag-del:hover { background: #e74c3c; }

/* Color Image Grid (circle thumbs) */
.color-img-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.color-img-panel { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; min-width: 140px; flex: 1; }
.color-img-label { font-size: 12px; font-weight: 700; color: #333; margin-bottom: 8px; text-align: center; padding: 3px 8px; background: #f0f2ff; border-radius: 20px; display: inline-block; }
.color-img-slots { display: flex; gap: 8px; justify-content: center; }
.color-img-slot { position: relative; display: inline-block; width: 52px; height: 52px; vertical-align: top; }
.color-img-thumb-wrap { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.color-img-slot input[type="file"] { position: absolute; top:0; left:0; width:52px; height:52px; opacity:0; cursor:pointer; z-index:2; border-radius:50%; }
.color-img-thumb { width: 52px !important; height: 52px !important; object-fit: cover; display: block; max-width: none; }
.color-img-thumb.color-img-empty { background: #f5f5f5; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #ccc; font-weight: 600; border: 2px dashed #ddd; width: 52px; height: 52px; border-radius: 50%; }
.color-img-slot:hover .color-img-thumb { box-shadow: 0 0 0 2px #667eea; }

.img-star { position: absolute; top: -2px; right: -2px; font-size: 12px; cursor: pointer; z-index: 3; color: #ddd; text-shadow: 0 1px 2px rgba(0,0,0,0.2); line-height: 1; background: rgba(255,255,255,0.9); border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.img-star.active { color: #f59e0b; }
.img-star:hover { color: #f59e0b; }

/* Variant Boxes (Renkler / Ebatlar) */
.variant-box { background: #f8f9fa; border: 1px solid #eee; border-radius: 8px; padding: 10px; }
.variant-row { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.variant-row:last-child { margin-bottom: 0; }
.variant-input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; outline: none; transition: 0.15s; }
.variant-input:focus { border-color: #667eea; box-shadow: 0 0 0 2px rgba(102,126,234,0.1); }
.variant-color { width: 36px; height: 34px; padding: 2px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; flex-shrink: 0; }
.variant-del { flex-shrink: 0; width: 30px; height: 30px; padding: 0; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; }
.size-row .size-w { max-width: 90px; }
.size-row .size-l { max-width: 90px; }
.size-row .size-stock { max-width: 70px; }
.size-row .size-preset { max-width: 150px; font-size: 12px; padding: 7px 6px; }
.size-row .size-money { max-width: 85px; font-size: 12px; }
.size-x { color: #888; font-weight: 600; font-size: 14px; flex-shrink: 0; }

.bank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.bank-checkbox { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #f8f9fa; border: 1px solid #eee; border-radius: 6px; cursor: pointer; transition: 0.15s; }
.bank-checkbox:hover { border-color: #667eea; }
.bank-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: #667eea; cursor: pointer; flex-shrink: 0; }
.bank-name { font-size: 13px; font-weight: 500; color: #333; flex: 1; }
.bank-installments { width: 90px; padding: 4px 6px; border: 1px solid #ddd; border-radius: 4px; font-size: 12px; }

.bank-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.bank-row select { flex: 1; padding: 7px 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 13px; }
.bank-row select:last-of-type { flex: 0 0 110px; }

.product-list-cats { font-size: 11px; color: #888; margin-top: 2px; }
.size-list-compact { display: flex; flex-direction: column; gap: 2px; }
.size-list-item { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 3px 6px; border-radius: 4px; background: #f8f9fa; }
.size-list-item:nth-child(odd) { background: #fff; }
.sli-dims { font-weight: 600; color: #333; min-width: 60px; }
.sli-m2 { color: #e94560; font-weight: 600; font-size: 11px; min-width: 40px; }
.sli-prices { display: flex; gap: 6px; min-width: 80px; }
.sli-price { padding: 1px 6px; border-radius: 3px; font-weight: 500; }
.sli-price.aliş { color: #d97706; background: #fffbeb; }
.sli-price.satiş { color: #059669; background: #ecfdf5; }
.sli-stock { font-weight: 500; color: #333; min-width: 50px; }
.sli-stock.stock-zero { color: #e94560; }
.text-muted { color: #aaa; font-size: 12px; }

.size-m2 { font-size: 12px; font-weight: 700; color: #e94560; min-width: 55px; text-align: center; }
