/* Professional SaaS Stylesheet for Ikas Commerce */

:root {
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-text: #94a3b8;
  --sidebar-active-text: #ffffff;
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-light: #f8fafc;
  --card-border: #e2e8f0;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --badge-orange: #ea580c;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
}

/* Sidebar Layout */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 260px;
  background-color: var(--sidebar-bg);
  color: var(--sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease-in-out;
  border-right: 1px solid #1e293b;
}

.sidebar-brand {
  padding: 1.25rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid #1e293b;
  text-decoration: none;
}

.sidebar-brand i {
  color: #38bdf8;
  font-size: 1.35rem;
}

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex-grow: 1;
}

.nav-section-title {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  padding: 0.5rem 0.75rem 0.25rem;
  font-weight: 600;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.2rem;
  transition: all 0.15s ease;
}

.sidebar-link:hover {
  background-color: var(--sidebar-hover);
  color: var(--sidebar-active-text);
}

.sidebar-link.active {
  background-color: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
}

.sidebar-link.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.app-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
}

.app-content {
  padding: 1.75rem;
  flex-grow: 1;
}

/* Cards & Stats */
.card {
  border: 1px solid var(--card-border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
}

.card-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--card-border);
  font-weight: 600;
  padding: 1rem 1.25rem;
}

.kpi-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.kpi-icon {
  width: 46px;
  height: 46px;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.alert-stat-card {
  text-decoration: none;
  display: block;
  transition: all 0.2s ease;
  border-left-width: 4px;
}

.alert-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

/* Custom Badges */
.badge-orange {
  background-color: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.badge-outline {
  background: transparent;
  border: 1px solid currentColor;
}

/* Product Tables */
.table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 600;
  border-top: none;
}

.table td {
  vertical-align: middle;
  font-size: 0.88rem;
}

.product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--card-border);
  background-color: #f1f5f9;
}

.product-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 0.4rem;
  background-color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.2rem;
}

/* Dropzone styling */
.upload-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--primary-color);
  background-color: #eff6ff;
}

.upload-dropzone-trendyol {
  border-color: #fed7aa;
  background-color: #fffaf5;
}

.upload-dropzone-trendyol:hover, .upload-dropzone-trendyol.dragover {
  border-color: #f27a1a !important;
  background-color: #fff7ed !important;
}

/* Responsive sidebar */
@media (max-width: 992px) {
  .app-sidebar {
    width: 70px;
  }
  .app-sidebar .sidebar-brand span,
  .app-sidebar .sidebar-link span,
  .app-sidebar .nav-section-title {
    display: none;
  }
  .app-sidebar .sidebar-brand {
    justify-content: center;
    padding: 1.25rem 0.5rem;
  }
  .app-sidebar .sidebar-link {
    justify-content: center;
    padding: 0.75rem 0;
  }
}

/* Product Group Hover & Selection in Pricing Table */
.product-group-hover {
  background-color: rgba(37, 99, 235, 0.04) !important;
}
.product-group-hover td:first-child {
  border-left: 3px solid #2563eb !important;
}
.table-primary.table-opacity-25 {
  background-color: rgba(37, 99, 235, 0.08) !important;
}
.select-product-badge:hover {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* App Footer & Developer Badge */
.app-footer {
  margin-top: auto;
  width: 100%;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.02);
}

.badge-developer-linkedin {
  padding: 0.35rem 0.85rem;
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  color: #334155;
  transition: all 0.2s ease-in-out;
}

.badge-developer-linkedin:hover {
  background-color: #0a66c2;
  border-color: #0a66c2;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 102, 194, 0.25);
}

.badge-developer-linkedin .bi-linkedin {
  color: #0a66c2;
  font-size: 0.95rem;
  transition: color 0.2s ease-in-out;
}

.badge-developer-linkedin:hover .bi-linkedin {
  color: #ffffff !important;
}

.badge-developer-linkedin:hover .bi-box-arrow-up-right {
  color: rgba(255, 255, 255, 0.8) !important;
}

