/* ===== 화물차 계기판 다크 테마 FINAL ===== */

body {
  font-family: "Noto Sans KR", sans-serif;
  margin: 0;
  background: radial-gradient(circle at top, #0f172a, #020617 70%);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 560px;
  margin: auto;
  padding: 16px;
}

/* ===== 타이틀 ===== */
.title {
  text-align: center;
  font-size: 30px;
  margin-bottom: 18px;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56,189,248,.9);
  letter-spacing: .5px;
}

/* ===== 사용자 바 ===== */
.userbar {
  display: flex;
  flex-direction: column;
  gap: 10px;

  background: linear-gradient(145deg,#020617,#0f172a);
  border: 1px solid #1e293b;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 16px;

  box-shadow:
    inset 0 0 16px rgba(56,189,248,.22),
    0 6px 14px rgba(0,0,0,.4);
}

.userinfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.username {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
}

.truck {
  font-size: 17px;
  font-weight: 700;
  color: #22c55e;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(34,197,94,.9);
}

#logoutBtn {
  align-self: stretch;
}

/* ===== 네비 ===== */
.navbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.navBtn {
  flex: 1;
  padding: 14px 6px;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: linear-gradient(145deg,#020617,#0f172a);
  color: #94a3b8;
  font-size: 15px;
  white-space: nowrap;

  box-shadow: inset 0 0 6px rgba(148,163,184,.15);
  transition: all .15s ease;
}

.navBtn:hover {
  color: #cbd5f5;
}

.navBtn.active,
.navBtn:active {
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow:
    inset 0 0 8px rgba(56,189,248,.6),
    0 0 6px rgba(56,189,248,.3);
}

/* ===== 카드 ===== */
.card {
  background: linear-gradient(145deg,#020617,#020617 60%,#0f172a);
  border: 1px solid #1e293b;
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 16px;

  box-shadow:
    inset 0 0 14px rgba(56,189,248,.08),
    0 4px 10px rgba(0,0,0,.25);
}

h2 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #38bdf8;
}

/* ===== 입력 ===== */
input, select {
  width: 100%;
  font-size: 20px;
  padding: 14px;
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #f8fafc;
  box-sizing: border-box;

  transition: all .15s ease;
}

input::placeholder {
  color: #64748b;
}

input:focus, select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 12px rgba(56,189,248,.7);
}

/* ===== 버튼 ===== */
.btn {
  width: 100%;
  font-size: 20px;
  padding: 14px;
  margin-top: 8px;
  border-radius: 12px;
  border: none;
  transition: all .15s ease;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(145deg,#2563eb,#38bdf8);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(56,189,248,.8);
}

.btn.primary:hover {
  box-shadow: 0 0 18px rgba(56,189,248,1);
}

.btn.primary:active {
  transform: translateY(1px);
  box-shadow: 0 0 8px rgba(56,189,248,.6);
}

.btn.secondary {
  background: #020617;
  color: #94a3b8;
  border: 1px solid #1e293b;
}

.btn.secondary:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

.btn.small {
  font-size: 16px;
  padding: 10px;
}

.btn.big {
  font-size: 22px;
  padding: 16px;
}

/* ===== 리스트 ===== */
#tripList,
#tripFullList,
#expList {
  list-style: none;
  padding: 0;
  margin: 0;
}

#tripList li,
#tripFullList li,
#expList li {
  background: #020617;
  border: 1px solid #1e293b;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 18px;
  color: #e2e8f0;

  display: flex;
  justify-content: space-between;
  align-items: center;

  box-shadow: inset 0 0 6px rgba(56,189,248,.1);
}

/* 삭제/수정 버튼 */
.item-actions {
  display: flex;
  gap: 6px;
}

.item-btn {
  border: 1px solid #1e293b;
  background: #020617;
  color: #94a3b8;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 14px;
  cursor: pointer;
}

.item-btn:hover {
  color: #38bdf8;
  border-color: #38bdf8;
}

/* ===== 요약 ===== */
#summary {
  font-size: 20px;
  line-height: 1.7;
  color: #f8fafc;
}

/* ===== 스크롤 ===== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

/* ===== 모바일 ===== */
@media (max-width: 420px) {
  .title { font-size: 26px; }
  .username { font-size: 22px; }
  .truck { font-size: 16px; }
  input, select, .btn { font-size: 18px; }
  .navBtn { font-size: 14px; }
}