/* Corporate Design System - Cache Bust: 2025-01-26-15:45:23 */

/* Colors */
:root {
  --corporate-primary: #1e293b;
  --corporate-accent: #3b82f6;
  --corporate-success: #10b981;
  --corporate-danger: #ef4444;
  --corporate-warning: #f59e0b;
  --brand-500: #ff5b4a;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Brand styles to ensure they work */
.bg-brand-500 {
  background-color: #ff5b4a !important;
}

.from-brand-500 {
  --tw-gradient-from: #ff5b4a !important;
  --tw-gradient-to: rgb(255 91 74 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.to-brand-600 {
  --tw-gradient-to: #e34f3f !important;
}

.hover\:from-brand-600:hover {
  --tw-gradient-from: #e34f3f !important;
  --tw-gradient-to: rgb(227 79 63 / 0) !important;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

.hover\:to-brand-700:hover {
  --tw-gradient-to: #c04434 !important;
}

.shadow-brand-500\/20 {
  --tw-shadow-color: rgb(255 91 74 / 0.2) !important;
  --tw-shadow: var(--tw-shadow-colored) !important;
}

.ring-brand-500\/30 {
  --tw-ring-color: rgb(255 91 74 / 0.3) !important;
}

/* Base Styles */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.corporate-primary {
  background: var(--corporate-primary);
}

.corporate-accent {
  background: var(--corporate-accent);
}

/* Cards */
.card-hover {
  transition: all 0.2s ease;
  border: 1px solid var(--gray-200);
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.product-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

/* Buttons */
.btn-primary {
  background: var(--corporate-primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #334155;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 41, 59, 0.2);
}

.btn-secondary {
  background: white;
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-success {
  background: var(--corporate-success);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: var(--corporate-danger);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

/* Forms */
.form-label {
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--corporate-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  background: white;
  cursor: pointer;
}

.form-select:focus {
  outline: none;
  border-color: var(--corporate-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Tables */
.table-header {
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.table-hover-row {
  transition: all 0.2s ease;
}

.table-hover-row:hover {
  background: var(--gray-50);
  transform: translateX(2px);
}

/* Badges */
.status-badge {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.status-in-progress {
  background: #dbeafe;
  color: #1e40af;
}

.status-sold {
  background: #d1fae5;
  color: #065f46;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

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

.modal-dialog {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  animation: slideUp 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

/* Empty States */
.empty-state {
  background: linear-gradient(135deg, #ffffff 0%, var(--gray-50) 100%);
  padding: 60px 20px;
  text-align: center;
}

.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Price Tags */
.price-tag {
  color: var(--corporate-primary);
  font-weight: 600;
}

.price-input {
  background: white;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.2s;
  text-align: right;
  width: 100px;
  min-width: 80px;
  max-width: 100%;
}

.price-input:focus {
  outline: none;
  border-color: var(--corporate-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Pagination */
.page-link {
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.page-link.active {
  background: var(--corporate-primary);
  color: white;
  box-shadow: 0 2px 4px rgba(30, 41, 59, 0.1);
}

.page-link:not(.active) {
  background: white;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.page-link:not(.active):hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* Utility Classes */
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.rounded-lg {
  border-radius: 8px;
}

.rounded-xl {
  border-radius: 12px;
}

/* Responsive */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  .modal-dialog {
    width: 95%;
    padding: 20px;
  }
  
  .price-input {
    width: 80px;
    min-width: 60px;
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* Tablo container - sadece mobilde scroll */
.table-container {
  overflow: visible; /* Desktop'ta scroll yok */
}

/* Global overflow-x-auto sınıfını override et */
.overflow-x-auto {
  overflow-x: visible !important; /* Desktop'ta scroll kapalı */
}

/* Sadece çok küçük ekranlarda scroll aktif et */
@media (max-width: 640px) {
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .overflow-x-auto {
    overflow-x: auto !important; /* Mobilde scroll açık */
  }
}