/**
 * Component Styles
 * Individual UI components like buttons, inputs, and controls
 */

/* Typography */
h1 {
  margin: 0;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.descriptor {
  margin: 0;
  color: rgba(29, 29, 31, 0.64);
  font-size: 18px;
  line-height: 1.5;
}

/* Control Group */
.control-group {
  display: grid;
  gap: 8px;
}

.control-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.58);
}

/* Device Select */
.device-select {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
 padding: 12px 40px 12px 16px;
  font-size: 15px;
  font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.59 0.585999L6 5.172L1.41 0.585999L0 2L6 8L12 2L10.59 0.585999Z' fill='%231D1D1F'/%3E%3C/svg%3E")
    no-repeat right 16px center/12px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-select:focus {
  outline: none;
  border-color: #0f6ad1;
  box-shadow: 0 0 0 3px rgba(20, 124, 229, 0.2);
}

/* Control Actions */
.control-actions {
  display: grid;
  gap: 16px;
  align-content: start;
}

.screen-dimensions {
  padding: 12px 16px;
  background: rgba(20, 124, 229, 0.08);
  border: 1px solid rgba(20, 124, 229, 0.2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #0f6ad1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Upload Button */
label[for="image-input"] {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  background: #147ce5;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

label[for="image-input"]:hover {
  background: #0f6ad1;
  box-shadow: 0 8px 18px rgba(20, 124, 229, 0.35);
}

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

/* Download Actions */
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.download-actions .download-button,
.download-actions .copy-button {
  flex: 1 1 160px;
}

/* Download Button */
.download-button {
  justify-self: stretch;
  border: none;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #2d6df6 0%, #4e8cff 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(45, 109, 246, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-button:disabled {
  background: rgba(45, 109, 246, 0.4);
  box-shadow: none;
  cursor: not-allowed;
}

.download-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(45, 109, 246, 0.32);
}

.copy-button {
  border: 1px solid rgba(45, 109, 246, 0.4);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(45, 109, 246, 0.08);
  color: #0f6ad1;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.copy-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.copy-button:not(:disabled):hover {
  background: rgba(45, 109, 246, 0.16);
  box-shadow: 0 8px 18px rgba(45, 109, 246, 0.2);
  transform: translateY(-1px);
}

/* View Select Dropdown */
.view-select-wrapper {
  display: flex;
  width: 100%;
}

.view-select {
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 12px 40px 12px 16px;
  font-size: 15px;
  font-weight: 500;
  background: #fff url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.59 0.585999L6 5.172L1.41 0.585999L0 2L6 8L12 2L10.59 0.585999Z' fill='%231D1D1F'/%3E%3C/svg%3E")
    no-repeat right 16px center/12px 8px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 140px;
  width: 100%;
}

.view-select:focus {
  outline: none;
  border-color: #0f6ad1;
  box-shadow: 0 0 0 3px rgba(20, 124, 229, 0.2);
}
