/* 프리미엄 사이드바 스타일 */
.leftbox {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  height: 100vh !important;
  width: 320px !important;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.98), rgba(25, 25, 25, 0.98)) !important;
  backdrop-filter: blur(30px) !important;
  -webkit-backdrop-filter: blur(30px) !important;
  border-right: 0.5px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2) !important;
  overflow-y: scroll !important;
  overflow-x: hidden !important;
  z-index: 9999 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
}

.leftbox::-webkit-scrollbar {
  width: 8px !important;
}

.leftbox::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 4px !important;
}

.leftbox::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(100, 181, 246, 0.4), rgba(25, 118, 210, 0.4)) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leftbox::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(100, 181, 246, 0.6), rgba(25, 118, 210, 0.6)) !important;
}

/* 프리미엄 로고 섹션 */
.premium-logo-section {
  padding: 15px 20px 15px 20px !important;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05) !important;
  position: relative !important;
}

.logo-container {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.logo-icon {
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, #64B5F6, #1976D2) !important;
  border-radius: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3) !important;
  position: relative !important;
  overflow: hidden !important;
}

.logo-icon::before {
  content: '' !important;
  position: absolute !important;
  top: -50% !important;
  left: -50% !important;
  width: 200% !important;
  height: 200% !important;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.15), transparent) !important;
  transform: rotate(45deg) !important;
  animation: shimmer 4s infinite !important;
}

.logo-image {
  width: 32px !important;
  height: 32px !important;
  object-fit: contain !important;
  z-index: 2 !important;
  position: relative !important;
}

.brand-info {
  flex: 1 !important;
}

.brand-title {
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 4px 0 !important;
  letter-spacing: 0.5px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  margin: 0 !important;
  letter-spacing: 0.3px !important;
}



/* 메인 대시보드 카드 */
.premium-dashboard-card {
  margin: 15px 20px 15px 20px !important;
  padding: 20px !important;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(25, 118, 210, 0.1)) !important;
  border: 1px solid rgba(100, 181, 246, 0.2) !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
  pointer-events: auto !important;
}

.premium-dashboard-card:hover {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.15), rgba(25, 118, 210, 0.15)) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(100, 181, 246, 0.2) !important;
}

.dashboard-header {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.dashboard-icon {
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #64B5F6, #1976D2) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-size: 18px !important;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3) !important;
}

.dashboard-content {
  flex: 1 !important;
}

.dashboard-content h3 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
}

.dashboard-content p {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 12px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.dashboard-arrow {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 16px !important;
  transition: all 0.3s ease !important;
}

.premium-dashboard-card:hover .dashboard-arrow {
  color: #64B5F6 !important;
  transform: translateX(3px) !important;
}

/* 사용자 정보 카드 */
.premium-user-card {
  margin: 0 20px 15px 20px !important;
  padding: 20px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(10px) !important;
}

.user-header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 15px !important;
}

.user-avatar {
  width: 40px !important;
  height: 40px !important;
  background: linear-gradient(135deg, #64B5F6, #1976D2) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: white !important;
  font-size: 16px !important;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.3) !important;
}

.user-info h4 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  margin: 0 0 4px 0 !important;
}

.user-status {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#user-status-dot {
  width: 8px !important;
  height: 8px !important;
  background: #4CAF50 !important;
  border-radius: 50% !important;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.5) !important;
}

#status-badge {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

.user-balance {
  margin-bottom: 15px !important;
}

.balance-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

.balance-item:last-child {
  margin-bottom: 0 !important;
}

.balance-label {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.balance-value {
  color: #64B5F6 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.premium-point-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.1), rgba(25, 118, 210, 0.1)) !important;
  border: 1px solid rgba(100, 181, 246, 0.2) !important;
  border-radius: 12px !important;
  color: #64B5F6 !important;
  text-decoration: none !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.premium-point-btn:hover {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.15), rgba(25, 118, 210, 0.15)) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2) !important;
}

/* 프리미엄 네비게이션 */
.premium-navigation {
  padding: 0 20px 15px 20px !important;
}

.nav-section {
  margin-bottom: 25px !important;
}

.nav-section:last-child {
  margin-bottom: 0 !important;
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.5) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 0 12px 0 !important;
  padding-left: 8px !important;
}

.nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  margin-bottom: 4px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  pointer-events: auto !important;
}

.nav-item::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -100% !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.1), transparent) !important;
  transition: left 0.5s ease !important;
}

.nav-item:hover::before {
  left: 100% !important;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(100, 181, 246, 0.2) !important;
  transform: translateX(3px) !important;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(100, 181, 246, 0.15), rgba(25, 118, 210, 0.15)) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
  box-shadow: 0 4px 15px rgba(100, 181, 246, 0.2) !important;
}

.nav-icon {
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 14px !important;
  transition: all 0.3s ease !important;
}

.nav-item:hover .nav-icon {
  background: rgba(100, 181, 246, 0.2) !important;
  color: #64B5F6 !important;
}

.nav-item.active .nav-icon {
  background: rgba(100, 181, 246, 0.3) !important;
  color: #ffffff !important;
}

.nav-text {
  flex: 1 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}

.nav-item:hover .nav-text {
  color: #ffffff !important;
}

.nav-item.active .nav-text {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.nav-arrow {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 12px !important;
  transition: all 0.3s ease !important;
}

.nav-item:hover .nav-arrow {
  color: rgba(255, 255, 255, 0.7) !important;
}

.nav-item.active .nav-arrow {
  color: #64B5F6 !important;
}

/* 서브메뉴 */
.submenu {
  max-height: 0 !important;
  overflow: hidden !important;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  margin-left: 44px !important;
}

.submenu.active {
  max-height: 200px !important;
}

.submenu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  margin-bottom: 2px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.submenu-item:hover {
  background: rgba(100, 181, 246, 0.1) !important;
  border-color: rgba(100, 181, 246, 0.2) !important;
  color: #64B5F6 !important;
  transform: translateX(3px) !important;
}

.submenu-item.active {
  background: rgba(100, 181, 246, 0.15) !important;
  border-color: rgba(100, 181, 246, 0.3) !important;
  color: #ffffff !important;
}

.submenu-item i {
  font-size: 12px !important;
  width: 16px !important;
  text-align: center !important;
}

/* 애니메이션 */
@keyframes shimmer {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* 반응형 */
@media (max-width: 768px) {
  .leftbox {
    left: -320px !important;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1000000 !important;
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
  }
  
  .leftbox.active {
    left: 0 !important;
  }
  
  /* 사이드바 닫기 애니메이션 */
  .leftbox.closing {
    left: -320px !important;
  }
  
  .content {
    margin-left: 0 !important;
  }
  
  /* 모바일에서 사이드바 닫기 버튼 */
  .sidebar-close-btn {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    color: white !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000001 !important;
    transform: translateX(0) !important;
    margin-left: auto !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }
  
  .leftbox.active .sidebar-close-btn {
    display: flex !important;
  }
  
  .premium-logo-section {
    padding: 20px 15px 15px 15px !important;
  }
  
  .premium-dashboard-card,
  .premium-user-card {
    margin: 15px !important;
    padding: 15px !important;
  }
  
  .premium-navigation {
    padding: 0 15px 15px 15px !important;
  }
  
  .nav-item {
    padding: 10px 12px !important;
  }
  
  .submenu {
    margin-left: 36px !important;
  }
}
