/* E-Ticaret Mobil SaaS - Profesyonel Panel Tasarımı */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --sidebar-bg: #0f172a;
  --sidebar-hover: #1e293b;
  --sidebar-active: #6366f1;
  --sidebar-text: #94a3b8;
  --sidebar-text-active: #fff;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: #e0e7ff;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.1);
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --success: #10b981;
  --success-bg: #d1fae5;
  --error: #ef4444;
  --error-bg: #fee2e2;
  --warning: #f59e0b;
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ========== AUTH LAYOUT (Login, Register) ========== */
.layout-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  position: relative;
  overflow: hidden;
}
.layout-auth::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.auth-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  padding: 48px;
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 1;
}
.auth-card .logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 15px;
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--text);
}
.auth-card .form-group { margin-bottom: 20px; }
.auth-card .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}
.auth-card input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.auth-card .btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 8px;
}
.auth-card .footer-links {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.auth-card .footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.auth-card .footer-links a:hover { text-decoration: underline; }
.auth-card .demo-hint {
  margin-top: 16px;
  padding: 12px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-hover);
}

/* ========== PANEL LAYOUT (Sidebar + Content) ========== */
.layout-panel {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}
.sidebar-brand {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-brand a {
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-brand .icon { font-size: 28px; }
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}
.sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: white;
}
.sidebar-nav a.active {
  background: var(--sidebar-active);
  color: white;
}
.sidebar-nav .nav-icon {
  width: 20px;
  height: 20px;
  opacity: 0.8;
}
.sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user .user-info {
  padding: 12px;
  background: var(--sidebar-hover);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.sidebar-user .user-name {
  font-weight: 600;
  color: white;
  font-size: 14px;
}
.sidebar-user .user-email {
  font-size: 12px;
  color: var(--sidebar-text);
  margin-top: 2px;
}
.sidebar-user a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: all 0.2s;
}
.sidebar-user a:hover {
  background: var(--sidebar-hover);
  color: #ef4444;
}

.main-content {
  flex: 1;
  margin-left: 280px;
  padding: 32px;
  min-height: 100vh;
}

/* ========== PAGE HEADER ========== */
.page-header {
  margin-bottom: 32px;
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.page-header .breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
}
.page-header .breadcrumb a { color: var(--accent); text-decoration: none; }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ========== CARDS ========== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========== STATS CARDS ========== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s;
  border-left: 4px solid var(--accent);
}
.stat-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.stat-card .stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.stat-card.accent { border-left-color: var(--accent); }
.stat-card.success { border-left-color: var(--success); }
.stat-card.warning { border-left-color: var(--warning); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }
.btn-secondary {
  background: var(--text-muted);
  color: white;
}
.btn-secondary:hover { background: #475569; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
}
.btn-danger { background: var(--error); }
.btn-danger:hover { background: #dc2626; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ========== FORMS ========== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group .color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.form-group input[type="color"] {
  width: 60px;
  height: 44px;
  padding: 4px;
  cursor: pointer;
}
.form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.form-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

/* ========== TABLE ========== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }
.table-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.table-actions a {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}
.table-actions .btn-edit {
  background: var(--accent-light);
  color: var(--accent);
}
.table-actions .btn-edit:hover { background: var(--accent); color: white; }
.table-actions .btn-settings {
  background: #f1f5f9;
  color: var(--text);
}
.table-actions .btn-settings:hover { background: var(--border); }

/* ========== BADGES ========== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-active { background: var(--success-bg); color: #047857; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-error { background: var(--error-bg); color: #b91c1c; }
.badge-expired { background: #f1f5f9; color: var(--text-muted); }

/* ========== ALERTS ========== */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.alert-error {
  background: var(--error-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-success {
  background: var(--success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ========== EMPTY STATE ========== */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}
.empty-state .icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* ========== PLATFORM BADGES ========== */
.platform-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.platform-woocommerce { background: #7c3aed; color: white; }
.platform-ikas { background: #0ea5e9; color: white; }
.platform-shopify { background: #22c55e; color: white; }
.platform-magento { background: #f97316; color: white; }
.platform-ticimax { background: #6366f1; color: white; }
