/* Base Reset */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #fdfbfb, #f7e9ec);
  color: #333;
}

/* Layout */
.app {
  display: flex;
  height: 100vh;
}

/* Sidebar (Glass Effect) */
.sidebar {
  width: 280px;
  padding: 24px;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

/* Title */
.sidebar h2 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

/* Panels */
.panel {
  margin-bottom: 22px;
}

.panel label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
  opacity: 0.7;
}

/* Inputs */
input[type="color"] {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

/* Dropdown */
select {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  font-size: 14px;
}

/* Buttons */
button {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Primary Button */
button:first-child {
  background: linear-gradient(135deg, #ff8fb1, #ff5c8a);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 92, 138, 0.4);
}

/* Secondary Button */
button:last-child {
  background: #fff;
  color: #444;
  margin-top: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Hover */
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Selected Nail Display */
#selectedLabel {
  background: rgba(255,255,255,0.7);
  padding: 10px;
  border-radius: 10px;
  font-size: 13px;
}

/* Canvas Area */
.canvas-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Canvas Card */
#container {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 10px 40px rgba(0,0,0,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 12px;
  }

  .panel {
    min-width: 180px;
  }
}