/* ============================================================
   style.css — Design simple et propre pour l'ERP IT CAMPUS
   ============================================================ */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
  background: #f4f6f9;
  color: #1f2937;
}

.topbar {
  background: #1f3864;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.brand { font-weight: 700; font-size: 20px; }
.brand span { color: #7ea6e0; }

.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-link {
  color: #dbe4f3;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,0.15); color: white; }

.user-box { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.btn-logout {
  background: #c0392b;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
}

.container {
  max-width: 900px;
  margin: 30px auto;
  padding: 0 16px;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

h1 { font-size: 24px; margin-top: 0; color: #1f3864; }
h2 { font-size: 19px; color: #1f3864; }

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 380px;
}

.login-card h1 { text-align: center; }

label { display: block; margin: 12px 0 4px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=password], input[type=email], input[type=tel], textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}
textarea { resize: vertical; min-height: 70px; }

button, .btn {
  display: inline-block;
  background: #2e74b5;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
}
button:hover, .btn:hover { background: #235a8f; }

.btn-secondary { background: #6b7280; }
.btn-secondary:hover { background: #4b5563; }
.btn-danger { background: #c0392b; }
.btn-danger:hover { background: #962d22; }

.error-msg {
  background: #fdecea;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}
.success-msg {
  background: #e8f6ee;
  color: #1e7a45;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e5e7eb; font-size: 14px; }
th { color: #6b7280; font-size: 13px; text-transform: uppercase; }
tr:hover { background: #f9fafb; }

.actions-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.actions-cell { display: flex; gap: 8px; }
.actions-cell form { margin: 0; }
.actions-cell .btn, .actions-cell button { padding: 6px 12px; font-size: 13px; margin-top: 0; }

.empty-state { color: #6b7280; text-align: center; padding: 30px 0; }

@media (max-width: 600px) {
  .topbar { flex-direction: column; align-items: flex-start; }
}
