/* Main Tool Container */
.skeleton-tool {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header Styles */
.tool-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tool-header h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.tool-header p {
  color: #7f8c8d;
  font-size: 1.1rem;
}

/* Control Panel */
.control-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-group {
  margin-bottom: 1rem;
}

.control-group h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: #34495e;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

/* Preview Area */
.preview-container {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.skeleton-preview {
  max-width: 600px;
  margin: 0 auto;
}

.skeleton-item {
  margin-bottom: 1rem;
  border-radius: 4px;
  overflow: hidden;
  background: #f8f9fa;
}

/* Skeleton Animation */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.skeleton-animated {
  animation-duration: 1.5s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
  animation-name: shimmer;
  animation-timing-function: linear;
  background: linear-gradient(to right, #f6f7f8 8%, #e8e8e8 18%, #f6f7f8 33%);
  background-size: 800px 104px;
  position: relative;
}

/* Color Pickers */
.color-picker-group {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.color-picker-label {
  width: 120px;
  font-weight: 500;
  color: #34495e;
}

.color-picker {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
  margin-right: 1rem;
}

.color-value {
  font-family: monospace;
}

/* Slider Controls */
.slider-container {
  margin-bottom: 1rem;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.slider-label span {
  font-weight: 500;
  color: #34495e;
}

.slider-label .value {
  font-family: monospace;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
}

/* Code Output */
.code-output {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 1rem;
  border-radius: 5px;
  font-family: 'Courier New', Courier, monospace;
  white-space: pre-wrap;
  margin-bottom: 2rem;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #3498db;
  color: white;
  border: none;
  padding: 0.25rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
}

.copy-btn:hover {
  background: #2980b9;
}

/* Button Styles */
.btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.btn:hover {
  background: #2980b9;
}

/* Skeleton Types */
.skeleton-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.skeleton-type-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
}

.skeleton-type-btn.active {
  background: #3498db;
  color: white;
  border-color: #2980b9;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .control-panel {
    grid-template-columns: 1fr;
  }
  
  .skeleton-types {
    flex-direction: column;
  }
}

/* Skeleton Item Variations */
.skeleton-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.skeleton-line {
  height: 12px;
}

.skeleton-line.short {
  width: 60%;
}

.skeleton-line.medium {
  width: 80%;
}

.skeleton-rect {
  height: 100px;
}

/* Layout Preview */
.skeleton-layout {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.skeleton-layout-left {
  flex: 0 0 50px;
}

.skeleton-layout-right {
  flex: 1;
}