/* ============================================
   V-Decor Editor - Modern Floating UI
   ============================================ */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  overflow: hidden;
}

main {
  height: 100%;
  width: 100%;
}

/* ============================================
   Root Container - Full Screen Canvas
   ============================================ */
.root-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  overflow: hidden;
}

/* ============================================
   Top Toolbar - Floating
   ============================================ */
.top-toolbar {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 30px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  z-index: 50;
  transition: all 0.3s ease;
}

.top-toolbar:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.3em;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.version-badge {
  font-size: 0.65em;
  padding: 3px 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  font-weight: 600;
}

.project-title {
  font-size: 1em;
  font-weight: 600;
  color: #2c3e50;
}

.view-toggle {
  display: flex;
  gap: 5px;
  background: #f0f0f0;
  border-radius: 20px;
  padding: 4px;
}

.view-toggle-btn {
  padding: 8px 20px;
  border: none;
  background: transparent;
  border-radius: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  color: #666;
  transition: all 0.3s ease;
}

.view-toggle-btn:hover {
  color: #333;
}

.view-toggle-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Canvas - Full Screen
   ============================================ */
.canvas-fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
}

#main-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
}

/* 3D Viewer - 2D와 동일한 배경 */
#viewer-3d {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  /* 2D와 동일한 회색 배경 */
  background: #f8f9fa !important;
  z-index: 1 !important; /* 사이드바(z-index: 100) 아래로 */
}

#viewer-3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* ============================================
   Floating Left Sidebar
   ============================================ */
.floating-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px; /* 간격 줄임 12px -> 8px */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 10px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 100;
  transition: all 0.3s ease;
}

.floating-sidebar:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.sidebar-btn {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.3); /* 약간 배경 추가 */
  border: 1px solid rgba(255, 255, 255, 0.4); /* 테두리 추가 */
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); /* 기본 그림자 */
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
}

.sidebar-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); /* hover 시 그림자 강화 */
  transform: translateX(2px); /* 약간 오른쪽으로 */
}

.sidebar-btn:hover::before {
  opacity: 0.1;
}

.sidebar-btn.active {
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); /* active 시 그림자 */
}

.sidebar-btn.active::before {
  opacity: 1;
}

.sidebar-btn-icon {
  font-size: 1.8em;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Lucide 아이콘 스타일 */
.sidebar-icon {
  width: 28px;
  height: 28px;
  stroke-width: 2.5; /* 굵게 */
  color: #6b7c93;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* SVG로 변환된 후 표시 */
.sidebar-btn svg.lucide {
  opacity: 1;
}

.sidebar-btn-label {
  font-size: 0.75em;
  font-weight: 600;
  color: #666;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  line-height: 1.2;
}

.sidebar-btn:hover .sidebar-btn-icon,
.sidebar-btn:hover .sidebar-icon {
  transform: scale(1.15);
}

.sidebar-btn:hover .sidebar-icon {
  color: #667eea;
}

.sidebar-btn:hover .sidebar-btn-label {
  color: #667eea;
}

.sidebar-btn.active .sidebar-btn-icon,
.sidebar-btn.active .sidebar-icon {
  transform: scale(1.1);
}

.sidebar-btn.active .sidebar-icon {
  color: white;
}

.sidebar-btn.active .sidebar-btn-label {
  color: white;
}

.sidebar-spacer {
  flex: 1;
  min-height: 8px; /* 여백 조금 더 줄임 */
}

.sidebar-divider {
  width: 45px; /* 약간 더 길게 */
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent); /* 더 진하게 */
  margin: 10px auto; /* 위아래 간격 증가 6px -> 10px */
  border-radius: 1px;
  box-shadow: 0 1px 2px rgba(102, 126, 234, 0.2); /* 미세한 그림자 추가 */
}

/* Tooltip */
.sidebar-btn::after {
  content: attr(title);
  position: absolute;
  left: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 0.85em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}

.sidebar-btn:hover::after {
  opacity: 1;
}

/* ============================================
   Sub Panel - Slides Next to Sidebar
   ============================================ */
.sub-panel {
  position: fixed;
  left: -350px;
  top: 50%;
  transform: translateY(-50%);
  width: 320px;
  max-height: 95vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 99;
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), width 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sub-panel.active {
  left: 110px; /* 사이드바(60px + 패딩) + 간격(30px) */
}

/* 그리드 열에 따른 패널 너비 */
.sub-panel.cols-1 {
  width: 320px;
}

.sub-panel.cols-1:not(.active) {
  left: -350px;
}

.sub-panel.cols-2 {
  width: 320px;
}

.sub-panel.cols-2:not(.active) {
  left: -350px;
}

.sub-panel.cols-3 {
  width: 480px;
}

.sub-panel.cols-3:not(.active) {
  left: -510px;
}

.sub-panel.cols-4 {
  width: 640px;
}

.sub-panel.cols-4:not(.active) {
  left: -670px;
}

.sub-panel-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 50px;
}

.sub-panel-header h3 {
  font-size: 1.1em;
  font-weight: 700;
  margin: 0;
}

.close-panel-btn {
  display: none; /* 헤더는 유지하되 닫기 버튼만 숨김 */
}

.sub-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  padding-bottom: 70px; /* 그리드 컨트롤 공간 확보 */
}

.sub-panel-content::-webkit-scrollbar {
  width: 6px;
}

.sub-panel-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.sub-panel-content::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

/* ============================================
   Drawing Tools - Floating
   ============================================ */
/* 2D Drawing Tools - 상단 중앙 (헤더 아래) */
.drawing-tools {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  background: rgba(255, 255, 255, 0.4); /* 약간 더 투명하게 - 버튼이 돋보이도록 */
  backdrop-filter: blur(20px);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); /* 부드러운 그림자 */
  z-index: 50;
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.tool-btn {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4); /* 테두리 추가 */
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6); /* 약간 더 불투명 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 기본 그림자 추가 */
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8em;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6b7c93;
  min-width: 65px;
}

.tool-btn:hover {
  background: rgba(255, 255, 255, 0.85); /* 더 밝게 */
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 그림자 강화 */
}

.tool-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.tool-icon {
  width: 22px; /* 약간 작게 */
  height: 22px;
  stroke-width: 2.5; /* 더 굵게 */
}

/* SVG로 변환된 후 표시 */
.tool-btn svg.lucide {
  opacity: 1;
}

.tool-btn .tool-label {
  font-size: 0.9em;
  font-weight: 500;
}

/* ============================================
   3D Viewer Controls - 우측 하단 (가로 배치)
   ============================================ */
.viewer-controls {
  position: absolute;
  bottom: 80px;
  right: 30px;
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.4); /* 약간 더 투명하게 - 버튼이 돋보이도록 */
  backdrop-filter: blur(20px);
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  z-index: 50;
  white-space: nowrap;
}

.control-btn {
  padding: 10px 14px;
  min-width: 65px;
  border: 1px solid rgba(255, 255, 255, 0.4); /* 테두리 추가 */
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6); /* 약간 더 불투명 */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* 기본 그림자 추가 */
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8em;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #6b7c93;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.85); /* 더 밝게 */
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* 그림자 강화 */
}

.control-icon {
  width: 22px; /* 약간 작게 */
  height: 22px;
  stroke-width: 2.5; /* 더 굵게 */
}

/* SVG로 변환된 후 표시 */
.control-btn svg.lucide {
  opacity: 1;
}

.control-btn .control-label {
  font-size: 0.9em;
  font-weight: 500;
}

/* ============================================
   Status Bar - Bottom
   ============================================ */
.status-bar {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  color: white;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 0.9em;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 50;
}

#statusText {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Panel Content - Cards & Items
   ============================================ */

/* 아이템 그리드 - 동적 열 개수 */
.item-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 0;
}

.item-grid.cols-1 {
  grid-template-columns: 1fr;
}

.item-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.item-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.item-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* 그리드 컨트롤 - 하단 고정 (상단 헤더를 180도 뒤집은 스타일) */
.grid-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.grid-controls-label {
  font-size: 0.9em;
  font-weight: 600;
  color: white;
  margin-right: 4px;
}

.grid-btn {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

.grid-btn:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.grid-btn.active {
  border-color: white;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.grid-icon {
  display: grid;
  gap: 2px;
  width: 100%;
  height: 100%;
}

.grid-icon.cols-1 { 
  grid-template-columns: 1fr; 
  grid-template-rows: 1fr;
}

.grid-icon.cols-2 { 
  grid-template-columns: 1fr 1fr; 
  grid-template-rows: 1fr 1fr;
}

.grid-icon.cols-3 { 
  grid-template-columns: 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr;
}

.grid-icon.cols-4 { 
  grid-template-columns: 1fr 1fr 1fr 1fr; 
  grid-template-rows: 1fr 1fr;
}

.grid-icon .block {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1px;
}

.grid-btn.active .block {
  background: #667eea;
}

.item-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.item-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.item-card.selected {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.item-image {
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: #f5f5f5;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-info {
  padding: 12px;
}

.item-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.item-price {
  font-size: 0.8em;
  color: #667eea;
  font-weight: 600;
}

.popular-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.7em;
  font-weight: 600;
  z-index: 10;
}

/* Product Grid (Alternative name) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.product-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: #667eea;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.product-card.selected {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.product-thumb {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f5f5f5;
}

.product-info {
  padding: 12px;
}

.product-name {
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.product-price {
  font-size: 0.8em;
  color: #667eea;
  font-weight: 600;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  font-size: 0.7em;
  font-weight: 600;
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 0.9em;
  color: #555;
}

.project-info-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: #666;
  font-size: 0.9em;
}

.info-row span:last-child {
  font-weight: 600;
  color: #333;
  font-size: 0.9em;
}

/* Project List */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.project-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: #667eea;
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-card-name {
  font-weight: 600;
  font-size: 1em;
  color: #2c3e50;
}

.project-card-date {
  font-size: 0.75em;
  color: #999;
}

.project-card-info {
  font-size: 0.85em;
  color: #666;
}

/* Help Section */
.help-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.help-section:last-child {
  border-bottom: none;
}

.help-section h4 {
  font-size: 1.1em;
  margin-bottom: 12px;
  color: #667eea;
}

.help-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
  color: #555;
}

.help-list li {
  margin-bottom: 8px;
}

.help-list strong {
  color: #667eea;
  font-weight: 600;
}

.help-contact {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-top: 20px;
}

.help-contact p {
  margin: 5px 0;
  color: #555;
}

.help-contact strong {
  color: #667eea;
}

/* ============================================
   Search & Filter
   ============================================ */
.search-box {
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 0.95em;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.category-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
  flex-wrap: wrap;
}

.category-tabs::-webkit-scrollbar {
  height: 4px;
}

.category-tabs::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.category-tabs::-webkit-scrollbar-thumb {
  background: #667eea;
  border-radius: 10px;
}

.category-tab {
  padding: 6px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 18px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8em;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-tab:hover {
  border-color: #667eea;
  color: #667eea;
  transform: translateY(-1px);
}

.category-tab.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ============================================
   Buttons
   ============================================ */
.action-btn {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.action-btn.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.action-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
}

.action-btn.secondary:hover {
  background: #f8f9ff;
  transform: translateY(-2px);
}

.action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 15px 25px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-state-icon {
  font-size: 4em;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state-text {
  font-size: 1.1em;
  line-height: 1.6;
}

/* ============================================
   Instructions
   ============================================ */
.instructions {
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f8 100%);
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.9em;
  line-height: 1.6;
  color: #555;
  border-left: 4px solid #667eea;
}

.instructions-title {
  font-weight: 600;
  margin-bottom: 10px;
  color: #667eea;
  font-size: 1em;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .floating-sidebar {
    flex-direction: row;
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    width: auto;
    padding: 10px 15px;
  }
  
  .sidebar-btn {
    width: 50px;
    height: 50px;
  }
  
  .sidebar-btn-label {
    display: none;
  }
  
  .sub-panel {
    left: -100%;
    top: 0;
    transform: none;
    width: 90%;
    max-width: 350px;
    max-height: 90vh;
    border-radius: 0 20px 20px 0;
  }
  
  .sub-panel.active {
    left: 0;
  }
  
  .top-toolbar {
    top: 10px;
    padding: 10px 20px;
    font-size: 0.9em;
  }
  
  .logo-text {
    font-size: 1.1em;
  }
  
  .project-title {
    display: none;
  }
}

/* ============================================
   Animations
   ============================================ */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease;
}

.animate-slide-in {
  animation: slideInRight 0.4s ease;
}
