/* static/css/panel.css – 2025-06-08
   -- key changes --------------------------------------------------------
   • Panel width  : min(64vw, 336px)         ⟵ ~30 % narrower
   • Translucency : rgba(255,255,255,0.80)   ⟵ lighter glass effect
   ---------------------------------------------------------------------- */

/**************************
 * 1. PANEL POSITIONING
 *************************/
 #panel {
  position: absolute;
  bottom: 1rem;
  left:   1rem;

  /* ↓-- narrower: 64 % of viewport or max 336 px (was 92 % / 480 px) */
  width: min(64vw, 336px);

  max-height: 80vh;
  z-index: 10030;
  overflow: visible;
}

/**************************
 * 2. INNER CARD LOOK & FEEL
 *************************/
#inner-panel {
  position: relative;
  padding: 0.75rem 1rem;

  /* ↓-- more see-through (alpha .80 instead of .95) */
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(10px);

  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: all .3s ease;
}

/**************************
 * 3. DAY-CONTROLS ROW
 *************************/
#day-controls {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

/**************************
 * 4. TRIP FORM (inputs + button)
 *************************/
#trip-form input[type="text"],
#trip-form input[type="number"] {
  width: 100%;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}

#trip-form button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 4px;
  background: #55a9d8;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 -2px 2px rgba(0, 0, 0, .15);
}

/**************************
 * 5. MINIMISE / EXPAND BUTTON
 *************************/
#minimize-btn {
  position: absolute;
  top:  -14px;
  right: -14px;
  width: 28px;
  height: 28px;

  border: none;
  border-radius: 50%;
  background: #007bff;
  color: #fff;
  font-size: 20px;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  z-index: 10040;
  transition: transform .1s;
}
#minimize-btn:active { transform: scale(0.9); }

/**************************
 * 6. COLLAPSED STATE
 *************************/
#panel.minimized #inner-panel {
  padding: 0.5rem 0.75rem;
  width: 100%;                /* keep whatever width we have */
}

/* show only the day controls when collapsed */
#panel.minimized #inner-panel > *:not(#day-controls):not(#minimize-btn) {
  display: none !important;
}
#panel.minimized #day-controls { margin-bottom: 0; }

/**************************
 * 7. OPTIONAL GLOBAL HELPERS
 *************************/
#app-container { display: flex; flex-direction: column; min-height: 100vh; }
header        { background:#007bff; color:#fff; padding:1rem; text-align:center; }
h1            { font-size:1.8rem; margin:0; }
footer        { background:#f8f9fa; }