/* ============================================
   GLOBAL BASE STYLES
============================================ */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #eaedf1;
  color: #111;
}

.center { text-align: center; }

.container {
  max-width: 480px;
  margin: 30px auto;
  padding: 20px;
}

h1 {
  text-align: center;
  font-size: 34px;
  margin-bottom: 10px;
}

img {
  display: block;
  margin: 0 auto 20px;
  width: 150px;
  object-fit: cover;
  border-radius: 8px;
}

button { cursor: pointer; }


/* ============================================
   BUTTON STYLES
============================================ */

.btn-main {
  background: #007AFF;
  color: white;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
}

.btn-join {
  background: #34c759;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
}

.btn-small {
  background: #007AFF;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
}

.cancel-btn { background: #aaa; margin-top: 8px; }


/* ============================================
   INPUT + SELECT FIELDS
============================================ */
input, select {
  width: 100%;
  padding: 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
}


/* ============================================
   FILTER + LIST SECTIONS
============================================ */

.filter-row {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

hr { margin: 15px 0; }

.ride-card {
  background: white;
  border-radius: 15px;
  padding: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 0.6fr 1fr;
  align-items: center;
  gap: 10px;
}

.left-col { font-size: 14px; }


/* ============================================
   MODAL BACKGROUND + CONTENT BOX
============================================ */

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
}

.modal {
  background: white;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


/* ============================================
   PAX BAR (Used in Ride Details)
============================================ */

.pax-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.pax-bar svg { width: 26px; height: 26px; fill: #ccc; }
.pax-bar .filled svg { fill: #4CAF50; }


/* ============================================
   MEMBER LIST + ACTION BUTTONS
============================================ */

.full-text {
  color: #888;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f4f4f4;
  text-align: center;
}

.right-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.member-list {
  background: #fafafa;
  border-radius: 8px;
  padding: 8px;
  margin-top: 8px;
  border: 1px solid #eee;
  font-size: 13px;
}

.icon-btn {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 6px;
}

.btn-delete {
  background: #ff3b30;
  color: white;
  padding: 6px 8px;
  border: none;
  border-radius: 8px;
}

.pax-label { font-size: 12px; margin-top: 4px; color: #555; }

.btn-joined {
  background: #888;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
}


/* ============================================
   MENU ICON
============================================ */

.icon-menu {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 40;
}


/* ============================================
   EDIT PROFILE FIELD SPACING
============================================ */

#editProfileBg .modal input { margin-bottom: 6px; }


/* ============================================
   RESPONSIVE CHANGES
============================================ */

@media (max-width:420px) {
  .ride-card { grid-template-columns: 1fr 0.6fr 0.9fr; }
  .icon-menu { top: 12px; left: 12px; }
}


/* ============================================
   CREATE BUTTON EXTRA STYLE
============================================ */

.btn-create {
  backdrop-filter: blur(10px);
  background: #007aff;
  padding: 10px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.5);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 25px rgba(0,0,0,0.1);
  transition: 0.2s ease;
}

.btn-create:hover {
  background: rgba(35, 49, 255, 0.4);
  transform: translateY(-2px);
}

.btn-create:active { transform: scale(0.97); }


/* ============================================
   FORM ROW (Original Structure)
   → This block was kept intact for compatibility
============================================ */

.form-row {
  display: block;            /* stacked layout */
  margin: 10px 0;
}

.form-row label {
  display: block;            /* label on top */
  margin-bottom: 4px;        /* spacing */
  width: 100%;               /* full-width label */
}

.form-row input,
.form-row select {
  width: 100% !important;    /* full width fields */
}


/* ============================================
   INDIVIDUAL FIELD WIDTH CONTROL
   → You adjust only these values
============================================ */

#newFrom        { width: 100% !important; }
#newTo          { width: 100% !important; }
#newDate        { width: 95% !important; }
#newTime        { width: 95% !important; }
#newInitialPax  { width: 100% !important; }
