.ic-minify-tool {
  max-width: 100%;
  margin-top: 30px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
}
.action.is-disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
}

h2.minify {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.ic-minify-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 767px) {
  .ic-minify-grid {
    display: flex;
    flex-direction: column;
  }
}

.ic-box {
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.ic-box-title {
  padding: 8px 16px;
  font-weight: 500;
  font-size: 12px;
  color: rgb(115, 115, 143);
  border-bottom: 1px solid #e4e7ec;
}

.ic-box textarea {
  width: 100%;
  height: 300px;
  padding: 14px;
  border: 0;
  resize: none;
  outline: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 14px;
  box-shadow: none !important;
  margin: 0;
}

.ic-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e4e7ec;
  background: #fff;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.35;
  transition: opacity 0.25s ease;
}

.ic-arrow:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .ic-arrow {
    display: none;
  }
}

.ic-options {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.ic-options button {
  cursor: pointer;
  border: 1px solid #e3e3e3;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.2s ease;
  color: #555;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background: #fff;
}

.ic-options button input {
  margin: 0;
}

.ic-options button.active {
  background: #eef2ff;
  color: #0075db;
  font-weight: 600;
  border-color: #0075db;
}

.ic-actions {
  gap: 10px;
  margin-top: 22px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ic-actions .action {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  width: 150px;
  justify-content: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ic-actions .action i {
  font-size: 18px;
}

.ic-actions .action-reset {
  margin-right: auto;
}

.ic-actions .action-minify {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #0075db;
  border-color: #0075db;
}

.ic-actions .action-minify button {
  color: #fff;
  font-weight: 500;
}

.ic-actions .action-minify i {
  color: #fff;
}

.ic-actions .action-download,
.ic-actions .action-copy {
  border-color: #0075db33;
}

.ic-actions .action-download button,
.ic-actions .action-copy button {
  color: #0075db;
  font-weight: 500;
}

button.ic-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button.ic-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ic-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.ic-format-card {
  display: block;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid #e4e7ec;
  background: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.ic-format-card:hover {
  border-color: #0075db;
  box-shadow: 0 0 0 3px rgba(0, 117, 219, 0.08);
}

.ic-format-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.ic-format-desc {
  font-size: 14px;
  color: #667085;
  line-height: 1.5;
}

@media (max-width: 1023px) {
  .ic-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .ic-actions .action {
    width: auto;
    padding: 6px 18px;
  }

  .ic-actions .action-minify {
    position: static;
    transform: none;
  }

  .ic-actions .action-reset {
    margin-right: 0;
  }
}
