/* Moto-Logistiek Rijschool Dirk — Mobile First & Print Stylesheet */
:root {
  --primary: #0563c1;
  --primary-dark: #03458a;
  --secondary: #f4f6f9;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--secondary);
  color: var(--text-dark);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Nav */
header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 1rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: background-color 0.15s;
}

.nav-links a:hover {
  background-color: #f1f5f9;
}

.nav-links a.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.nav-links a.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* Container */
.container {
  max-width: 1100px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  width: 100%;
  flex: 1;
}

/* Card */
.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-AM { background-color: #fef3c7; color: #92400e; }
.badge-A1 { background-color: #e0f2fe; color: #0369a1; }
.badge-A2 { background-color: #e0e7ff; color: #4338ca; }
.badge-A  { background-color: #f3e8ff; color: #7e22ce; }

.status-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.status-Beschikbaar { background-color: #dcfce7; color: #15803d; }
.status-In-les { background-color: #dbeafe; color: #1d4ed8; }
.status-Onderhoud { background-color: #fee2e2; color: #b91c1c; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-dark); }
.btn-outline:hover { background: #f8fafc; }

/* Alerts */
.alert {
  padding: 0.85rem 1.2rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 99, 193, 0.15);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
th {
  background-color: #f8fafc;
  font-weight: 600;
  color: var(--text-muted);
}
tr:hover {
  background-color: #f8fafc;
}

/* Print Styles */
@media print {
  header, .no-print, .btn, .nav-links {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .card {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .print-header {
    display: block !important;
    margin-bottom: 2rem;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
  }
  .sticker-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5cm !important;
  }
  .sticker-card {
    page-break-inside: avoid;
    border: 2px solid #000 !important;
    padding: 1cm !important;
    text-align: center;
  }
}
