/* ===== SHOPFLOW 1.0 – POLISHED EDITION ===== */

/* FONT */
@font-face {
  font-family: 'RushDriver';
  src: url('/public/fonts/RushDriver.ttf') format('truetype');
}

/* THEME */
:root {
  --bg-main: #020617;
  --border: #1f2937;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #3b82f6;
  --accent-soft: rgba(59,130,246,0.15);
}

/* RESET */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== WATERMARK ===== */
body {
  position: relative;
}

body::after {
  content: '';
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 700px;
  height: 700px;
  background: url('/public/images/shopflow-logo.png') no-repeat;
  background-size: contain;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
header {
  position: relative;
  z-index: 2;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Subtle header glow */
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* LOGO */
header h1 {
  font-family: 'RushDriver', sans-serif;
  font-size: 30px;
  letter-spacing: 2px;
  margin: 0;
}

/* Optional version badge */
header h1 span {
  font-family: system-ui, sans-serif;
  font-size: 11px;
  margin-left: 6px;
  color: var(--text-muted);
}

/* ===== NAV ===== */
nav a {
  position: relative;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  margin-left: 22px;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent);
}

/* Animated underline */
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

/* ===== MAIN ===== */
main {
  position: relative;
  z-index: 2;
  padding: 24px;
}

/* ===== CARDS ===== */
.card {
  background: rgba(2,6,23,0.92);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Card hover lift */
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

/* Button hover glow */
.btn:hover {
  background: #2563eb;
  box-shadow: 0 0 12px rgba(59,130,246,0.4);
}

.btn:active {
  transform: translateY(1px);
}

/* Secondary buttons */
.btn.secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* ===== FORMS ===== */
input, select, textarea {
  padding: 14px;
  background: #020617;
  border: 1px solid var(--border);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 15px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(59,130,246,0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

/* ===== TABLES ===== */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

.table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
}

/* ===== NAV RIGHT AREA ===== */
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Settings icon animation */
.settings-link {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.settings-link:hover {
  color: var(--accent);
  transform: rotate(15deg);
}

/* ===== USER INFO ===== */
.user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.logout-link {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-muted);
}

.logout-link:hover {
  color: #ef4444;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-loader {
  font-size: 12px;
  color: #3b82f6;
  opacity: 0.8;
}