/* assets/css/main.css - 메인 스타일시트 */

/* 폰트 정의 */
@font-face {
  font-family: 'Malang Bold';
  src: url('../../src/fonts/MalangmalangB.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'NanumSquare';
  src: url('../../src/fonts/NanumSquareL.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'NanumSquare';
  src: url('../../src/fonts/NanumSquareR.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'NanumSquare';
  src: url('../../src/fonts/NanumSquareB.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'NanumSquare';
  src: url('../../src/fonts/NanumSquareEB.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

/* 기본 리셋 및 변수 */
:root {
  /* 컬러 팔레트 - 아쿠아 계열로 통일 */
  --primary-color: #00d4ff;      /* 밝은 아쿠아 */
  --secondary-color: #00b4d8;    /* 아쿠아 블루 */
  --success-color: #00bcd4;      /* 아쿠아 그린 */
  --warning-color: #00acc1;      /* 아쿠아 블루 (경고용) */
  --danger-color: #0097a7;       /* 진한 아쿠아 (위험용) */
  --error-color: #dc3545;        /* 빨간색 (에러용) */
  --info-color: #40c4ff;         /* 라이트 블루 */
  --fluorescent-color: #00d4aa;  /* 아쿠아색 (실행 상태용) */
  --light-color: #e0f7fa;        /* 매우 밝은 아쿠아 */
  --dark-color: #004d40;         /* 매우 진한 아쿠아 */
  
  /* 배경색 - 아쿠아 계열로 변경 */
  --bg-primary: #e0f7fa;         /* 매우 밝은 아쿠아 */
  --bg-secondary: #b2ebf2;       /* 밝은 아쿠아 */
  --bg-tertiary: #80deea;        /* 중간 아쿠아 */
  
  /* 텍스트 색상 - 하얀색으로 변경 */
  --text-primary: #ffffff;       /* 하얀색 */
  --text-secondary: #f1f5f9;     /* 밝은 하얀색 */
  --text-muted: #e2e8f0;         /* 연한 하얀색 */
  
  /* 경계선 - 아쿠아 계열로 변경 */
  --border-color: #4dd0e1;       /* 아쿠아 계열 */
  --border-radius: 6px;
  --border-radius-sm: 4px;
  --border-radius-lg: 8px;
  
  /* 그림자 - 아쿠아 계열로 변경 */
  --shadow-sm: 0 2px 4px rgba(0, 212, 255, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 212, 255, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 212, 255, 0.15);
  
  /* 간격 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* 폰트 */
  --font-family: 'NanumSquare', 'Malgun Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  
  /* 레이아웃 */
  --sidebar-width: 420px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

/* 로딩 화면 */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-content {
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto var(--spacing-md);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 메인 컨테이너 */
.main-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 사이드바 헤더 */
.sidebar-header {
  padding: var(--spacing-lg);
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin: calc(-1 * var(--spacing-md));
  margin-bottom: var(--spacing-md);
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.sidebar-header h1 {
  font-size: 64px;
  font-weight: 700;
  font-family: 'Malang Bold', 'NanumSquare', 'Malgun Gothic', sans-serif;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.sidebar-header h1 i {
  color: #ffffff;
  font-size: 68px;
  margin-right: var(--spacing-sm);
}



/* 콘텐츠 래퍼 */
.content-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* 사이드바 */
.sidebar {
  width: var(--sidebar-width);
  background: #1a1a2e;
  border-right: 1px solid #2d3748;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
  height: 100vh;
  position: relative;
  z-index: 100;
}

.sidebar-content {
  flex: 1;
  padding: var(--spacing-md);
  color: #ffffff;
}

/* 지도 섹션 */
.map-section {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-width: 0; /* flexbox 오버플로우 방지 */
  min-height: 0; /* flexbox 오버플로우 방지 */
}

.map-container {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1;
}

/* 지도 오버레이 */
.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.map-overlay > * {
  pointer-events: auto;
}

/* 미니맵 */
.minimap {
  position: absolute;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 200px;
  height: 150px;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
}

/* 버튼 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid transparent;
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: 500;
  font-family: 'NanumSquare', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* 버튼 크기 */
.btn-sm {
  padding: var(--spacing-xs) var(--spacing-sm);
  font-size: var(--font-size-xs);
}

.btn-lg {
  padding: var(--spacing-md) var(--spacing-lg);
  font-size: var(--font-size-lg);
}

.btn-block {
  width: 100%;
}

/* 버튼 색상 */
.btn-primary {
  background: #1e3a8a;
  color: white;
  border-color: #1e3a8a;
}

.btn-primary:hover:not(:disabled) {
  background: #1e40af;
  border-color: #1e40af;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: #6b7280;
  color: white;
  border-color: #6b7280;
}

.btn-secondary:hover:not(:disabled) {
  background: #4b5563;
  border-color: #4b5563;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success-color);
  color: white;
  border-color: var(--success-color);
}

.btn-success:hover:not(:disabled) {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-warning {
  background: var(--warning-color);
  color: white;
  border-color: var(--warning-color);
}

.btn-warning:hover:not(:disabled) {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
  border-color: var(--danger-color);
}

.btn-danger:hover:not(:disabled) {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-info {
  background: var(--info-color);
  color: white;
  border-color: var(--info-color);
}

.btn-info:hover:not(:disabled) {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 아웃라인 버튼 */
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  background: transparent;
}

.btn-outline-secondary:hover:not(:disabled) {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-info {
  color: var(--info-color);
  border-color: var(--info-color);
  background: transparent;
}

.btn-outline-info:hover:not(:disabled) {
  background: var(--info-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* 시뮬레이션 실행 중 버튼 스타일 */
.btn-running {
  background: var(--fluorescent-color) !important;
  color: white !important;
  border-color: var(--fluorescent-color) !important;
  box-shadow: 0 0 20px rgba(0, 212, 170, 0.4) !important;
  animation: pulse-glow 2s ease-in-out infinite alternate;
}

.btn-running:hover:not(:disabled) {
  background: var(--fluorescent-color) !important;
  border-color: var(--fluorescent-color) !important;
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 212, 170, 0.6) !important;
}

@keyframes pulse-glow {
  from {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.4);
  }
  to {
    box-shadow: 0 0 30px rgba(0, 212, 170, 0.8);
  }
}



/* 폼 요소 */
.form-control {
  display: block;
  width: 100%;
  padding: var(--spacing-md) var(--spacing-md);
  font-size: var(--font-size-md);
  line-height: 1.5;
  font-family: 'NanumSquare', sans-serif;
  color: #1f2937;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  border-color: #60a5fa;
  outline: 0;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.25);
}

.form-control:disabled {
  background-color: #1a1a2e;
  opacity: 1;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  font-family: 'NanumSquare', sans-serif;
  color: #374151;
}

/* 체크박스 및 라디오 */
input[type="checkbox"],
input[type="radio"] {
  margin-right: var(--spacing-xs);
}

/* 범위 입력 */
input[type="range"] {
  width: 100%;
  margin: var(--spacing-xs) 0;
}

/* 검색 박스 */
.search-box {
  position: relative;
  margin-bottom: var(--spacing-md);
}

.search-box input {
  padding-right: 40px;
}

.search-box i {
  position: absolute;
  right: var(--spacing-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  pointer-events: none;
}

/* 뱃지 */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: var(--font-size-xs);
  font-weight: 600;
  font-family: 'NanumSquare', sans-serif;
  background: #1a1a2e;
  color: white;
  border-radius: 6px;
  min-width: 40px;
  text-align: center;
  line-height: 1;
  height: 28px;
}

/* 상태 표시 */
.status-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: var(--spacing-sm);
}

.status-indicator.running {
  background: var(--fluorescent-color);
  animation: pulse 2s infinite;
  box-shadow: 0 0 8px rgba(0, 255, 65, 0.6);
}

.status-indicator.paused {
  background: #9ca3af;
  box-shadow: 0 0 8px rgba(156, 163, 175, 0.6);
}

.status-indicator.stopped {
  background: var(--secondary-color);
  box-shadow: 0 0 8px rgba(0, 180, 216, 0.6);
}

         

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 빈 상태 */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  color: #ffffff;
  font-weight: 600;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
  opacity: 0.5;
  color: #ffffff;
}

.empty-state p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  font-family: 'NanumSquare', sans-serif;
  color: #ffffff;
  font-weight: 600;
}

/* 리스트 컨테이너 */
.list-container {
  max-height: none;
  overflow: visible;
  border: 1px solid #2d3748;
  border-radius: var(--border-radius-sm);
  background: #16213e;
}

.list-container:empty::after {
  content: "항목이 없습니다.";
  display: block;
  text-align: center;
  padding: var(--spacing-lg);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-family: 'NanumSquare', sans-serif;
  font-weight: 600;
}

/* 토스트 알림 */
.toast-container {
  position: fixed;
  top: var(--spacing-lg);
  left: var(--sidebar-width); /* 사이드바 끝에 딱 맞게 */
  right: var(--spacing-lg); /* 오른쪽 화면 끝에서 약간의 여백 */
  z-index: 150; /* 라이더 화면(200)보다 낮게 */
  display: none; /* 토스트 알림 숨김 */
  flex-direction: column;
  gap: var(--spacing-sm);
}

.toast {
  background: #16213e;
  border: 1px solid #2d3748;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-md) var(--spacing-lg);
  position: relative;
  transform: translateY(-100%);
  opacity: 0;
  transition: all var(--transition-normal);
  color: #ffffff;
  width: 100%;
  text-align: center;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid var(--success-color);
}

.toast-warning {
  border-left: 4px solid var(--warning-color);
}

.toast-danger {
  border-left: 4px solid var(--danger-color);
}

.toast-info {
  border-left: 4px solid var(--info-color);
}

.toast-error {
  border-left: 4px solid var(--error-color);
}

/* 반응형 디자인 */
      @media (max-width: 768px) {
         :root {
      --sidebar-width: 360px;
      --spacing-md: 12px;
      --spacing-lg: 16px;
    }
    
    .sidebar-header h1 {
      font-size: 36px;
    }
    
    .sidebar-header h1 i {
      font-size: 40px;
    }
 
   

  .toast-container {
    left: var(--spacing-sm);
    right: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-height: 50vh;
    order: 2;
  }

  .map-section {
    order: 1;
    min-height: 50vh;
  }
}

/* 폼 도움말 및 필수 표시 스타일 */
.required {
  color: var(--error-color);
  font-weight: bold;
}

.form-help {
  display: block;
  margin-top: var(--spacing-xs);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.4;
}

.form-help-box {
  border: 1px solid #2d3748;
  border-radius: var(--border-radius);
  background: #16213e;
  padding: var(--spacing-md);
  color: #ffffff;
}

.form-help-box strong {
  color: var(--info-color);
}

.form-help-box i {
  margin-right: var(--spacing-xs);
}

/* 라이더 목록 개선 */
.rider-item .rider-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.rider-info-item {
  background: rgba(0, 212, 255, 0.1);
  padding: 2px 6px;
  border-radius: var(--border-radius-sm);
  font-size: var(--font-size-xs);
  color: var(--text-secondary);
}

/* 버튼 그룹 개선 */
.list-item-actions {
  display: flex;
  gap: var(--spacing-xs);
  align-items: center;
}

.list-item-actions .btn {
  padding: 4px 8px;
  font-size: var(--font-size-xs);
}

.list-item-actions .btn i {
  font-size: 10px;
}

/* 네이버 지도 로고 숨김 */
.map-container .naver-logo,
.map-container a[href*="naver.com"] img,
#map a[href*="naver.com"] img {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* 라이더 상세 패널 (스마트폰 비율) */
.rider-detail-panel {
  position: fixed;
  right: -600px; /* 초기 위치: 화면 밖 */
  top: 0;
  width: 580px; /* 더 넓게 */
  height: 100vh;
  background: #1a1a2e;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
}

.rider-detail-panel.active {
  right: 0; /* 패널이 보일 때 */
}

.rider-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  background: #16213e;
  border-bottom: 1px solid #2d3748;
}

.rider-detail-header h3 {
  color: #ffffff;
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.close-panel-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.close-panel-btn:hover {
  background: #2d3748;
  color: var(--primary-color);
}

/* 라이더 탭 네비게이션 */
.rider-tabs {
  display: flex;
  background: #16213e;
  border-bottom: 2px solid #2d3748;
}

.rider-tab {
  flex: 1;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-bottom: 3px solid transparent;
  position: relative;
}

.rider-tab i {
  font-size: 20px;
  transition: all 0.3s ease;
}

.rider-tab:hover {
  background: #0f3460;
  color: #ffffff;
}

.rider-tab.active {
  color: #60a5fa;
  background: #1a1a2e;
  border-bottom-color: #60a5fa;
}

.rider-tab.active i {
  color: #60a5fa;
  transform: scale(1.1);
}

.rider-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* 탭 콘텐츠 */
.rider-tab-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.rider-tab-content.active {
  display: flex;
  flex-direction: column;
}

/* 지도 탭은 스크롤 없이 전체 영역 사용 */
.rider-tab-content#mapTab {
  overflow: hidden;
}

/* 프로필 탭 스타일 */
.rider-profile-container {
  padding: var(--spacing-lg);
  overflow-y: auto;
}

.rider-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
  border-radius: 12px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.rider-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
  flex-shrink: 0;
}

.rider-profile-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rider-profile-name h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'NanumSquare', sans-serif;
}

.rider-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #1a1a2e;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  animation: proBadgePulse 2s ease-in-out infinite;
}

@keyframes proBadgePulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
  }
  50% {
    box-shadow: 0 2px 16px rgba(251, 191, 36, 0.8);
  }
}

.rider-pro-badge i {
  font-size: 14px;
}

.rider-profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #16213e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
  border-color: #60a5fa;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #60a5fa;
  flex-shrink: 0;
}

.stat-icon.delivery {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
}

.stat-icon.experience {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}

.stat-icon.contribution {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.stat-content {
  flex: 1;
}

.stat-label {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'NanumSquare', sans-serif;
}

/* 경험치 프로그레스 섹션 */
.experience-progress-section {
  background: #16213e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.experience-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.experience-info i {
  font-size: 20px;
  color: #fbbf24;
}

.experience-label {
  font-size: 14px;
  font-weight: 600;
  color: #9ca3af;
}

.experience-values {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-left: auto;
  font-family: 'NanumSquare', sans-serif;
}

.experience-values span {
  color: #fbbf24;
}

.contribution-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(168, 85, 247, 0.2);
  border-radius: 8px;
}

.contribution-badge i {
  font-size: 16px;
  color: #a855f7;
}

.contribution-badge span {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  font-family: 'NanumSquare', sans-serif;
}

.contribution-badge small {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
}

.experience-bar-container {
  position: relative;
}

.experience-bar {
  width: 100%;
  height: 24px;
  background: #0f3460;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.experience-fill {
  height: 100%;
  background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  border-radius: 12px;
  transition: width 0.5s ease;
  position: relative;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.experience-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.next-level-text {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
}

.next-level-text span {
  color: #fbbf24;
  font-weight: 700;
}

/* 현재 주문 정보 섹션 */
.current-order-section {
  background: #16213e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.current-order-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.current-order-section h4 i {
  color: #60a5fa;
  font-size: 18px;
}

.current-order-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  align-self: flex-start;
}

.order-status-badge.pickup {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.order-status-badge.delivering {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.order-route-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.order-location {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #0f3460;
  border-radius: 8px;
}

.location-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-icon.pickup {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #ffffff;
}

.location-icon.delivery {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.location-icon i {
  font-size: 18px;
}

.location-text {
  text-align: center;
}

.location-label {
  font-size: 11px;
  color: #9ca3af;
  margin-bottom: 4px;
  white-space: nowrap;
}

.location-value {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.route-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 20px;
  flex-shrink: 0;
  padding: 0 8px;
}

.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid #2d3748;
}

.order-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9ca3af;
}

.order-detail-item i {
  color: #60a5fa;
  font-size: 14px;
}

.order-detail-item strong {
  color: #ffffff;
  font-weight: 600;
}

/* 내가 제보한 이슈 섹션 */
.my-posts-section {
  margin-bottom: 24px;
}

.my-posts-section h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.my-posts-section h4 i {
  color: #a855f7;
}

.my-posts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

/* 스크롤바 스타일 */
.my-posts-list::-webkit-scrollbar {
  width: 6px;
}

.my-posts-list::-webkit-scrollbar-track {
  background: #16213e;
  border-radius: 3px;
}

.my-posts-list::-webkit-scrollbar-thumb {
  background: #2d3748;
  border-radius: 3px;
}

.my-posts-list::-webkit-scrollbar-thumb:hover {
  background: #60a5fa;
}

/* 커뮤니티 탭 스타일 */
.community-container {
  padding: var(--spacing-lg);
  overflow-y: auto;
  height: 100%;
}

.community-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #2d3748;
}

.community-header h4 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.community-header i {
  color: #60a5fa;
}

.community-subtitle {
  margin: 8px 0 0 0;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
}

.community-posts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-posts {
  text-align: center;
  padding: 48px 24px;
  color: #9ca3af;
}

.no-posts i {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.no-posts p {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #e2e8f0;
}

.no-posts small {
  font-size: 12px;
  color: #9ca3af;
}

.community-post {
  background: #16213e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  padding: 16px;
  transition: all 0.3s ease;
}

.community-post:hover {
  border-color: #60a5fa;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.community-post.my-post {
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.05);
}

.community-post.my-post .post-author {
  color: #a855f7;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.post-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-author {
  font-size: 13px;
  font-weight: 600;
  color: #60a5fa;
}

.post-time {
  font-size: 11px;
  color: #9ca3af;
}

.post-issue-type {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-issue-type.flood {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.post-issue-type.congestion {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.post-issue-type.accident {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.post-issue-type.construction {
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
}

.post-content {
  margin-bottom: 12px;
}

.post-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 8px;
}

.post-location i {
  color: #60a5fa;
  font-size: 12px;
}

.post-description {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.post-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid #2d3748;
}

.post-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #9ca3af;
}

.post-stat i {
  font-size: 14px;
}

.post-stat.helped {
  color: #34d399;
}

.post-stat.helped i {
  color: #34d399;
}

/* 지도 알림 영역 */
.map-notifications {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.map-notification {
  padding: 12px 16px;
  background: rgba(26, 26, 46, 0.95);
  border-left: 4px solid #60a5fa;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s ease;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.map-notification.warning {
  border-left-color: #f59e0b;
  background: rgba(120, 53, 15, 0.95);
}

.map-notification.danger {
  border-left-color: #ef4444;
  background: rgba(127, 29, 29, 0.95);
}

.map-notification.success {
  border-left-color: #34d399;
  background: rgba(6, 78, 59, 0.95);
}

.map-notification-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.map-notification.warning .map-notification-icon {
  color: #f59e0b;
}

.map-notification.danger .map-notification-icon {
  color: #ef4444;
}

.map-notification.success .map-notification-icon {
  color: #34d399;
}

.map-notification-content {
  flex: 1;
}

.map-notification-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.map-notification-message {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.4;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

.rider-detail-map {
  width: 100%;
  height: 100%;
  flex: 1;
  position: relative;
}

.rider-detail-info {
  padding: var(--spacing-lg);
  background: #1a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  border-top: 1px solid #2d3748;
}

.rider-detail-info h4 {
  display: none; /* 타이틀 숨김 */
}

.rider-detail-info p {
  color: #e2e8f0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin-bottom: var(--spacing-sm);
}

.rider-detail-info .info-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid #2d3748;
}

.rider-detail-info .info-label {
  color: #9ca3af;
  font-size: var(--font-size-sm);
}

.rider-detail-info .info-value {
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.route-point {
  color: #ffffff;
  font-size: var(--font-size-md);
  font-weight: 600;
}

.route-arrow {
  color: #60a5fa;
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin: 0 var(--spacing-xs);
}