/* ===================================================== */
/* GLOBAL */
/* ===================================================== */

body {

  background: #f4f6f9;

  font-family: Arial, Helvetica, sans-serif;
}

/* ===================================================== */
/* LAYOUT */
/* ===================================================== */

.app-layout {

  display: grid;

  grid-template-columns: 1fr 420px;

  gap: 20px;

  align-items: start;

  margin-top: 20px;
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width: 900px) {

  .app-layout {

    grid-template-columns: 1fr;
  }

  #transport-panel {

    position: relative !important;

    top: auto !important;
  }
}

/* ===================================================== */
/* EVENTS LIST */
/* ===================================================== */

#events-list {

  display: flex;

  flex-direction: column;

  gap: 20px;
}

/* ===================================================== */
/* EVENT CARD */
/* ===================================================== */

.event-card {

  background: white;

  border-radius: 18px;

  padding: 20px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.12);

  border-left: 6px solid #1565c0;

  transition: 0.2s;
}

.event-card:hover {

  transform: translateY(-2px);

  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
}

/* ========================================= */
/* EVENT HEADER */
/* ========================================= */

.event-header {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  width: 100%;
}

/* DATE */

.event-date {

  white-space: nowrap;

  font-weight: bold;

  color: #2e7d32;
}

/* TITRE */

.event-title {

  flex: 1;

  font-size: 0.95rem;

  font-weight: bold;

  color: #0d47a1;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;
}

/* STATUS */


.event-status {

  white-space: nowrap;

  font-size: 0.9rem;

  font-weight: 600;

  padding: 4px 10px;

  border-radius: 999px;

  background: #fff8e1;
}

/* ========================================= */
/* EVENT LINES */
/* ========================================= */

.event-line {

  display: flex;

justify-content: flex-start;

  align-items: center;

  gap: 20px;

  margin-top: 10px;

  flex-wrap: wrap;
}

.event-hours {

  margin-bottom: 8px;

  color: #333;
}

.event-location {

  color: #444;
}

/* ===================================================== */
/* EXTRA INFORMATIONS */
/* ===================================================== */

.event-extra {

  margin-top: 16px;

  display: flex;

  flex-direction: column;

  gap: 8px;
}

.extra-green {

  color: #2e7d32;

  font-weight: bold;
}

.extra-purple {

  color: #6a1b9a;

  font-weight: bold;
}

.extra-blue {

  color: #1565c0;

  font-weight: bold;
}

.extra-orange {

  color: #ef6c00;

  font-weight: bold;
}


.btn-transport-manager {

  width: 100%;

  margin-top: 14px;

  border: none;

  border-radius: 12px;

  padding: 12px;

  background: #1565c0;

  color: white;

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

.btn-transport-manager:hover {

  opacity: 0.9;
}

/* ===================================================== */
/* TRANSPORT PANEL */
/* ===================================================== */

#transport-panel {

  position: sticky;

  top: 20px;

  background: white;

  border-radius: 18px;

  padding: 20px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.12);

  min-height: 300px;
}

.transport-empty {

  text-align: center;

  color: #666;

  margin-top: 40px;
}

.transport-panel-title {

  font-size: 24px;

  font-weight: bold;

  margin-bottom: 18px;

  color: #1565c0;
}

/* ===================================================== */
/* TRANSPORT SECTIONS */
/* ===================================================== */

.transport-section {

  margin-top: 24px;
}

.transport-section-title {

  font-size: 18px;

  font-weight: bold;

  margin-bottom: 12px;

  color: #0d47a1;
}

.transport-user {

  padding: 12px;

  border-radius: 10px;

  background: #f5f5f5;

  margin-bottom: 10px;

  line-height: 1.5;
}

/* ===================================================== */
/* FORM */
/* ===================================================== */

#transport-type-select {

  width: 100%;

  padding: 10px;

  border-radius: 8px;

  border: 1px solid #ccc;

  margin-top: 10px;

  font-size: 15px;
}

.btn-save-transport {

  width: 100%;

  margin-top: 20px;

  border: none;

  border-radius: 12px;

  padding: 14px;

  background: #2e7d32;

  color: white;

  font-weight: bold;

  cursor: pointer;

  transition: 0.2s;
}

.btn-save-transport:hover {

  opacity: 0.9;
}

/* ===================================================== */
/* INPUTS */
/* ===================================================== */

.transport-input {

  width: 80px;

  padding: 8px;

  border-radius: 8px;

  border: 1px solid #ccc;

  font-size: 15px;
}

/* ===================================================== */
/* FLEX ROWS */
/* ===================================================== */

.transport-row {

  display: flex;

  align-items: center;

  gap: 10px;

  margin-top: 14px;

  flex-wrap: wrap;
}

/* ===================================================== */
/* LABELS */
/* ===================================================== */

.transport-label {

  font-weight: bold;

  color: #1565c0;
}

/* ===================================================== */
/* MINIBUS */
/* ===================================================== */

.minibus-card {

  background: #e3f2fd;

  border-left: 5px solid #1565c0;

  border-radius: 12px;

  padding: 14px;

  margin-bottom: 14px;
}

.minibus-title {

  font-size: 18px;

  font-weight: bold;

  color: #0d47a1;

  margin-bottom: 10px;
}

.minibus-driver {

  color: #2e7d32;

  font-weight: bold;

  margin-bottom: 10px;
}

.minibus-passenger {

  margin-left: 12px;

  margin-bottom: 4px;
}

/* ===================================================== */
/* LOADING */
/* ===================================================== */

.loading {

  text-align: center;

  padding: 40px;

  color: #666;
}

/* ===================================================== */
/* APP HEADER INFO */
/* ===================================================== */

#app-header-info {

  background: white;

  border-radius: 16px;

  padding: 16px;

  margin-bottom: 20px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

#connected-user {

  font-size: 22px;

  font-weight: bold;

  color: #1565c0;

  margin-bottom: 8px;
}

#events-counter {

  font-size: 16px;

  color: #444;
}

#events-filter {

  margin-top: 12px;

  margin-bottom: 12px;

  font-size: 15px;
}

/* ===================================================== */
/* LOGIN */
/* ===================================================== */

#login-container {

  max-width: 420px;

  margin: 30px auto;

  background: white;

  padding: 24px;

  border-radius: 18px;

  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.login-title {

  font-size: 24px;

  font-weight: bold;

  color: #1565c0;

  margin-bottom: 20px;

  text-align: center;
}

.login-input {

  width: 100%;

  max-width: 420px;

  height: 48px;

  padding: 12px 14px;

  border-radius: 12px;

  border: 1px solid #cfd8dc;

  font-size: 15px;

  box-sizing: border-box;

  display: block;

  margin: 0 auto 16px auto;

  background: white;
}

.login-btn {

  width: 100%;

  border: none;

  border-radius: 12px;

  padding: 14px;

  background: #1565c0;

  color: white;

  font-weight: bold;

  font-size: 16px;

  cursor: pointer;
}

.login-error {

  color: #c62828;

  margin-top: 12px;

  text-align: center;
}

#logout-btn {

  margin-left: 16px;

  border: none;

  border-radius: 10px;

  padding: 8px 14px;

  background: #c62828;

  color: white;

  cursor: pointer;
}

#admin-btn {

  margin-left: 10px;

  border: none;

  border-radius: 10px;

  padding: 8px 14px;

  background: #1565c0;

  color: white;

  cursor: pointer;
}

/* ===================================================== */
/* LOGIN SEPARATOR */
/* ===================================================== */

.login-separator {

  height: 1px;

  background: #e0e0e0;

  max-width: 420px;

  margin: 10px auto 18px auto;
}

/* ===================================================== */
/* PASSWORD CONTAINER */
/* ===================================================== */

.password-wrapper {

  position: relative;

  max-width: 420px;

  margin: auto;
}

/* ===================================================== */
/* PASSWORD TOGGLE */
/* ===================================================== */

.password-toggle {

  position: absolute;

  right: 14px;

  top: 14px;

  cursor: pointer;

  font-size: 14px;

  color: #1565c0;

  user-select: none;
}

/* ===================================================== */
/* FORGOT PASSWORD */
/* ===================================================== */

.forgot-password {

  text-align: center;

  margin-top: 4px;

  margin-bottom: 18px;

  color: #1565c0;

  cursor: pointer;

  font-size: 14px;

  text-decoration: underline;
}

.forgot-password:hover {

  opacity: 0.8;
}

/* ========================================= */
/* STATS */
/* ========================================= */

.event-stats {

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 40px;

  margin-top: 18px;

  font-size: 18px;

  font-weight: bold;
}

.stat-green {

  color: #2e7d32;
}

.stat-red {

  color: #c62828;
}

.stat-orange {

  color: #ef6c00;
}

/* ========================================= */
/* ACTIONS */
/* ========================================= */

.event-actions {

  display: flex;

  gap: 12px;

  margin-top: 16px;
}

.btn-participe,
.btn-indispo {

  flex: 1;

  border: none;

  border-radius: 10px;

  padding: 10px;

  font-weight: bold;

  cursor: pointer;
}

.btn-participe {

  background: #e8f5e9;

  color: #2e7d32;
}

.btn-indispo {

  background: #ffebee;

  color: #c62828;
}

/* ========================================= */
/* USER STATUS */
/* ========================================= */

.my-status {

  margin-top: 12px;

  text-align: center;

  font-weight: 600;

  color: #37474f;
}

/* ========================================= */
/* PROGRESS BAR */
/* ========================================= */

.event-progress {

  display: flex;

  width: 100%;

  height: 14px;

  border-radius: 999px;

  overflow: hidden;

  margin-top: 12px;

  background: #eceff1;
}

.progress-green {

  background: #2e7d32;
}

.progress-red {

  background: #c62828;
}

.progress-orange {

  background: #ef6c00;
}

.event-progress {

  display: flex;

  width: 100%;

  height: 10px;

  border-radius: 999px;

  overflow: hidden;

  margin-top: 12px;

  background: #eceff1;
}

.progress-green {

  background: #2e7d32;
}

.progress-red {

  background: #c62828;
}

.progress-orange {

  background: #ef6c00;
}

/* ========================================= */
/* ACTIVE BUTTONS */
/* ========================================= */

.btn-active-green {

  background: #2e7d32 !important;

  color: white !important;
}

.btn-active-red {

  background: #c62828 !important;

  color: white !important;
}


