:root {
  --beklemede: #c084fc;
  --kayit: #f87171;
  --yedek-parca: #facc15;
  --tamir: #34d399;
  --teslim: #60a5fa;
  --iptal: #ef4444;
  --garanti: #10b981;
  --default-bg: #f1f5f9;
  --text-color: #1e293b;
  --card-bg: #ffffff;
  --primary: #1570a6;
  --secondary: #6366f1;
  --accent: #8b5cf6;
  --purple-light: #f3e8ff;
  --red-light: #fef2f2;
  --yellow-light: #fffbeb;
  --green-light: #f0fdf4;
  --blue-light: #eff6ff;
  --sidebar-bg: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  --glass-bg: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--text-color);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

.sidebar {
  width: 320px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  overflow-y: auto;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  position: relative;
}

.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.02)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(21, 112, 166, 0.3);
  position: relative;
  overflow: hidden;
}

.sidebar-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sidebar-header i {
  font-size: 1.8rem;
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.menu-section {
  margin-bottom: 32px;
}

.menu-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-section-title::before {
  content: '';
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 1px;
}

.menu-item {
  padding: 14px 20px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--glass-bg);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.menu-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
}

.menu-item:hover::before {
  left: 100%;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.menu-item i {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

.menu-item:hover i {
  transform: scale(1.1);
}

.menu-item.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 8px 32px rgba(21, 112, 166, 0.4);
  transform: translateX(8px);
}

.menu-item.beklemede:hover {
  background: linear-gradient(135deg, rgba(192, 132, 252, 0.3), rgba(192, 132, 252, 0.1));
  border-color: var(--beklemede);
}

.menu-item.kayit:hover {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.3), rgba(248, 113, 113, 0.1));
  border-color: var(--kayit);
}

.menu-item.yedek-parca:hover {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(250, 204, 21, 0.1));
  border-color: var(--yedek-parca);
}

.menu-item.tamir:hover {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.3), rgba(52, 211, 153, 0.1));
  border-color: var(--tamir);
}

.menu-item.teslim:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(96, 165, 250, 0.1));
  border-color: var(--teslim);
}

.menu-item.iptal:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(239, 68, 68, 0.1));
  border-color: var(--iptal);
}

.menu-item.garanti:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(16, 185, 129, 0.1));
  border-color: var(--garanti);
}

.badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.search-box {
  position: relative;
  margin-bottom: 24px;
}

.search-box input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--glass-bg);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.content {
  flex: 1;
  padding: 40px;
  background: var(--default-bg);
  min-height: 100vh;
  position: relative;
}

.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 60%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 32px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.title-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.3rem;
  margin: -32px -32px 32px -32px;
  box-shadow: 0 8px 32px rgba(21, 112, 166, 0.2);
}

.title-bar i {
  font-size: 1.4rem;
}

fieldset {
  border: 2px solid rgba(21, 112, 166, 0.2);
  margin-bottom: 32px;
  border-radius: 16px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

fieldset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--beklemede), var(--tamir), var(--teslim));
}

legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

fieldset[data-type="cari"] legend {
  background: linear-gradient(135deg, var(--beklemede), #a855f7);
}

fieldset[data-type="urun"] legend {
  background: linear-gradient(135deg, var(--tamir), #059669);
}

.form-grid, .product-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-info-grid {
  grid-template-columns: repeat(3, 1fr);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.input-icon {
  position: relative;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.input-icon:hover {
  transform: translateY(-2px);
}

.input-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  z-index: 2;
}

.input-icon input,
.input-icon textarea,
.input-icon select {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  backdrop-filter: blur(10px);
}

.input-icon input:focus,
.input-icon textarea:focus,
.input-icon select:focus {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-icon.purple {
  background: linear-gradient(135deg, var(--purple-light), rgba(255, 255, 255, 0.9));
}

.input-icon.purple i {
  color: var(--beklemede);
}

.input-icon.purple input:focus,
.input-icon.purple textarea:focus,
.input-icon.purple select:focus {
  border-color: var(--beklemede);
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.1), 0 8px 32px rgba(192, 132, 252, 0.2);
}

.input-icon.green {
  background: linear-gradient(135deg, var(--green-light), rgba(255, 255, 255, 0.9));
}

.input-icon.green i {
  color: var(--tamir);
}

.input-icon.green input:focus,
.input-icon.green textarea:focus,
.input-icon.green select:focus {
  border-color: var(--tamir);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1), 0 8px 32px rgba(52, 211, 153, 0.2);
}

.input-icon.blue {
  background: linear-gradient(135deg, var(--blue-light), rgba(255, 255, 255, 0.9));
}

.input-icon.blue i {
  color: var(--teslim);
}

.input-icon.blue input:focus,
.input-icon.blue textarea:focus,
.input-icon.blue select:focus {
  border-color: var(--teslim);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.1), 0 8px 32px rgba(96, 165, 250, 0.2);
}

.input-icon.yellow {
  background: linear-gradient(135deg, var(--yellow-light), rgba(255, 255, 255, 0.9));
}

.input-icon.yellow i {
  color: var(--yedek-parca);
}

.input-icon.yellow input:focus,
.input-icon.yellow textarea:focus,
.input-icon.yellow select:focus {
  border-color: var(--yedek-parca);
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1), 0 8px 32px rgba(250, 204, 21, 0.2);
}

.title-input-wrapper {
  display: flex;
  gap: 8px;
  align-items: end;
}

.title-input-wrapper .input-icon {
  flex: 1;
}

.title-input-wrapper button {
  padding: 16px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(21, 112, 166, 0.2);
}

.title-input-wrapper button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(21, 112, 166, 0.3);
}

.btn-save {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  padding: 16px 32px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(21, 112, 166, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(21, 112, 166, 0.3);
}

.small-input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 12px;
}

.input-icon textarea {
  min-height: 100px;
  resize: vertical;
}

.floating-actions {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 48px rgba(139, 92, 246, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .content {
    padding: 20px;
  }

  .product-info-grid {
    grid-template-columns: 1fr;
  }

  .form-wrapper {
    padding: 20px;
  }

  .title-bar {
    margin: -20px -20px 20px -20px;
  }
}

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

.form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

.menu-item {
  animation: fadeInUp 0.4s ease-out;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }

/* Özel scrollbar */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}