:root {
  --primary: #00A651;
  --primary-dark: #008B44;
  --primary-light: #E8F5E9;
  --accent: #FF6B35;
  --accent-light: #FFF3E0;
  --dark: #1A1A1A;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --border: #ddd;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--light);
  color: var(--dark);
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 { margin: 0; font-size: 1.4rem; }
header nav a {
  color: #fff;
  text-decoration: none;
  margin-right: 15px;
  font-weight: 500;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: var(--shadow);
}

h2 { margin-top: 0; color: var(--primary-dark); }

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

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
}

input[type="checkbox"] {
  width: auto;
  margin-left: 8px;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}

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

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filters .form-group {
  flex: 1 1 160px;
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th, td {
  text-align: right;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--primary-light);
  font-weight: 600;
}

tr:hover { background: #f1f1f1; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-lead { background: #e0e0e0; color: #555; }
.status-in_progress { background: #fff3cd; color: #856404; }
.status-signed { background: #d4edda; color: #155724; }
.status-customer { background: #c3e6cb; color: #155724; }

.contract-body {
  background: #fff;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #ccc;
  font-size: 1.1rem;
  line-height: 1.8;
}

.login-box {
  max-width: 360px;
  margin: 80px auto;
}

.login-box h2 { text-align: center; }

.small { font-size: 0.9rem; color: #666; }

.passenger-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.passenger-row input { flex: 1; }

.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mb-2 { margin-bottom: 10px; }
