@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');

.hex-decoder-tool {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  box-sizing: border-box;
  display: block;
  position: relative;
  overflow-x: clip;
  background: linear-gradient(135deg, #030164 0%, #1a1878 45%, #2D7495 100%);
  color: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hex-decoder-tool *, .hex-decoder-tool *::before, .hex-decoder-tool *::after { box-sizing: border-box; }
.hex-decoder-tool button, .hex-decoder-tool input, .hex-decoder-tool textarea, .hex-decoder-tool select { font: inherit; }
.hex-decoder-tool button { cursor: pointer; }
.hex-decoder-tool button:focus-visible, .hex-decoder-tool textarea:focus-visible, .hex-decoder-tool select:focus-visible, .hex-decoder-tool input:focus-visible { outline: 3px solid rgba(45, 116, 149, .9); outline-offset: 2px; }
.hex-decoder-tool .hdt-shell { width: 100%; max-width: 1200px; min-width: 0; margin: 0 auto; padding: 54px 24px; }
.hex-decoder-tool .hdt-hero { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.hex-decoder-tool .hdt-eyebrow { margin: 0 0 9px; color: #b8e5f3; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hex-decoder-tool .hdt-hero h1 { margin: 0; color: #ffffff; font-size: clamp(32px, 4vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; }
.hex-decoder-tool .hdt-hero > p:last-child { margin: 14px auto 0; color: #e5ebff; font-size: 16px; line-height: 1.6; }
.hex-decoder-tool .hdt-workspace { overflow: hidden; border: 1px solid rgba(187, 203, 255, .24); border-radius: 18px; background: #080A38; box-shadow: 0 24px 64px rgba(0, 0, 30, .38), 0 0 0 1px rgba(54, 49, 153, .2); }
.hex-decoder-tool .hdt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(187, 203, 255, .16); background: linear-gradient(90deg, #10134D, #151650); }
.hex-decoder-tool .hdt-workspace-name { display: flex; align-items: center; gap: 9px; min-width: 0; color: #ffffff; font-size: 14px; font-weight: 750; }
.hex-decoder-tool .hdt-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #57d5f7; box-shadow: 0 0 0 4px rgba(87, 213, 247, .12); animation: hdtPulse 2s infinite; }
.hex-decoder-tool .hdt-toolbar-actions, .hex-decoder-tool .hdt-panel-actions, .hex-decoder-tool .hdt-controls, .hex-decoder-tool .hdt-sidebar-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hex-decoder-tool .hdt-button, .hex-decoder-tool .hdt-panel-actions button, .hex-decoder-tool .hdt-icon-button { border: 1px solid transparent; border-radius: 9px; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.hex-decoder-tool .hdt-button { min-height: 38px; padding: 8px 13px; color: #ffffff; font-size: 13px; font-weight: 750; line-height: 1.15; text-decoration: none; }
.hex-decoder-tool .hdt-button:hover, .hex-decoder-tool .hdt-panel-actions button:hover, .hex-decoder-tool .hdt-icon-button:hover { transform: translateY(-1px); }
.hex-decoder-tool .hdt-button-secondary { border-color: rgba(211, 220, 255, .22); background: #10134D; color: #f5f7ff; }
.hex-decoder-tool .hdt-button-secondary:hover { border-color: rgba(87, 213, 247, .55); background: #1a1d61; }
.hex-decoder-tool .hdt-button-accent { background: #2D7495; color: #ffffff; box-shadow: 0 7px 18px rgba(45, 116, 149, .25); }
.hex-decoder-tool .hdt-button-accent:hover { background: #3788ad; }
.hex-decoder-tool .hdt-button-danger { border-color: rgba(255, 174, 180, .27); background: #261044; color: #ffdce1; }
.hex-decoder-tool .hdt-upload-button { position: relative; overflow: hidden; display: inline-flex; align-items: center; }
.hex-decoder-tool .hdt-upload-button input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.hex-decoder-tool .hdt-layout { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-width: 0; }
.hex-decoder-tool .hdt-sidebar { overflow: hidden; padding: 20px 16px; border-right: 1px solid rgba(187, 203, 255, .15); background: #10134D; transition: max-width .25s ease, padding .25s ease, opacity .2s ease; }
.hex-decoder-tool[data-sidebar-open="false"] .hdt-layout { grid-template-columns: 0 minmax(0, 1fr); }
.hex-decoder-tool[data-sidebar-open="false"] .hdt-sidebar { max-width: 0; padding-right: 0; padding-left: 0; border-right-width: 0; opacity: 0; pointer-events: none; }
.hex-decoder-tool .hdt-sidebar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 19px; }
.hex-decoder-tool h2 { margin: 0; color: #ffffff; font-size: 15px; font-weight: 800; }
.hex-decoder-tool .hdt-icon-button { width: 30px; height: 30px; border-color: rgba(211, 220, 255, .2); background: #080A38; color: #ffffff; font-size: 21px; line-height: 1; }
.hex-decoder-tool .hdt-fieldset { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.hex-decoder-tool .hdt-fieldset legend, .hex-decoder-tool .hdt-option-label { display: block; margin-bottom: 9px; color: #ced8ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hex-decoder-tool .hdt-mode { display: flex; align-items: center; gap: 9px; margin: 4px 0; padding: 10px; border: 1px solid transparent; border-radius: 9px; color: #e9edff; font-size: 13px; cursor: pointer; }
.hex-decoder-tool .hdt-mode:hover, .hex-decoder-tool .hdt-mode.active { border-color: rgba(103, 157, 255, .35); background: rgba(54, 49, 153, .52); color: #ffffff; }
.hex-decoder-tool .hdt-mode input { accent-color: #2D7495; }
.hex-decoder-tool .hdt-option { margin: 17px 0; }
.hex-decoder-tool .hdt-option > label:not(.hdt-switch) { display: block; margin-bottom: 7px; color: #f5f7ff; font-size: 13px; font-weight: 700; }
.hex-decoder-tool .hdt-option small { display: block; margin-top: 7px; color: #bfc9ee; font-size: 11px; line-height: 1.45; }
.hex-decoder-tool select { width: 100%; min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid rgba(211, 220, 255, .24); border-radius: 8px; background: #080A38; color: #ffffff; }
.hex-decoder-tool .hdt-switch-label { color: #f5f7ff; font-size: 13px; font-weight: 700; }
.hex-decoder-tool .hdt-switch { display: inline-block; position: relative; width: 42px; height: 23px; margin-top: 9px; }
.hex-decoder-tool .hdt-switch input { width: 1px; height: 1px; opacity: 0; }
.hex-decoder-tool .hdt-switch span { position: absolute; inset: 0; border-radius: 99px; background: #333773; transition: .18s ease; }
.hex-decoder-tool .hdt-switch span::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #ffffff; content: ""; transition: .18s ease; }
.hex-decoder-tool .hdt-switch input:checked + span { background: #2D7495; }
.hex-decoder-tool .hdt-switch input:checked + span::after { transform: translateX(19px); }
.hex-decoder-tool .hdt-case-toggle { display: flex; overflow: hidden; width: max-content; border: 1px solid rgba(211, 220, 255, .24); border-radius: 8px; }
.hex-decoder-tool .hdt-case-toggle button { padding: 7px 10px; border: 0; border-right: 1px solid rgba(211, 220, 255, .2); background: #080A38; color: #dce3ff; font-size: 12px; font-weight: 800; }
.hex-decoder-tool .hdt-case-toggle button:last-child { border-right: 0; }
.hex-decoder-tool .hdt-case-toggle button.active { background: #363199; color: #ffffff; }
.hex-decoder-tool .hdt-sidebar-buttons { margin-top: 23px; }
.hex-decoder-tool .hdt-main { min-width: 0; padding: 20px; background: #080A38; }
.hex-decoder-tool .hdt-editors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hex-decoder-tool .hdt-panel { display: flex; min-width: 0; min-height: 340px; flex-direction: column; overflow: hidden; border: 1px solid rgba(187, 203, 255, .2); border-radius: 13px; background: #10134D; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.hex-decoder-tool .hdt-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 13px 14px; border-bottom: 1px solid rgba(187, 203, 255, .15); background: rgba(5, 7, 52, .35); }
.hex-decoder-tool .hdt-panel-note { display: block; margin-top: 3px; color: #bfc9ee; font-size: 11px; }
.hex-decoder-tool .hdt-panel-actions { justify-content: flex-end; gap: 5px; }
.hex-decoder-tool .hdt-panel-actions button { padding: 5px 7px; border-color: rgba(211, 220, 255, .18); background: #080A38; color: #eaf0ff; font-size: 11px; font-weight: 750; }
.hex-decoder-tool .hdt-editor-wrap { display: flex; min-height: 0; flex: 1; overflow: hidden; background: #080A38; }
.hex-decoder-tool .hdt-gutter { width: 38px; flex: 0 0 38px; padding: 15px 8px; border-right: 1px solid rgba(187, 203, 255, .1); background: #0b0d40; color: #7f8bbd; font: 12px/1.5 "SFMono-Regular", Consolas, "Liberation Mono", monospace; text-align: right; user-select: none; }
.hex-decoder-tool .hdt-editor { display: block; width: 100%; min-width: 0; min-height: 0; flex: 1; resize: none; padding: 15px; border: 0; background: #080A38; color: #f5f7ff; caret-color: #57d5f7; font: 13px/1.6 "SFMono-Regular", Consolas, "Liberation Mono", monospace; outline: 0; }
.hex-decoder-tool .hdt-editor::placeholder { color: #7d88b4; opacity: 1; }
.hex-decoder-tool .hdt-editor:focus { box-shadow: inset 0 0 0 2px rgba(45, 116, 149, .78); }
.hex-decoder-tool .hdt-output { color: #dff6ff; }
.hex-decoder-tool .hdt-controls { justify-content: center; padding: 17px 0; }
.hex-decoder-tool .hdt-convert { min-width: 122px; }
.hex-decoder-tool .hdt-feedback { display: flex; align-items: center; gap: 9px; min-height: 43px; padding: 11px 13px; border: 1px solid rgba(187, 203, 255, .16); border-radius: 10px; background: #10134D; color: #e5ebff; font-size: 12px; line-height: 1.45; }
.hex-decoder-tool .hdt-feedback-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #a6b0d6; }
.hex-decoder-tool .hdt-feedback.success { border-color: rgba(87, 213, 247, .35); color: #d7f8ff; }
.hex-decoder-tool .hdt-feedback.success .hdt-feedback-dot { background: #57d5f7; box-shadow: 0 0 10px #57d5f7; }
.hex-decoder-tool .hdt-feedback.error { border-color: rgba(255, 142, 160, .55); background: #2a1247; color: #ffe4e8; }
.hex-decoder-tool .hdt-feedback.error .hdt-feedback-dot { background: #ff8b9d; }
.hex-decoder-tool .hdt-statusbar { display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 11px 18px; border-top: 1px solid rgba(187, 203, 255, .15); background: #0b0d40; color: #c2ccef; font-size: 11px; line-height: 1.4; }
.hex-decoder-tool .hdt-statusbar strong { color: #f5f7ff; font-weight: 750; }
.hex-decoder-tool .hdt-modal { position: fixed; z-index: 9999; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(1, 2, 35, .72); }
.hex-decoder-tool .hdt-modal-card { width: min(100%, 520px); padding: 22px; border: 1px solid rgba(187, 203, 255, .28); border-radius: 15px; background: #10134D; box-shadow: 0 24px 65px rgba(0, 0, 0, .5); color: #f5f7ff; }
.hex-decoder-tool .hdt-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.hex-decoder-tool .hdt-modal-card p { margin: 15px 0; color: #e1e7ff; font-size: 14px; line-height: 1.55; }
.hex-decoder-tool .hdt-modal-card code { padding: 1px 4px; border-radius: 4px; background: #080A38; color: #b8e5f3; }
.hex-decoder-tool ::-webkit-scrollbar { width: 10px; height: 10px; }
.hex-decoder-tool ::-webkit-scrollbar-track { background: #080A38; }
.hex-decoder-tool ::-webkit-scrollbar-thumb { border: 2px solid #080A38; border-radius: 10px; background: #363199; }
.hex-decoder-tool ::-webkit-scrollbar-thumb:hover { background: #2D7495; }
@keyframes hdtPulse { 50% { opacity: .55; transform: scale(.86); } }
@media (max-width: 1023px) {
  .hex-decoder-tool .hdt-layout { grid-template-columns: minmax(210px, 250px) minmax(0, 1fr); }
  .hex-decoder-tool .hdt-editors { grid-template-columns: 1fr; }
  .hex-decoder-tool .hdt-panel { min-height: 250px; }
}
@media (max-width: 767px) {
  .hex-decoder-tool .hdt-shell { padding: 38px 14px; }
  .hex-decoder-tool .hdt-hero { margin-bottom: 22px; }
  .hex-decoder-tool .hdt-hero h1 { font-size: 28px; }
  .hex-decoder-tool .hdt-toolbar { align-items: flex-start; flex-direction: column; padding: 13px; }
  .hex-decoder-tool .hdt-toolbar-actions { width: 100%; }
  .hex-decoder-tool .hdt-toolbar-actions .hdt-button { flex: 1 1 auto; justify-content: center; }
  .hex-decoder-tool .hdt-layout, .hex-decoder-tool[data-sidebar-open="false"] .hdt-layout { grid-template-columns: 1fr; }
  .hex-decoder-tool .hdt-sidebar { max-height: 680px; border-right: 0; border-bottom: 1px solid rgba(187, 203, 255, .15); opacity: 1; pointer-events: auto; transition: max-height .25s ease, padding .25s ease, opacity .2s ease; }
  .hex-decoder-tool[data-sidebar-open="false"] .hdt-sidebar { max-width: none; max-height: 0; padding-top: 0; padding-bottom: 0; border-bottom-width: 0; opacity: 0; pointer-events: none; }
  .hex-decoder-tool .hdt-main { padding: 13px; }
  .hex-decoder-tool .hdt-panel-head { align-items: flex-start; flex-direction: column; }
  .hex-decoder-tool .hdt-panel-actions { justify-content: flex-start; }
  .hex-decoder-tool .hdt-statusbar { padding: 11px 13px; }
}
@media (max-width: 374px) {
  .hex-decoder-tool .hdt-shell { padding: 28px 10px; }
  .hex-decoder-tool .hdt-hero h1 { font-size: 26px; }
  .hex-decoder-tool .hdt-hero > p:last-child { font-size: 14px; }
  .hex-decoder-tool .hdt-button { padding-right: 10px; padding-left: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hex-decoder-tool *, .hex-decoder-tool *::before, .hex-decoder-tool *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}