/**
 * Collage Layout Demo Styles
 * Styles for the multi-image collage layout demo page
 */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #1a1a2e;
  color: #eee;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  min-height: 100vh;
}

/* Controls Panel */
.controls {
  background: #16213e;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 600px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

label {
  font-weight: 600;
  color: #a0a0c0;
}

input[type="number"] {
  width: 70px;
  padding: 8px 10px;
  border: 2px solid #3a3a5c;
  border-radius: 6px;
  background: #0f0f23;
  color: #fff;
  font-size: 14px;
}

input[type="file"] {
  display: none;
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #4a90d9, #357abd);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 144, 217, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c5ce7, #5541d7);
}

.btn-accent {
  background: linear-gradient(135deg, #00b894, #00a381);
}

.btn-warning {
  background: linear-gradient(135deg, #e17055, #d63031);
}

/* Checkbox */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a0a0c0;
  font-size: 13px;
  cursor: pointer;
  margin-left: auto;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Image List */
.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 10px;
  background: #0f0f23;
  border-radius: 8px;
}

.image-thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #3a3a5c;
}

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

.image-thumb .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  background: rgba(214, 48, 49, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.random-thumb {
  background: linear-gradient(135deg, #3a3a5c, #2a2a4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 10px;
  text-align: center;
}

/* Info Panel */
#info {
  width: 100%;
  font-size: 13px;
  color: #8888aa;
  line-height: 1.6;
  padding: 10px;
  background: #0f0f23;
  border-radius: 8px;
}

/* Collage Bounding Box */
.bounding-box {
  background: #f5f5f5;
  border: 3px dashed #333;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

/* Collage Images */
.collage-image {
  position: absolute;
  overflow: hidden;
  box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
  background: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}

.collage-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.collage-image .img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px;
  font-size: 10px;
  text-align: center;
}

.placeholder-text {
  color: #999;
  font-size: 11px;
}

