.favicon-generator {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-family:
    Helvetica Neue,
    Helvetica,
    Arial,
    sans-serif;
  margin: 40px auto;
  max-width: 720px;
  padding: 24px;
}
.favicon-generator h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
}
.favicon-generator button {
  background-color: #4f8df7;
  border: none;
  border-radius: 8px;
  color: #fff;
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin: 24px auto 0;
  min-width: 220px;
  padding: 10px 20px;
  transition:
    background-color 0.2s ease,
    transform 0.1s ease;
}
.favicon-generator button:hover:not(:disabled) {
  background-color: #3b7ae4;
}
.favicon-generator button:disabled {
  background-color: #9ec1ff;
  cursor: not-allowed;
}
.favicon-generator textarea {
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: monospace;
  font-size: 13px;
  margin-top: 16px;
  min-height: 140px;
  padding: 12px;
  resize: vertical;
  width: 100%;
}
.favicon-dropzone {
  border: 2px dashed #d0d7de;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 16px;
  padding: 32px 24px;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}
.favicon-dropzone:hover {
  background-color: #f8f9fa;
}
.favicon-dropzone.active {
  background-color: #f8f9fa;
  border-color: #0d6efd;
}
.dropzone-text {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.dropzone-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}
.dropzone-icons span {
  background: #e9ecef;
  border-radius: 6px;
  color: #495057;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
}
.dropzone-text strong {
  font-size: 16px;
  font-weight: 600;
}
.dropzone-text small {
  color: #6c757d;
  font-size: 13px;
}
.favicon-preview {
  margin-top: 32px;
}
.preview-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}
.preview-grid {
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 16px;
}
.theme-switch {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 8px;
}
.theme-switch input {
  display: none;
}
.theme-switch .slider {
  background: #ced4da;
  border-radius: 999px;
  cursor: pointer;
  height: 18px;
  position: relative;
  transition: background 0.2s;
  width: 36px;
}
.theme-switch .slider:after {
  background: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.2s;
  width: 14px;
}
.theme-switch input:checked + .slider {
  background: #0d6efd;
}
.theme-switch input:checked + .slider:after {
  transform: translateX(18px);
}
.theme-switch .label {
  color: #6c757d;
}
.preview-grid.dark,
.preview-grid.light {
  background: #f8f9fa;
}
.preview-card {
  text-align: center;
}
.browser-window {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px #00000014;
  margin: 0 auto 6px;
  overflow: hidden;
  width: 140px;
}
.preview-grid.dark .browser-window {
  background: #2a2a2a;
  color: #edebeb;
}
.browser-bar {
  display: flex;
  gap: 6px;
  padding: 6px;
}
.browser-bar .dot {
  border-radius: 50%;
  height: 8px;
  width: 8px;
}
.browser-bar .red {
  background: #ff5f56;
}
.browser-bar .yellow {
  background: #ffbd2e;
}
.browser-bar .green {
  background: #27c93f;
}
.browser-tab {
  align-items: center;
  display: flex;
  font-size: 12px;
  gap: 6px;
  padding: 6px 10px 10px;
}
.browser-tab img {
  height: 16px;
  width: 16px;
}
.ios-icon {
  align-items: center;
  background: #fff;
  border-radius: 18px;
  display: flex;
  height: 80px;
  justify-content: center;
  margin: 0 auto 6px;
  width: 80px;
}
.preview-grid.dark .ios-icon {
  background: #2a2a2a;
}
.ios-icon img {
  height: 70%;
  width: 70%;
}
.android-icon {
  align-items: center;
  background: #fff;
  border-radius: 12px;
  display: flex;
  height: 80px;
  justify-content: center;
  margin: 0 auto 6px;
  width: 80px;
}
.android-icon img {
  height: 70%;
  width: 70%;
}
.preview-grid.dark .android-icon {
  background: #2a2a2a;
}
