/* assets/css/style.css */
:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #1e293b;
  --background-color: #f8fafc;
  --surface-color: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --border-radius: 8px;
  --transition-speed: 0.2s;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--primary-hover);
}

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

.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
  z-index: 10;
}

.sidebar-header {
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.7);
  border-radius: 10px;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.sidebar-nav a .material-symbols-outlined {
  font-size: 22px;
  display: block;
  /* 视觉补偿，将图标往下推 1~2px 从而与文字光学对齐 */
  transform: translateY(1px);
}

.sidebar-nav a:hover {
  background-color: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateX(4px);
}

.sidebar-nav a.active {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
}

.content-wrapper {
  padding: 2rem;
  flex: 1;
  overflow-y: auto;
}

/* Components */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all var(--transition-speed) ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Utility */
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }

/* Status Badges */
.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-received { background-color: #e0e7ff; color: #3730a3; }
.badge-progress { background-color: #fef3c7; color: #92400e; }
.badge-parts { background-color: #fee2e2; color: #991b1b; }
.badge-repaired { background-color: #d1fae5; color: #065f46; }
.badge-pickedup { background-color: #f3f4f6; color: #374151; }

/* Login Container */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: var(--background-color);
}
.login-box {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}
