@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

.swim-time-converter-tool,
.swim-time-converter-tool div,
.swim-time-converter-tool header,
.swim-time-converter-tool section,
.swim-time-converter-tool h1,
.swim-time-converter-tool h2,
.swim-time-converter-tool p,
.swim-time-converter-tool label,
.swim-time-converter-tool span,
.swim-time-converter-tool input,
.swim-time-converter-tool button,
.swim-time-converter-tool svg {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.swim-time-converter-tool {
  position: relative;
  width: 100%;
  max-width: none;
  overflow-x: hidden;
  border-radius: 0 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f8fdff;
  background:
    radial-gradient(circle at 18% 14%, rgba(71, 230, 255, 0.42), transparent 32%),
    radial-gradient(circle at 84% 24%, rgba(52, 120, 255, 0.35), transparent 30%),
    linear-gradient(135deg, #042f3d 0%, #075f78 42%, #073966 100%);
  padding: 32px;
  line-height: 1.5;
}

.swim-time-converter-tool .stc-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.swim-time-converter-tool .stc-header {
  width: 100%;
  text-align: center;
  margin: 0 0 32px;
  padding: 0;
}

.swim-time-converter-tool .stc-title {
  font-size: clamp(1.5rem, 5vw, 2.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
  color: #ffffff;
  text-align: center;
  margin: 0 0 12px;
  padding: 0;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
}

.swim-time-converter-tool .stc-subtitle {
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: 500;
  color: #d9fbff;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0;
}

.swim-time-converter-tool .stc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
  padding: 0;
}

.swim-time-converter-tool .stc-panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(210, 250, 255, 0.28);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 24px 60px rgba(0, 25, 48, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.swim-time-converter-tool .stc-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(218, 253, 255, 0.44);
  box-shadow: 0 28px 72px rgba(0, 25, 48, 0.42), 0 0 32px rgba(69, 224, 255, 0.14);
}

.swim-time-converter-tool .stc-panel-title {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-field {
  width: 100%;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 0;
}

.swim-time-converter-tool .stc-time-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-time-group .stc-field {
  margin: 0 0 16px;
}

.swim-time-converter-tool .stc-label {
  display: block;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 700;
  color: #ebfdff;
  margin: 0 0 8px;
  padding: 0;
}

.swim-time-converter-tool .stc-input,
.swim-time-converter-tool .stc-dropdown-toggle {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  border: 1px solid rgba(218, 253, 255, 0.32);
  border-radius: 16px;
  background: rgba(2, 27, 42, 0.42);
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 650;
  padding: 12px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.swim-time-converter-tool .stc-input::placeholder {
  color: rgba(232, 253, 255, 0.54);
}

.swim-time-converter-tool .stc-input:focus,
.swim-time-converter-tool .stc-dropdown-toggle:focus {
  border-color: rgba(105, 239, 255, 0.92);
  background: rgba(2, 31, 48, 0.62);
  box-shadow: 0 0 0 4px rgba(105, 239, 255, 0.16), 0 0 24px rgba(105, 239, 255, 0.18);
}

.swim-time-converter-tool .stc-dropdown {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.swim-time-converter-tool .stc-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #bff8ff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.swim-time-converter-tool .stc-dropdown.is-open .stc-chevron {
  transform: rotate(180deg);
}

.swim-time-converter-tool .stc-options {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9999;
  display: none;
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  border: 1px solid rgba(157, 245, 255, 0.42);
  border-radius: 16px;
  background: #06293a;
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(0, 10, 24, 0.46), 0 0 24px rgba(62, 220, 255, 0.18);
  padding: 8px;
}

.swim-time-converter-tool .stc-dropdown.is-open .stc-options {
  display: block;
}

.swim-time-converter-tool .stc-dropdown.is-up .stc-options {
  top: auto;
  bottom: calc(100% + 8px);
}

.swim-time-converter-tool .stc-option {
  width: 100%;
  border-radius: 12px;
  font-size: 0.98rem;
  line-height: 1.4;
  font-weight: 700;
  color: #eefeff;
  cursor: pointer;
  margin: 0;
  padding: 12px 16px;
  transition: background 140ms ease, color 140ms ease;
}

.swim-time-converter-tool .stc-option:hover,
.swim-time-converter-tool .stc-option.is-active {
  background: rgba(76, 216, 255, 0.18);
  color: #ffffff;
}

.swim-time-converter-tool .stc-option.is-selected {
  background: linear-gradient(135deg, #33d6ee, #2f8cff);
  color: #031523;
}

.swim-time-converter-tool .stc-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-button {
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 800;
  cursor: pointer;
  padding: 12px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.swim-time-converter-tool .stc-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(191, 248, 255, 0.22);
}

.swim-time-converter-tool .stc-button:hover {
  transform: translateY(-2px);
}

.swim-time-converter-tool .stc-button-primary {
  color: #031523;
  background: linear-gradient(135deg, #78f7ff, #35d4ec 48%, #5ab2ff);
  box-shadow: 0 14px 30px rgba(54, 212, 236, 0.3);
}

.swim-time-converter-tool .stc-button-primary:hover {
  box-shadow: 0 18px 42px rgba(54, 212, 236, 0.44), 0 0 28px rgba(120, 247, 255, 0.24);
}

.swim-time-converter-tool .stc-button-secondary {
  color: #f3feff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(221, 253, 255, 0.34);
}

.swim-time-converter-tool .stc-button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 30px rgba(0, 25, 48, 0.22);
}

.swim-time-converter-tool .stc-result-panel {
  min-height: 100%;
}

.swim-time-converter-tool .stc-result-list {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  min-height: 280px;
  max-height: 520px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-empty-state,
.swim-time-converter-tool .stc-error-state {
  flex-grow: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  border: 1px dashed rgba(220, 253, 255, 0.34);
  border-radius: 20px;
  background: rgba(2, 27, 42, 0.24);
  padding: 24px;
}

.swim-time-converter-tool .stc-empty-icon,
.swim-time-converter-tool .stc-error-icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: #8df3ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(141, 243, 255, 0.26));
}

.swim-time-converter-tool .stc-error-icon {
  stroke: #ffd1d1;
}

.swim-time-converter-tool .stc-empty-text,
.swim-time-converter-tool .stc-error-text {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 650;
  color: #e9fdff;
  max-width: 420px;
}

.swim-time-converter-tool .stc-error-text {
  color: #fff0f0;
}

.swim-time-converter-tool .stc-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid rgba(218, 253, 255, 0.22);
  border-radius: 18px;
  background: rgba(2, 27, 42, 0.34);
  padding: 12px 16px;
  animation: stcFadeIn 220ms ease both;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.swim-time-converter-tool .stc-result-row:hover {
  transform: translateY(-2px);
  background: rgba(4, 47, 68, 0.52);
  border-color: rgba(118, 241, 255, 0.38);
}

.swim-time-converter-tool .stc-result-copy {
  flex-shrink: 0;
  border: 1px solid rgba(180, 249, 255, 0.36);
  border-radius: 999px;
  color: #effeff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  line-height: 1.3;
  font-weight: 800;
  cursor: pointer;
  padding: 8px 12px;
  transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.swim-time-converter-tool .stc-result-copy:hover,
.swim-time-converter-tool .stc-result-copy:focus {
  outline: none;
  background: rgba(110, 236, 255, 0.2);
  box-shadow: 0 0 0 3px rgba(110, 236, 255, 0.14);
  transform: translateY(-1px);
}

.swim-time-converter-tool .stc-result-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.swim-time-converter-tool .stc-result-label {
  font-size: 0.84rem;
  line-height: 1.35;
  font-weight: 750;
  color: #bff8ff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.swim-time-converter-tool .stc-result-value {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 850;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@keyframes stcFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 320px) and (max-width: 374px) {
  .swim-time-converter-tool {
    padding: 16px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 0.94rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 16px;
    gap: 16px;
    border-radius: 20px;
  }

  .swim-time-converter-tool .stc-time-group,
  .swim-time-converter-tool .stc-actions {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: 12px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 0.96rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-list {
    gap: 12px;
    min-height: 240px;
  }

  .swim-time-converter-tool .stc-result-row {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.94rem;
  }

  .swim-time-converter-tool .stc-result-copy {
    width: 100%;
  }
}

@media (min-width: 375px) and (max-width: 429px) {
  .swim-time-converter-tool {
    padding: 16px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 0.98rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 16px;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-time-group {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .swim-time-converter-tool .stc-actions {
    gap: 12px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 0.98rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .swim-time-converter-tool .stc-result-copy {
    width: auto;
  }
}

@media (min-width: 430px) and (max-width: 767px) {
  .swim-time-converter-tool {
    padding: 24px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 1rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 24px;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-time-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-row {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 16px;
    font-size: 0.98rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .swim-time-converter-tool {
    padding: 32px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 1.05rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 32px;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-row {
    gap: 12px;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (min-width: 1024px) and (max-width: 1199px) {
  .swim-time-converter-tool {
    padding: 32px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 1.05rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 24px;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-row {
    gap: 12px;
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (min-width: 1200px) {
  .swim-time-converter-tool {
    padding: 32px;
    border-radius: 0 !important;
  }

  .swim-time-converter-tool .stc-shell {
    width: 100%;
  }

  .swim-time-converter-tool .stc-title {
    font-size: clamp(1.5rem, 5vw, 2.8rem);
  }

  .swim-time-converter-tool .stc-subtitle {
    font-size: 1.08rem;
  }

  .swim-time-converter-tool .stc-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
  }

  .swim-time-converter-tool .stc-panel {
    padding: 32px;
    gap: 16px;
  }

  .swim-time-converter-tool .stc-input,
  .swim-time-converter-tool .stc-dropdown-toggle,
  .swim-time-converter-tool .stc-button {
    font-size: 1rem;
    padding: 12px 16px;
  }

  .swim-time-converter-tool .stc-result-row {
    gap: 12px;
    padding: 12px 16px;
    font-size: 1rem;
  }
}