/* ============================================
   BEAUTIFUL LOGIN PAGE - Ultra Clear Font
   Font: Inter (Modern, Clean, Readable)
   ============================================ */

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

body.login-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Login Wrapper */
.login-wrapper {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

/* Main Card */
.login-card {
  background: white;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

/* Brand Section */
.brand-section {
  text-align: center;
  margin-bottom: 40px;
}

.logo-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.brand-section h1 {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.brand-section p {
  font-size: 14px;
  font-weight: 400;
  color: #64748b;
  letter-spacing: 0.2px;
}

/* Form Section */
.form-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.form-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}

/* Input Fields */
.input-field {
  margin-bottom: 24px;
}

.input-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 16px;
  font-size: 18px;
  color: #94a3b8;
}

.input-container input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  font-weight: 400;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
  color: #0f172a;
}

.input-container input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-container input::placeholder {
  color: #cbd5e1;
  font-weight: 400;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 14px 20px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.login-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.login-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.login-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* Error Box */
.error-box {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 500;
  color: #dc2626;
}

.error-icon {
  font-size: 16px;
}

/* Signup Link */
.signup-link {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.signup-link p {
  font-size: 13px;
  color: #64748b;
}

.signup-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Security Info */
.security-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.info-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.info-item span:first-child {
  font-size: 20px;
}

/* ============================================
   WAITING SECTION (Step 2)
   ============================================ */

.waiting-section {
  text-align: center;
}

.waiting-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
}

.pulse-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  animation: pulse 1.5s ease-out infinite;
}

.waiting-emoji {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.waiting-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.waiting-greeting {
  font-size: 16px;
  color: #334155;
  margin-bottom: 12px;
}

.waiting-message {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 24px;
}

.security-badge {
  background: #f0f9ff;
  padding: 12px 16px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: #0284c7;
  margin: 20px 0;
}

.check-btn {
  width: 100%;
  padding: 14px 20px;
  background: #f1f5f9;
  color: #334155;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.check-btn:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

.warning-box {
  background: #fffbeb;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: #d97706;
  margin-top: 20px;
  text-align: left;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 520px) {
  .login-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .brand-section h1 {
    font-size: 22px;
  }

  .logo-icon {
    font-size: 52px;
  }

  .form-section h2 {
    font-size: 22px;
  }

  .input-container input {
    padding: 12px 14px 12px 44px;
    font-size: 14px;
  }

  .field-icon {
    font-size: 16px;
    left: 14px;
  }

  .security-info {
    gap: 8px;
  }

  .info-item span:first-child {
    font-size: 18px;
  }

  .info-item span:last-child {
    font-size: 10px;
  }
}

@media (max-width: 400px) {
  .login-card {
    padding: 28px 20px;
  }

  .security-info {
    flex-direction: column;
    gap: 12px;
  }

  .info-item {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}

/* ============================================
   FOCUS & ACCESSIBILITY
   ============================================ */

:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ============================================
   SIGNUP PAGE SPECIFIC STYLES
   ============================================ */

body.signup-page {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  min-height: 100vh;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.signup-wrapper {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

.signup-card {
  background: white;
  border-radius: 32px;
  padding: 48px 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease;
}

/* Form Row - Two columns */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

/* Required field star */
.required {
  color: #ef4444;
  font-size: 14px;
  font-weight: 600;
  margin-left: 2px;
}

/* Signup Button */
.signup-btn {
  width: 100%;
  padding: 14px 20px;
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.signup-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.signup-btn:active {
  transform: translateY(0);
}

/* Success Box */
.success-box {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.success-box h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

.success-box p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #e2e8f0;
  transform: translateX(-4px);
}

/* Security Notice Box */
.security-notice {
  background: #f0f9ff;
  border-radius: 16px;
  padding: 16px 20px;
  margin: 24px 0 20px;
  display: flex;
  gap: 14px;
  border-left: 4px solid #3b82f6;
}

.notice-icon {
  font-size: 28px;
}

.notice-content strong {
  display: block;
  font-size: 14px;
  color: #0284c7;
  margin-bottom: 4px;
}

.notice-content p {
  font-size: 12px;
  color: #0c4a6e;
  line-height: 1.4;
}

/* Login Link */
.login-link {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.login-link p {
  font-size: 13px;
  color: #64748b;
}

.login-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ============================================
   MOBILE RESPONSIVENESS FOR SIGNUP
   ============================================ */

@media (max-width: 640px) {
  .signup-card {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .brand-section h1 {
    font-size: 22px;
  }

  .logo-icon {
    font-size: 52px;
  }

  .form-section h2 {
    font-size: 22px;
  }

  .input-container input {
    padding: 12px 14px 12px 44px;
    font-size: 14px;
  }

  .field-icon {
    font-size: 16px;
    left: 14px;
  }

  .security-info {
    gap: 8px;
  }

  .info-item span:first-child {
    font-size: 18px;
  }

  .info-item span:last-child {
    font-size: 10px;
  }

  .security-notice {
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  .signup-card {
    padding: 28px 20px;
  }

  .security-info {
    flex-direction: column;
    gap: 12px;
  }

  .info-item {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
  }
}

/* ============================================
   FOCUS & ACCESSIBILITY FOR SIGNUP
   ============================================ */

.signup-page :focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Remove number input arrows */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 0s 600000s, color 0s 600000s;
}

/* ============================================
   DASHBOARD STYLES - Left sidebar, full width
   ============================================ */

.dashboard-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ============================================
   LEFT SIDEBAR - Big square icons
   ============================================ */

.sidebar {
  width: 280px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.sidebar-header .logo-icon {
  font-size: 32px;
}

.sidebar-header .logo-text {
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.nav-items {
  flex: 1;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #94a3b8;
}

.nav-item:hover {
  background: #1e293b;
  color: white;
}

.nav-item.active {
  background: #1e293b;
  color: white;
}

.nav-item.active .nav-icon {
  color: #3b82f6;
}

.nav-icon {
  font-size: 24px;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
}

.nav-item.logout {
  margin-top: 20px;
  border-top: 1px solid #1e293b;
  border-radius: 0;
  padding-top: 20px;
  color: #ef4444;
}

.nav-item.logout:hover {
  background: #7f1d1d;
  color: white;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 12px;
  border-top: 1px solid #1e293b;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1e293b;
  border-radius: 14px;
  margin-bottom: 12px;
}

.user-icon {
  font-size: 28px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
}

.user-role {
  font-size: 11px;
  color: #94a3b8;
}

/* ============================================
   MAIN CONTENT - Full width, 5px margins
   ============================================ */

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 20px 5px;
  background: #f8fafc;
  min-height: 100vh;
}

/* Welcome Section */
.welcome-section {
  margin-bottom: 28px;
  padding: 0 10px;
}

.welcome-section h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.welcome-section p {
  font-size: 14px;
  color: #64748b;
}

/* Stats Grid - 4 cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  padding: 0 10px;
}

.stat-card {
  background: white;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
}

.stat-icon.blue {
  background: #eff6ff;
}

.stat-icon.green {
  background: #ecfdf5;
}

.stat-icon.orange {
  background: #fff7ed;
}

.stat-icon.purple {
  background: #f5f3ff;
}

.stat-info h3 {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.stat-info p {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

/* Dashboard Grid - 2 columns */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
  padding: 0 10px;
}

/* Dashboard Cards */
.dashboard-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-icon {
  font-size: 24px;
}

.card-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
  flex: 1;
}

.admin-badge {
  background: #fef3c7;
  color: #d97706;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.card-body {
  padding: 20px 24px;
}

/* Action List */
.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-list.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.action-item:hover {
  background: #f1f5f9;
  transform: translateX(4px);
}

.action-icon {
  font-size: 20px;
}

.action-item span:first-of-type {
  font-size: 14px;
  font-weight: 500;
  color: #334155;
}

.action-item span:last-of-type {
  margin-left: auto;
  font-size: 16px;
  color: #94a3b8;
}

/* Sales List */
.sales-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sale-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sale-item:last-child {
  border-bottom: none;
}

.sale-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sale-vehicle {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.sale-date {
  font-size: 11px;
  color: #94a3b8;
}

.sale-amount {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.empty-message {
  text-align: center;
  padding: 30px;
  color: #94a3b8;
  font-size: 14px;
}

/* Admin Card */
.admin-card {
  border: 2px solid #fef3c7;
  background: #fffbeb;
}

.admin-card .card-header {
  background: #fef3c7;
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */

@media (max-width: 1024px) {
  .sidebar {
    width: 80px;
  }

  .sidebar-header .logo-text,
  .nav-label,
  .user-details {
    display: none;
  }

  .user-info {
    justify-content: center;
    padding: 12px;
  }

  .user-icon {
    font-size: 28px;
    margin: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 14px;
  }

  .dashboard-main {
    margin-left: 80px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section h1 {
    font-size: 22px;
  }

  .action-list.two-columns {
    grid-template-columns: 1fr;
  }

  .card-header {
    padding: 16px 20px;
  }

  .card-body {
    padding: 16px 20px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    width: 70px;
  }

  .dashboard-main {
    margin-left: 70px;
    padding: 15px 5px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
  }

  .stat-info h3 {
    font-size: 22px;
  }

  .stat-info p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .sidebar {
    width: 60px;
  }

  .dashboard-main {
    margin-left: 60px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .welcome-section h1 {
    font-size: 18px;
  }
}

/* ============================================
   DATABASE TEST PAGE STYLES
   Add these styles to your existing style.css
   ============================================ */

/* Test Page Layout */
.db-test-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  min-height: 100vh;
  padding: 40px 20px;
  margin: 0;
}

.db-test-container {
  max-width: 900px;
  margin: 0 auto;
}

.db-test-card {
  background: white;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Test Header */
.db-test-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 40px;
  text-align: center;
  color: white;
}

.db-test-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.db-test-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.db-test-header p {
  font-size: 14px;
  opacity: 0.8;
  font-family: "Inter", sans-serif;
}

/* Test Content */
.db-test-content {
  padding: 40px;
}

/* Status Cards */
.db-status-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
}

.db-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #0f172a;
  font-family: "Inter", sans-serif;
}

/* Badges */
.db-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

.db-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.db-badge-error {
  background: #fee2e2;
  color: #991b1b;
}

.db-badge-warning {
  background: #fed7aa;
  color: #92400e;
}

.db-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Info Grid */
.db-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.db-info-item {
  background: white;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.db-info-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Inter", sans-serif;
}

.db-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  font-family: monospace;
}

/* Tables List */
.db-tables-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.db-table-badge {
  background: #e0e7ff;
  color: #3730a3;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", sans-serif;
}

/* Steps List */
.db-steps-list {
  margin: 20px 0;
  list-style: none;
  padding: 0;
}

.db-steps-list li {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #334155;
}

.db-step-number {
  width: 28px;
  height: 28px;
  background: #0f172a;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.db-steps-list code {
  background: #f1f5f9;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 12px;
  color: #0f172a;
}

.db-steps-list a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.db-steps-list a:hover {
  text-decoration: underline;
}

/* Test Button */
.db-test-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #0f172a;
  color: white;
  text-decoration: none;
  border-radius: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  margin-top: 20px;
  border: none;
  cursor: pointer;
}

.db-test-button:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.db-test-button:active {
  transform: translateY(0);
}

/* Divider */
.db-hr {
  margin: 24px 0;
  border: none;
  border-top: 2px solid #e2e8f0;
}

/* Special Background */
.db-bg-success {
  background: #d1fae5;
}

/* Utility Classes */
.db-mt-20 {
  margin-top: 20px;
}

.db-mb-8 {
  margin-bottom: 8px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .db-test-body {
    padding: 20px 16px;
  }

  .db-test-header {
    padding: 30px 20px;
  }

  .db-test-content {
    padding: 24px 20px;
  }

  .db-test-header h1 {
    font-size: 24px;
  }

  .db-test-icon {
    font-size: 52px;
  }

  .db-status-card {
    padding: 20px;
  }
}

@media (max-width: 640px) {
  .db-test-header {
    padding: 24px 16px;
  }

  .db-test-content {
    padding: 20px 16px;
  }

  .db-test-header h1 {
    font-size: 20px;
  }

  .db-info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .db-info-item {
    padding: 12px;
  }

  .db-badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  .db-steps-list li {
    font-size: 13px;
    flex-wrap: wrap;
  }

  .db-table-badge {
    font-size: 11px;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .db-test-body {
    padding: 16px 12px;
  }

  .db-test-card {
    border-radius: 24px;
  }

  .db-test-header {
    padding: 20px 16px;
  }

  .db-test-header h1 {
    font-size: 18px;
  }

  .db-test-icon {
    font-size: 44px;
  }

  .db-test-content {
    padding: 16px;
  }

  .db-status-title {
    font-size: 16px;
  }

  .db-step-number {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .db-test-button {
    width: 100%;
    justify-content: center;
  }
}

/* Animation */
@keyframes dbFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.db-test-card {
  animation: dbFadeIn 0.5s ease-out;
}

/* Scrollbar for test page */
.db-test-body::-webkit-scrollbar {
  width: 8px;
}

.db-test-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.db-test-body::-webkit-scrollbar-thumb {
  background: #0f172a;
  border-radius: 4px;
}
/* ============================================
   HEADER / SIDEBAR STYLES
   Big square icons, fixed left sidebar
   ============================================ */

/* Sidebar Layout */
.dashboard-sidebar {
  width: 280px;
  background: #0f172a;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  z-index: 1000;
  transition: all 0.3s ease;
}

/* Sidebar Header */
.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}

.sidebar-header .logo-icon {
  font-size: 36px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 20px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.3px;
  font-family: "Inter", sans-serif;
}

.logo-subtitle {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
  font-family: "Inter", sans-serif;
}

/* Navigation Items */
.sidebar-nav {
  flex: 1;
  padding: 0 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #94a3b8;
}

.nav-item:hover {
  background: #1e293b;
  color: white;
}

.nav-item.active {
  background: #1e293b;
  color: white;
}

.nav-item.active .nav-icon {
  color: #3b82f6;
}

.nav-icon {
  font-size: 24px;
  min-width: 28px;
  text-align: center;
}

.nav-label {
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 20px 12px;
  border-top: 1px solid #1e293b;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1e293b;
  border-radius: 14px;
  margin-bottom: 12px;
}

.user-avatar {
  font-size: 32px;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  font-family: "Inter", sans-serif;
}

.user-role {
  font-size: 11px;
  color: #94a3b8;
  text-transform: capitalize;
  font-family: "Inter", sans-serif;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  color: #ef4444;
  background: transparent;
}

.logout-btn:hover {
  background: #7f1d1d;
  color: white;
}

.logout-btn:hover .nav-icon {
  color: white;
}

/* Dashboard Layout */
.dashboard-body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 0;
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.dashboard-main {
  flex: 1;
  margin-left: 280px;
  padding: 20px 5px;
  background: #f8fafc;
  min-height: 100vh;
}

.page-content {
  max-width: 100%;
  padding: 0 10px;
}

/* Page Header Styles */
.page-header {
  background: white;
  border-radius: 20px;
  padding: 24px 30px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px 0;
  font-family: "Inter", sans-serif;
}

.page-header p {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .dashboard-sidebar {
    width: 80px;
  }

  .logo-text,
  .nav-label,
  .user-details {
    display: none;
  }

  .sidebar-header {
    justify-content: center;
    padding: 24px 12px;
  }

  .sidebar-header .logo-icon {
    font-size: 32px;
    margin: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 14px;
  }

  .nav-icon {
    font-size: 24px;
    min-width: auto;
  }

  .user-info {
    justify-content: center;
    padding: 12px;
  }

  .user-avatar {
    font-size: 28px;
    margin: 0;
  }

  .logout-btn {
    justify-content: center;
    padding: 14px;
  }

  .dashboard-main {
    margin-left: 80px;
  }
}

@media (max-width: 640px) {
  .dashboard-sidebar {
    width: 70px;
  }

  .nav-icon {
    font-size: 20px;
  }

  .user-avatar {
    font-size: 24px;
  }

  .dashboard-main {
    margin-left: 70px;
  }

  .page-header {
    padding: 18px 20px;
  }

  .page-header h1 {
    font-size: 20px;
  }
}

/* Sidebar Scrollbar */
.dashboard-sidebar::-webkit-scrollbar {
  width: 4px;
}

.dashboard-sidebar::-webkit-scrollbar-track {
  background: #1e293b;
}

.dashboard-sidebar::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

/* ============================================
   DASHBOARD PAGE STYLES
   Main dashboard with stats, charts, and tables
   ============================================ */

/* Dashboard Content */
.dashboard-content {
  max-width: 100%;
  padding: 0 10px;
}

/* Stats Grid */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.dashboard-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.dashboard-stat-card:hover {
  transform: translateY(-5px);
}

.dashboard-stat-card.income {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.dashboard-stat-card.profit {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dashboard-stat-card.sales {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.dashboard-stat-card.stock {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.dashboard-stat-card.dark {
  background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.dashboard-stat-card.warning {
  background: linear-gradient(135deg, #f2994a 0%, #f2c94c 100%);
}

.dashboard-stat-card.success {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

.dashboard-stat-card h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  font-family: "Inter", sans-serif;
}

.dashboard-stat-card .amount {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
  font-family: "Inter", sans-serif;
}

.dashboard-stat-card .small-text {
  font-size: 11px;
  opacity: 0.8;
  font-family: "Inter", sans-serif;
}

/* Filter Bar */
.dashboard-filter-bar {
  background: white;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-filter-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.dashboard-filter-group {
  flex: 1;
  min-width: 150px;
}

.dashboard-filter-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.dashboard-filter-group input,
.dashboard-filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}

.dashboard-filter-group input:focus,
.dashboard-filter-group select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.dashboard-btn {
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.dashboard-btn-primary {
  background: #0f172a;
  color: white;
}

.dashboard-btn-primary:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.dashboard-btn-success {
  background: #10b981;
  color: white;
}

.dashboard-btn-success:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Summary Box */
.dashboard-summary-box {
  background: #f0f9ff;
  padding: 15px 20px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #3b82f6;
  font-size: 14px;
  color: #0c4a6e;
  font-family: "Inter", sans-serif;
}

/* Section Titles */
.dashboard-section-title {
  margin: 30px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #0f172a;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

/* Tables */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-table th,
.dashboard-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.dashboard-table td {
  font-size: 13px;
  color: #475569;
  font-family: "Inter", sans-serif;
}

.dashboard-table tfoot td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
}

/* Profit Colors */
.dashboard-profit-positive {
  color: #059669;
  font-weight: 600;
}

.dashboard-profit-negative {
  color: #dc2626;
  font-weight: 600;
}

/* Badges */
.dashboard-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.dashboard-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.dashboard-badge-warning {
  background: #fed7aa;
  color: #92400e;
}

.dashboard-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

.dashboard-badge-danger {
  background: #fee2e2;
  color: #991b1b;
}

/* Chart Container */
.dashboard-chart-container {
  margin: 30px 0;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dashboard-chart-container h3 {
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  font-family: "Inter", sans-serif;
}

/* Sales Table Container */
.dashboard-sales-table {
  overflow-x: auto;
  margin-top: 15px;
}

/* Print Styles */
@media print {
  .dashboard-sidebar,
  .dashboard-filter-bar,
  .dashboard-btn,
  .no-print {
    display: none !important;
  }

  .dashboard-main {
    margin-left: 0 !important;
    padding: 0 !important;
  }

  .dashboard-stat-card {
    break-inside: avoid;
  }

  .dashboard-table {
    break-inside: avoid;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}

@media (max-width: 768px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-filter-group {
    min-width: 100%;
  }

  .dashboard-filter-form {
    flex-direction: column;
  }

  .dashboard-btn {
    width: 100%;
  }

  .dashboard-table th,
  .dashboard-table td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .dashboard-stat-card .amount {
    font-size: 22px;
  }
}

@media (max-width: 640px) {
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-section-title {
    font-size: 18px;
  }
}

/* ============================================
   ADMIN APPROVALS PAGE STYLES
   User management, login requests, sessions
   ============================================ */

/* Stats Cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-stat-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-5px);
}

.admin-stat-card h4 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.admin-stat-card p {
  font-size: 13px;
  opacity: 0.9;
  font-family: "Inter", sans-serif;
}

/* Tables */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.admin-table td {
  font-size: 13px;
  color: #475569;
  font-family: "Inter", sans-serif;
}

.admin-table tbody tr:hover {
  background: #f8fafc;
}

/* Table Row Colors */
.admin-row-pending {
  background: #fffbeb;
}

.admin-row-active {
  background: #ecfdf5;
}

/* Buttons */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  cursor: pointer;
  border: none;
}

.admin-btn-approve {
  background: #10b981;
  color: white;
}

.admin-btn-approve:hover {
  background: #059669;
  transform: translateY(-1px);
}

.admin-btn-approve-login {
  background: #0ea5e9;
  color: white;
}

.admin-btn-approve-login:hover {
  background: #0284c7;
  transform: translateY(-1px);
}

.admin-btn-reject {
  background: #ef4444;
  color: white;
}

.admin-btn-reject:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.admin-btn-refresh {
  background: #6b7280;
  color: white;
  padding: 8px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-btn-refresh:hover {
  background: #4b5563;
  transform: translateY(-1px);
}

/* Action Buttons Container */
.admin-action-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Status Badges */
.admin-status-pending {
  color: #d97706;
  font-weight: 600;
}

.admin-status-approved {
  color: #059669;
  font-weight: 600;
}

.admin-status-rejected {
  color: #dc2626;
  font-weight: 600;
}

.admin-status-active {
  color: #10b981;
  font-weight: 600;
}

/* Role Badges */
.admin-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.admin-badge-admin {
  background: #dbeafe;
  color: #1e40af;
}

.admin-badge-user {
  background: #d1fae5;
  color: #065f46;
}

/* Device Badges */
.admin-device-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 500;
  margin-right: 5px;
}

.admin-device-mobile {
  background: #fef3c7;
  color: #92400e;
}

.admin-device-desktop {
  background: #e0e7ff;
  color: #3730a3;
}

.admin-device-tablet {
  background: #d1fae5;
  color: #065f46;
}

/* User Agent Cell */
.admin-useragent-cell {
  max-width: 300px;
  word-wrap: break-word;
  font-size: 11px;
  font-family: monospace;
}

.admin-full-useragent {
  font-size: 10px;
  color: #6b7280;
  margin-top: 5px;
  word-break: break-all;
}

/* Details Summary */
.admin-details-summary {
  cursor: pointer;
  color: #3b82f6;
  font-size: 11px;
}

.admin-details-summary:hover {
  text-decoration: underline;
}

/* Section Titles */
.admin-section-title {
  margin-top: 35px;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 3px solid #0f172a;
  color: #0f172a;
  font-size: 20px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.admin-section-subtitle {
  margin-bottom: 12px;
  font-size: 13px;
  color: #6b7280;
  font-family: "Inter", sans-serif;
}

/* Alert Success */
.admin-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* Empty State */
.admin-empty-state {
  padding: 30px;
  background: #f9fafb;
  text-align: center;
  border-radius: 16px;
  color: #6b7280;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .admin-stat-card h4 {
    font-size: 24px;
  }

  .admin-table th,
  .admin-table td {
    padding: 8px 10px;
    font-size: 11px;
  }

  .admin-section-title {
    font-size: 18px;
  }

  .admin-action-buttons {
    flex-direction: column;
  }

  .admin-btn {
    justify-content: center;
  }

  .admin-useragent-cell {
    max-width: 200px;
  }
}

@media (max-width: 640px) {
  .admin-stats-grid {
    grid-template-columns: 1fr;
  }

  .admin-table {
    display: block;
    overflow-x: auto;
  }
}

/* Tooltip */
.admin-tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
}

.admin-tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1f2937;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  z-index: 10;
}
/* ============================================
   ADD STOCK PAGE STYLES - LIGHT THEME ONLY
   Batch entry, vehicle management
   ============================================ */

/* Global Section - Light Theme */
.stock-global-section {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.stock-global-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #0f172a;
  font-family: "Inter", sans-serif;
}

/* Form Sections - Light Theme */
.stock-form-section {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stock-form-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  font-family: "Inter", sans-serif;
}

/* Form Rows */
.stock-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.stock-form-group {
  margin-bottom: 15px;
}

.stock-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.stock-form-group input,
.stock-form-group select,
.stock-form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  background: white;
  transition: all 0.2s ease;
}

.stock-form-group input:focus,
.stock-form-group select:focus,
.stock-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stock-form-group input[type="number"] {
  background: #fffbeb;
}

/* Radio & Checkbox Groups - Light Theme */
.stock-radio-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stock-radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  cursor: pointer;
  color: #334155;
}

.stock-checkbox-group {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.stock-checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: normal;
  cursor: pointer;
  color: #334155;
}

/* Source Details - Light Theme */
.stock-source-details {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 15px;
  margin-top: 10px;
  border: 1px solid #e2e8f0;
}

/* Batch Card - Light Theme */
.stock-batch-card {
  background: white;
  border-radius: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.stock-batch-header {
  background: #f8fafc;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #e2e8f0;
}

.stock-batch-number {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  font-family: "Inter", sans-serif;
}

.stock-batch-content {
  padding: 20px;
  display: block;
}

/* Batch Payment Summary - Light Theme */
.stock-batch-payment-summary {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  border-left: 4px solid #3b82f6;
  color: #334155;
}

/* Vehicle Table - Light Theme */
.stock-vehicle-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
}

.stock-vehicle-table th,
.stock-vehicle-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.stock-vehicle-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.stock-vehicle-table td input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: white;
}

.stock-vehicle-table td input:focus {
  outline: none;
  border-color: #3b82f6;
}

/* Buttons - Light Theme */
.stock-btn-add-batch {
  background: #0f172a;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.stock-btn-add-batch:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.stock-btn-submit {
  background: #10b981;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.stock-btn-submit:hover {
  background: #059669;
  transform: translateY(-2px);
}

.stock-btn-cancel {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.stock-btn-cancel:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.stock-btn-remove-batch {
  background: #ef4444;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stock-btn-remove-batch:hover {
  background: #dc2626;
}

/* Alerts - Light Theme */
.stock-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
  font-size: 14px;
  font-weight: 500;
}

.stock-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
}

.stock-alert-error ul {
  margin-top: 10px;
  margin-left: 20px;
}

/* Required Field */
.stock-required {
  color: #ef4444;
  font-size: 14px;
}

/* Small Text */
.stock-small-text {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .stock-form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stock-batch-header {
    padding: 12px 16px;
  }

  .stock-batch-content {
    padding: 16px;
  }

  .stock-radio-group {
    flex-direction: column;
    gap: 10px;
  }

  .stock-checkbox-group {
    flex-direction: column;
    gap: 8px;
  }

  .stock-btn-add-batch,
  .stock-btn-submit,
  .stock-btn-cancel {
    width: 100%;
    margin-bottom: 10px;
    text-align: center;
  }

  .stock-vehicle-table {
    display: block;
    overflow-x: auto;
  }
}

/* ============================================
   ADD STOCK PREVIEW PAGE STYLES
   ============================================ */

/* Preview Container */
.stock-preview-container {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.stock-preview-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.stock-preview-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.stock-preview-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.stock-preview-header p {
  color: #64748b;
  font-size: 14px;
}

/* Preview Sections */
.stock-preview-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.stock-preview-section > h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.stock-preview-batch {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.stock-preview-batch > h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.stock-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stock-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.preview-label {
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.preview-value {
  font-weight: 500;
  color: #0f172a;
  font-size: 13px;
}

/* Preview Subsection */
.stock-preview-subsection {
  margin-top: 16px;
}

.stock-preview-subsection h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
}

/* Preview Table */
.stock-preview-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.stock-preview-table th,
.stock-preview-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.stock-preview-table th {
  background: #f1f5f9;
  font-weight: 600;
  font-size: 12px;
  color: #334155;
}

.stock-preview-table td {
  font-size: 13px;
  color: #475569;
}

/* Preview Action Buttons */
.stock-preview-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.stock-btn-confirm {
  background: #10b981;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.stock-btn-back-edit {
  background: #6b7280;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stock-btn-back-edit:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Preview Button */
.stock-btn-preview {
  background: #3b82f6;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 10px;
}

.stock-btn-preview:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .stock-preview-container {
    padding: 20px;
  }

  .stock-preview-grid {
    grid-template-columns: 1fr;
  }

  .stock-preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .stock-preview-actions {
    flex-direction: column;
  }

  .stock-btn-confirm,
  .stock-btn-back-edit {
    width: 100%;
    justify-content: center;
  }

  .stock-preview-table {
    display: block;
    overflow-x: auto;
  }
}
/* ============================================
   SELL VEHICLE PAGE STYLES - LIGHT THEME ONLY
   Vehicle search, customer info, payments
   ============================================ */

/* Vehicle Preview */
.sell-vehicle-preview {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 16px;
  padding: 20px;
  margin: 20px 0;
}

.sell-vehicle-preview h4 {
  color: #065f46;
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: 600;
}

.sell-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.sell-preview-item {
  font-size: 14px;
}

.sell-preview-item strong {
  color: #334155;
}

/* Current Image */
.sell-current-image {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
}

.sell-current-image label {
  font-weight: 600;
  color: #334155;
  margin-bottom: 10px;
  display: block;
}

.sell-current-image img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

/* Image Preview */
.sell-image-preview {
  margin-top: 10px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 12px;
  text-align: center;
}

.sell-image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 10px;
  border: 2px solid #e2e8f0;
}

.sell-remove-image {
  margin-top: 8px;
  padding: 4px 12px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.sell-remove-image:hover {
  background: #dc2626;
}

/* Form Row - 3 Columns */
.sell-form-row-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

/* Rounding Note */
.sell-rounding-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 15px 0;
  font-size: 13px;
  color: #92400e;
}

.sell-rounding-note strong {
  color: #d97706;
}

/* Installment Summary */
.sell-installment-summary {
  background: #f0fdf4;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #d1fae5;
}

.sell-installment-summary strong {
  color: #065f46;
}

/* Schedule Table */
.sell-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.sell-schedule-table th,
.sell-schedule-table td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #e2e8f0;
}

.sell-schedule-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.sell-schedule-table td {
  font-size: 13px;
}

/* Witness Card */
.sell-witness-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.sell-witness-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
}

.sell-witness-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
}

.sell-witness-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.sell-witness-fields-full {
  grid-column: 1 / -1;
}

/* Add Witness Button */
.sell-btn-add-witness {
  background: #0f172a;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.2s ease;
}

.sell-btn-add-witness:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* Remove Witness Button */
.sell-btn-remove-witness {
  background: #ef4444;
  color: white;
  padding: 4px 12px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.sell-btn-remove-witness:hover {
  background: #dc2626;
}

/* Check Vehicle Button */
.sell-btn-check {
  background: #0f172a;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sell-btn-check:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* Submit Button */
.sell-btn-submit {
  background: #10b981;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-right: 12px;
  transition: all 0.2s ease;
}

.sell-btn-submit:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Cancel Button */
.sell-btn-cancel {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.sell-btn-cancel:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Alert Error */
.sell-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .sell-form-row-3 {
    grid-template-columns: 1fr;
  }

  .sell-witness-fields {
    grid-template-columns: 1fr;
  }

  .sell-preview-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sell-schedule-table {
    display: block;
    overflow-x: auto;
  }
}
/* ============================================
   SELL VEHICLE PREVIEW PAGE STYLES
   ============================================ */

/* Preview Container */
.sell-preview-container {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.sell-preview-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.sell-preview-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.sell-preview-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.sell-preview-header p {
  color: #64748b;
  font-size: 14px;
}

/* Preview Sections */
.sell-preview-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.sell-preview-section > h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.sell-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sell-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.sell-preview-item.full-width {
  grid-column: 1 / -1;
}

.preview-label {
  font-weight: 600;
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
}

.preview-value {
  font-weight: 500;
  color: #0f172a;
  font-size: 13px;
}

/* Witness Preview */
.sell-preview-witness {
  background: white;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e2e8f0;
}

.sell-preview-witness h4 {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

/* Preview Action Buttons */
.sell-preview-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.sell-btn-confirm {
  background: #10b981;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.sell-btn-back-edit {
  background: #6b7280;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sell-btn-back-edit:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Preview Button */
.sell-btn-preview {
  background: #3b82f6;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 10px;
}

.sell-btn-preview:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .sell-preview-container {
    padding: 20px;
  }

  .sell-preview-grid {
    grid-template-columns: 1fr;
  }

  .sell-preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .sell-preview-actions {
    flex-direction: column;
  }

  .sell-btn-confirm,
  .sell-btn-back-edit {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================
   ADD INSTALLMENT PAGE STYLES - LIGHT THEME ONLY
   Installment management, payment tracking
   ============================================ */

/* Alert Messages */
.installment-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
  font-size: 14px;
  font-weight: 500;
}

.installment-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
}

/* Search Box */
.installment-search-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.installment-search-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.installment-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.installment-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.installment-search-btn {
  background: #0f172a;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.installment-search-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* Search Results Table */
.installment-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.installment-results-table th,
.installment-results-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.installment-results-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.installment-results-table td {
  font-size: 13px;
  color: #475569;
}

.installment-results-table a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.installment-results-table a:hover {
  text-decoration: underline;
}

/* Payment Summary Grid */
.installment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.installment-summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.installment-summary-card:hover {
  transform: translateY(-3px);
}

.installment-summary-card.total-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.installment-summary-card.remaining-card {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.installment-summary-card label {
  font-size: 12px;
  opacity: 0.9;
  display: block;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.installment-summary-card .value {
  font-size: 24px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

/* Vehicle Info Box */
.installment-vehicle-info {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  border-left: 4px solid #3b82f6;
}

.installment-vehicle-info h4 {
  margin: 0 0 15px 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
}

.installment-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.installment-info-grid div {
  font-size: 13px;
  color: #334155;
}

.installment-info-grid strong {
  color: #0f172a;
}

/* Paid Installments Table */
.installment-paid-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.installment-paid-table th,
.installment-paid-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.installment-paid-table th {
  background: #0f172a;
  color: white;
  font-weight: 600;
  font-size: 13px;
}

.installment-paid-table td {
  font-size: 13px;
  color: #475569;
}

.installment-paid-table tfoot td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
}

/* Status Badges */
.installment-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

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

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

.installment-status-extra {
  background: #fef3c7;
  color: #d97706;
}

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

/* Difference Colors */
.installment-diff-extra {
  color: #f59e0b;
  font-weight: 600;
}

.installment-diff-less {
  color: #ef4444;
  font-weight: 600;
}

.installment-diff-normal {
  color: #10b981;
  font-weight: 600;
}

/* Extra Payment Note */
.installment-extra-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #92400e;
}

.installment-extra-note strong {
  color: #d97706;
}

/* Empty State */
.installment-empty-state {
  text-align: center;
  padding: 50px;
  background: #f8fafc;
  border-radius: 16px;
  color: #64748b;
}

.installment-empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
}

.installment-empty-state small {
  font-size: 12px;
}

/* Section Title */
.installment-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0f172a;
}
/* ============================================
   ADD INSTALLMENT PREVIEW PAGE STYLES
   ============================================ */

/* Preview Container */
.installment-preview-container {
  background: white;
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.installment-preview-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.installment-preview-icon {
  font-size: 48px;
  margin-bottom: 10px;
}

.installment-preview-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.installment-preview-header p {
  color: #64748b;
  font-size: 14px;
}

/* Preview Sections */
.installment-preview-section {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.installment-preview-section > h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.installment-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.installment-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.installment-preview-item.full-width {
  grid-column: 1 / -1;
}

/* Preview Action Buttons */
.installment-preview-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid #e2e8f0;
}

.installment-btn-confirm {
  background: #10b981;
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.installment-btn-back-edit {
  background: #6b7280;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.installment-btn-back-edit:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Preview Button */
.installment-btn-preview {
  background: #3b82f6;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 10px;
}

.installment-btn-preview:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.installment-btn-cancel {
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.installment-btn-cancel:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.installment-form-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .installment-preview-container {
    padding: 20px;
  }

  .installment-preview-grid {
    grid-template-columns: 1fr;
  }

  .installment-preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .installment-preview-actions {
    flex-direction: column;
  }

  .installment-btn-confirm,
  .installment-btn-back-edit {
    width: 100%;
    justify-content: center;
  }

  .installment-form-buttons {
    flex-direction: column;
  }

  .installment-btn-preview,
  .installment-btn-cancel {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================
   ADD INSTALLMENT PAGE STYLES - COMPLETE
   Buttons, tables, forms, and responsive
   ============================================ */

/* Alert Messages */
.installment-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

.installment-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* Search Box */
.installment-search-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.installment-search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.installment-search-input {
  flex: 1;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}

.installment-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Button */
.installment-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.installment-search-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Search Results Table */
.installment-results-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.installment-results-table th,
.installment-results-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.installment-results-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.installment-results-table td {
  font-size: 13px;
  color: #475569;
  font-family: "Inter", sans-serif;
}

/* Add Installment Link Button */
.btn-add-installment-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white !important;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.btn-add-installment-link:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  text-decoration: none !important;
}

/* Fully Paid Badge */
.fully-paid-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #d1fae5;
  color: #065f46;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

/* Payment Summary Grid */
.installment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 25px;
}

.installment-summary-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
}

.installment-summary-card:hover {
  transform: translateY(-3px);
}

.installment-summary-card.total-card {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.installment-summary-card.remaining-card {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.installment-summary-card label {
  font-size: 12px;
  opacity: 0.9;
  display: block;
  margin-bottom: 8px;
  font-family: "Inter", sans-serif;
}

.installment-summary-card .value {
  font-size: 24px;
  font-weight: 700;
  font-family: "Inter", sans-serif;
}

/* Vehicle Info Box */
.installment-vehicle-info {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  border-left: 4px solid #3b82f6;
}

.installment-vehicle-info h4 {
  margin: 0 0 15px 0;
  color: #0f172a;
  font-size: 16px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

.installment-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.installment-info-grid div {
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.installment-info-grid strong {
  color: #0f172a;
}

/* Section Title */
.installment-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin: 25px 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 3px solid #0f172a;
  font-family: "Inter", sans-serif;
}

/* Paid Installments Table */
.installment-paid-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.installment-paid-table th,
.installment-paid-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.installment-paid-table th {
  background: #0f172a;
  color: white;
  font-weight: 600;
  font-size: 13px;
  font-family: "Inter", sans-serif;
}

.installment-paid-table td {
  font-size: 13px;
  color: #475569;
  font-family: "Inter", sans-serif;
}

.installment-paid-table tfoot td {
  background: #f8fafc;
  font-weight: 600;
  border-top: 2px solid #e2e8f0;
}

/* Status Badges */
.installment-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
}

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

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

.installment-status-extra {
  background: #fef3c7;
  color: #d97706;
}

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

/* Difference Colors */
.installment-diff-extra {
  color: #f59e0b;
  font-weight: 600;
}

.installment-diff-less {
  color: #ef4444;
  font-weight: 600;
}

.installment-diff-normal {
  color: #10b981;
  font-weight: 600;
}

/* Extra Payment Note */
.installment-extra-note {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #92400e;
  font-family: "Inter", sans-serif;
}

.installment-extra-note strong {
  color: #d97706;
}

/* Empty State */
.installment-empty-state {
  text-align: center;
  padding: 50px;
  background: #f8fafc;
  border-radius: 16px;
  color: #64748b;
  font-family: "Inter", sans-serif;
}

.installment-empty-state p {
  font-size: 16px;
  margin-bottom: 8px;
}

.installment-empty-state small {
  font-size: 12px;
}

/* Cancel/Back Button */
.btn-cancel-installment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-left: 10px;
  font-family: "Inter", sans-serif;
}

.btn-cancel-installment:hover {
  background: #4b5563;
  transform: translateX(-2px);
}

/* Back to Search Button */
.btn-back-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.btn-back-search:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Submit Button (Add Installment) */
.sell-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

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

/* Form Group Styles */
.stock-form-group {
  margin-bottom: 20px;
}

.stock-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.stock-form-group input,
.stock-form-group select,
.stock-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}

.stock-form-group input:focus,
.stock-form-group select:focus,
.stock-form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.stock-required {
  color: #ef4444;
  font-size: 14px;
}

.stock-small-text {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
  display: block;
  font-family: "Inter", sans-serif;
}

/* Form Section */
.stock-form-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stock-form-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e2e8f0;
  font-family: "Inter", sans-serif;
}

/* Responsive */
@media (max-width: 768px) {
  .installment-search-form {
    flex-direction: column;
  }

  .installment-search-btn {
    width: 100%;
    justify-content: center;
  }

  .installment-summary-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .installment-summary-card .value {
    font-size: 18px;
  }

  .installment-paid-table,
  .installment-results-table {
    display: block;
    overflow-x: auto;
  }

  .installment-info-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .btn-cancel-installment {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  .btn-back-search {
    width: 100%;
    justify-content: center;
  }

  .sell-btn-submit {
    width: 100%;
    justify-content: center;
  }

  .stock-form-section {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .installment-summary-grid {
    grid-template-columns: 1fr;
  }

  .installment-search-box {
    padding: 18px;
  }

  .installment-search-input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .installment-summary-card .value {
    font-size: 16px;
  }

  .installment-paid-table th,
  .installment-paid-table td {
    padding: 8px 10px;
    font-size: 11px;
  }
}
/* ============================================
   VEHICLE PAGES STYLES - COMPLETE
   Available vehicles, details, search
   ============================================ */

/* Vehicle Grid */
.vehicles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.vehicle-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.vehicle-card-header {
  background: #0f172a;
  color: white;
  padding: 16px 20px;
}

.vehicle-card-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.vehicle-card-body {
  padding: 16px 20px;
}

.vehicle-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.vehicle-info-label {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

.vehicle-info-value {
  font-weight: 600;
  color: #334155;
  font-size: 13px;
}

.vehicle-price {
  color: #10b981;
  font-size: 16px;
  font-weight: 700;
}

/* Vehicle Card Buttons */
.vehicle-card-buttons {
  display: flex;
  gap: 10px;
  padding: 15px 20px 20px 20px;
  flex-wrap: wrap;
  border-top: 1px solid #e2e8f0;
  margin-top: 5px;
}

.btn-sell-vehicle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

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

.btn-details-vehicle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-details-vehicle:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-manage-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-manage-stock:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Details Page */
.vehicle-detail-container {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vehicle-detail-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 30px;
}

.vehicle-detail-header h2 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.vehicle-detail-header p {
  margin: 0;
  opacity: 0.8;
  font-size: 14px;
}

.vehicle-detail-body {
  padding: 30px;
}

/* Detail Sections */
.vehicle-detail-section {
  margin-bottom: 30px;
}

.vehicle-detail-section-title {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vehicle-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.vehicle-info-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #e2e8f0;
}

.vehicle-info-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.vehicle-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

/* Status Badges */
.vehicle-status-available {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.vehicle-status-sold {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.vehicle-payment-paid {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.vehicle-payment-partial {
  background: #fed7aa;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.vehicle-payment-pending {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* Profit Colors */
.vehicle-profit-positive {
  color: #10b981;
  font-weight: 700;
}

.vehicle-profit-negative {
  color: #ef4444;
  font-weight: 700;
}

/* Documents List */
.vehicle-doc-list {
  margin: 0;
  padding-left: 20px;
}

.vehicle-doc-list li {
  margin: 5px 0;
  list-style: none;
  font-size: 13px;
}

.vehicle-doc-collected {
  color: #10b981;
  margin-right: 8px;
}

.vehicle-doc-missing {
  color: #f59e0b;
  font-style: italic;
}

/* Details Action Buttons */
.details-action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.btn-back-vehicles {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-back-vehicles:hover {
  background: #4b5563;
  transform: translateX(-4px);
}

.btn-sell-this {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

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

/* Search Page */
.vehicle-search-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  color: white;
}

.vehicle-search-hero h2 {
  margin: 0 0 10px 0;
  font-size: 28px;
  font-weight: 700;
}

.vehicle-search-hero p {
  margin: 0 0 25px 0;
  opacity: 0.8;
}

/* Search Form */
.vehicle-search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.vehicle-search-group {
  flex: 1;
  min-width: 250px;
}

.vehicle-search-input {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  background: white;
}

.vehicle-search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.vehicle-search-input::placeholder {
  color: #94a3b8;
}

/* Search Hints */
.search-hints {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 12px;
}

/* Search Buttons */
.btn-search-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3b82f6;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-search-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-clear-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-clear-search:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Results Header */
.vehicle-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.vehicle-results-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.vehicle-results-count {
  font-size: 14px;
  color: #64748b;
}

/* Search Result Card */
.vehicle-search-card {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.vehicle-card-header-search {
  background: #f8fafc;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.vehicle-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.vehicle-id {
  font-size: 12px;
  color: #64748b;
}

.vehicle-card-body {
  padding: 20px;
}

.vehicle-info-section {
  margin-bottom: 20px;
}

.vehicle-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vehicle-info-grid-small {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.vehicle-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #f1f5f9;
}

.vehicle-info-item .info-label {
  font-weight: 500;
  color: #64748b;
}

.vehicle-info-item .info-value {
  font-weight: 500;
  color: #334155;
}

/* Search Card Action Buttons */
.vehicle-card-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-view-details:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-sell-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sell-search:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* No Results */
.vehicle-no-results {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 20px;
}

.vehicle-no-results h3 {
  font-size: 24px;
  color: #334155;
  margin-bottom: 10px;
}

.vehicle-no-results p {
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .vehicles-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-search-form {
    flex-direction: column;
  }

  .btn-search-primary,
  .btn-clear-search {
    width: 100%;
    justify-content: center;
  }

  .vehicle-info-grid {
    grid-template-columns: 1fr;
  }

  .vehicle-detail-header h2 {
    font-size: 22px;
  }

  .vehicle-results-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .vehicle-info-grid-small {
    grid-template-columns: 1fr;
  }

  .vehicle-card-actions {
    flex-direction: column;
  }

  .btn-view-details,
  .btn-sell-search {
    justify-content: center;
  }

  .details-action-buttons {
    flex-direction: column;
  }

  .btn-back-vehicles,
  .btn-sell-this {
    justify-content: center;
  }
}

/* ============================================
   GENERATE CERTIFICATE PAGE STYLES
   ============================================ */

/* Search Box */
/* Search Input Styling */
.cert-search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  background: white;
}

.cert-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cert-search-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

/* Search Hints */
.cert-search-hints {
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  display: inline-block;
}

/* Responsive */
@media (max-width: 768px) {
  .cert-search-hints {
    font-size: 10px;
    display: block;
    text-align: center;
  }
}
.cert-search-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.cert-search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.cert-search-group {
  flex: 1;
}

.cert-search-group-select {
  flex: 0.5;
  min-width: 180px;
}

.cert-search-group-btn {
  flex: 0.3;
  min-width: 120px;
}

.cert-search-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  font-family: "Inter", sans-serif;
}

.cert-search-group select,
.cert-search-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}

.cert-search-group select:focus,
.cert-search-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search Button */
.cert-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

.cert-search-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

/* Results List */
.cert-results-list {
  margin-bottom: 30px;
}

.cert-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cert-results-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.cert-results-count {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Result Card */
.cert-result-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.cert-result-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cert-result-header {
  background: #f8fafc;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
}

.cert-result-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

/* Select Sale Button */
.cert-select-sale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cert-select-sale-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.cert-customer-info,
.cert-vehicle-info {
  padding: 15px 20px;
}

.cert-customer-info strong,
.cert-vehicle-info strong {
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 10px;
  display: block;
}

.cert-result-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.cert-result-details p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.cert-result-details p strong {
  display: inline;
  font-size: 13px;
}

/* Badges */
.cert-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.cert-badge-success {
  background: #d1fae5;
  color: #065f46;
}

.cert-badge-warning {
  background: #fed7aa;
  color: #92400e;
}

.cert-badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* Alert Error */
.cert-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* Certificate Section */
.cert-certificate-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cert-certificate-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0f172a;
}

/* Sale Info */
.cert-sale-info {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.cert-sale-info h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.cert-sale-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.cert-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.cert-info-label {
  font-weight: 500;
  color: #64748b;
  font-size: 13px;
}

.cert-info-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 13px;
}

.cert-remaining {
  color: #dc2626;
}

.cert-paid {
  color: #10b981;
}

/* Installment Summary */
.cert-installment-summary {
  background: #fef3c7;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.8;
}

/* Form Group */
.cert-form-group {
  margin-bottom: 20px;
}

.cert-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
}

.cert-form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
}

.cert-form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cert-form-group input[readonly] {
  background: #f1f5f9;
  cursor: not-allowed;
}

.cert-small-text {
  font-size: 11px;
  color: #6b7280;
  margin-top: 6px;
  display: block;
}

/* Action Buttons */
.cert-action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cert-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

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

.cert-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cert-clear-btn:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .cert-search-form {
    flex-direction: column;
  }

  .cert-search-group,
  .cert-search-group-select,
  .cert-search-group-btn {
    width: 100%;
  }

  .cert-search-btn {
    width: 100%;
    justify-content: center;
  }

  .cert-result-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .cert-result-details {
    grid-template-columns: 1fr;
  }

  .cert-sale-info-grid {
    grid-template-columns: 1fr;
  }

  .cert-action-buttons {
    flex-direction: column;
  }

  .cert-generate-btn,
  .cert-clear-btn {
    width: 100%;
    justify-content: center;
  }

  .cert-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* ============================================
   TAX INVOICE PAGE STYLES
   ============================================ */

/* Info Note */
.tax-info-note {
  background: #d1ecf1;
  color: #0c5460;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #17a2b8;
  font-size: 13px;
  font-family: "Inter", sans-serif;
}

/* Search Box */
.tax-search-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.tax-search-form {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tax-search-group {
  flex: 1;
}

.tax-search-group-btn {
  flex: 0.3;
  min-width: 120px;
}

.tax-search-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  font-size: 15px;
  font-family: "Inter", sans-serif;
  transition: all 0.2s ease;
  background: white;
}

.tax-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.tax-search-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
}

.tax-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
  width: 100%;
  justify-content: center;
}

.tax-search-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.tax-search-hints {
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 10px;
  display: inline-block;
}

/* Alert Error */
.tax-alert-error {
  background: #fee2e2;
  color: #991b1b;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  border-left: 4px solid #ef4444;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* Results List */
.tax-results-list {
  margin-bottom: 30px;
}

.tax-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tax-results-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
}

.tax-results-count {
  font-size: 13px;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Result Card */
.tax-result-card {
  background: white;
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.tax-result-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tax-result-header {
  background: #f8fafc;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 10px;
}

.tax-result-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.tax-result-body {
  padding: 15px 20px;
}

.tax-result-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.tax-result-info p {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

.tax-result-info p strong {
  color: #334155;
}

/* Select Sale Button */
.tax-select-sale-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #10b981;
  color: white;
  padding: 6px 14px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tax-select-sale-btn:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Certificate Section */
.tax-certificate-section {
  background: white;
  border-radius: 20px;
  padding: 24px;
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tax-certificate-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #0f172a;
}

/* Sale Info */
.tax-sale-info,
.tax-dealer-info {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
}

.tax-sale-info h4,
.tax-dealer-info h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.tax-dealer-info {
  background: #f0f9ff;
  border-left: 4px solid #3b82f6;
}

.tax-sale-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.tax-info-item {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
}

.tax-info-full {
  grid-column: 1 / -1;
}

.tax-info-label {
  font-weight: 500;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tax-info-value {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
}

/* Tax Group */
.tax-group {
  background: #fffbeb;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #fde68a;
}

.tax-group h4 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #92400e;
}

.tax-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.tax-form-group {
  margin-bottom: 10px;
}

.tax-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #92400e;
}

.tax-form-group input,
.tax-form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #fde68a;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
  background: white;
}

.tax-form-group input:focus,
.tax-form-group select:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.tax-form-group input[readonly] {
  background: #fef3c7;
  cursor: not-allowed;
}

/* Tax Preview */
.tax-preview {
  background: #fef3c7;
  border-radius: 12px;
  padding: 15px;
  margin-top: 15px;
  font-size: 13px;
  color: #92400e;
  line-height: 1.8;
}

/* Action Buttons */
.tax-action-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tax-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: white;
  padding: 12px 28px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Inter", sans-serif;
}

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

.tax-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6b7280;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tax-clear-btn:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .tax-search-form {
    flex-direction: column;
  }

  .tax-search-group-btn {
    width: 100%;
  }

  .tax-search-hints {
    font-size: 10px;
    display: block;
    text-align: center;
  }

  .tax-result-header {
    flex-direction: column;
    text-align: center;
  }

  .tax-result-info {
    grid-template-columns: 1fr;
  }

  .tax-sale-info-grid {
    grid-template-columns: 1fr;
  }

  .tax-row {
    grid-template-columns: 1fr;
  }

  .tax-action-buttons {
    flex-direction: column;
  }

  .tax-generate-btn,
  .tax-clear-btn {
    width: 100%;
    justify-content: center;
  }
}
/* ============================================
   MANAGE STOCK PAGE STYLES
   ============================================ */

/* Filter Bar */
.manage-filter-bar {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: flex-end;
  border: 1px solid #e2e8f0;
}

.manage-filter-group {
  flex: 1;
  min-width: 150px;
}

.manage-filter-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #334155;
}

.manage-filter-group input,
.manage-filter-group select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.manage-filter-btn {
  background: #0f172a;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.manage-filter-btn:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.manage-reset-btn {
  display: inline-block;
  background: #6b7280;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.manage-reset-btn:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

/* Stats Grid */
.manage-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.manage-stat-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.manage-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.manage-stat-icon {
  font-size: 32px;
}

.manage-stat-info h4 {
  margin: 0 0 4px 0;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}

.manage-stat-info .amount {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

/* Batches Header */
.manage-batches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.manage-batches-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #0f172a;
}

.manage-batch-count {
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #475569;
}

/* Batch Card */
.manage-batch-card {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.manage-batch-header {
  background: #f8fafc;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.manage-batch-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manage-batch-number {
  background: #0f172a;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.manage-batch-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.manage-batch-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #475569;
}

/* Status Badges */
.manage-status-paid {
  background: #d1fae5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.manage-status-partial {
  background: #fed7aa;
  color: #92400e;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.manage-status-pending {
  background: #fee2e2;
  color: #991b1b;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

/* Batch Body */
.manage-batch-body {
  display: none;
  padding: 20px;
}

.manage-batch-body.active {
  display: block;
}

/* Payment Details */
.manage-payment-details {
  background: #f8fafc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.manage-payment-details div {
  font-size: 13px;
  color: #475569;
}

/* Tables */
.manage-table-container {
  overflow-x: auto;
  margin-bottom: 20px;
}

.manage-vehicle-table,
.manage-history-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.manage-vehicle-table th,
.manage-history-table th {
  background: #f8fafc;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #e2e8f0;
}

.manage-vehicle-table td,
.manage-history-table td {
  padding: 10px 12px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

/* Action Buttons */
.manage-action-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.manage-btn-view {
  background: #3b82f6;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.manage-btn-view:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.manage-btn-payment {
  background: #10b981;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.manage-btn-payment:hover {
  background: #059669;
  transform: translateY(-2px);
}

/* Payment History */
.manage-payment-history {
  display: none;
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.manage-payment-history.active {
  display: block;
}

.manage-btn-close {
  background: #6b7280;
  color: white;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 15px;
}

/* Payment Form */
.manage-payment-form {
  display: none;
  background: #f0fdf4;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  border: 1px solid #d1fae5;
}

.manage-payment-form.active {
  display: block;
}

.manage-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.manage-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 12px;
  color: #065f46;
}

.manage-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #d1fae5;
  border-radius: 10px;
  font-size: 14px;
}

.manage-payment-preview {
  background: #fef3c7;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 13px;
}

.manage-form-buttons {
  display: flex;
  gap: 10px;
}

.manage-btn-submit {
  background: #10b981;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.manage-btn-cancel {
  background: #6b7280;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* Empty State */
.manage-empty-state {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 20px;
}

.manage-btn-add {
  display: inline-block;
  background: #10b981;
  color: white;
  padding: 10px 24px;
  text-decoration: none;
  border-radius: 10px;
  margin-top: 15px;
}

/* Add Batch Button */
.manage-add-batch {
  text-align: center;
  margin-top: 20px;
}

.manage-btn-add-batch {
  display: inline-block;
  background: #0f172a;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.manage-btn-add-batch:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .manage-filter-bar {
    flex-direction: column;
  }

  .manage-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .manage-batch-header {
    flex-direction: column;
    text-align: center;
  }

  .manage-batch-stats {
    justify-content: center;
  }

  .manage-payment-details {
    flex-direction: column;
    gap: 8px;
  }

  .manage-form-row {
    grid-template-columns: 1fr;
  }

  .manage-form-buttons {
    flex-direction: column;
  }

  .manage-btn-submit,
  .manage-btn-cancel {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .manage-stats-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================
   USER MANAGEMENT PAGE STYLES
   ============================================ */

/* Alert Success */
.users-alert-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
  font-size: 14px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* Table Container */
.users-table-container {
  overflow-x: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

/* Users Table */
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
}

.users-table th {
  background: #f8fafc;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #334155;
  border-bottom: 2px solid #e2e8f0;
}

.users-table td {
  padding: 12px 16px;
  font-size: 13px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.users-table tr:hover {
  background: #f8fafc;
}

/* Role Badges */
.users-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.users-role-admin {
  background: #dbeafe;
  color: #1e40af;
}

.users-role-user {
  background: #d1fae5;
  color: #065f46;
}

.users-role-pending {
  background: #fed7aa;
  color: #92400e;
}

/* Status Badges */
.users-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

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

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

/* Action Buttons */
.users-action-cell {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.users-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.users-btn-toggle {
  background: #3b82f6;
  color: white;
}

.users-btn-toggle:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.users-btn-delete {
  background: #ef4444;
  color: white;
}

.users-btn-delete:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.users-current-user {
  display: inline-block;
  padding: 6px 14px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

/* Empty State */
.users-empty-state {
  text-align: center;
  padding: 60px;
  background: white;
  border-radius: 20px;
  color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
  .users-table thead {
    display: none;
  }

  .users-table tbody tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
  }

  .users-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
  }

  .users-table td:last-child {
    border-bottom: none;
  }

  .users-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #334155;
    width: 40%;
  }

  .users-action-cell {
    justify-content: flex-end;
  }

  .users-btn {
    padding: 5px 12px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .users-btn {
    width: 100%;
    justify-content: center;
  }

  .users-action-cell {
    flex-direction: column;
  }

  .users-current-user {
    text-align: center;
  }
}
