#hex-to-rgb-tool * { box-sizing: border-box; }

#hex-to-rgb-tool {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0;
  color: #1a1a1a;
}

#hex-to-rgb-tool .hex-to-rgb-tool-wrap {
  border: 1.5px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
}

#hex-to-rgb-tool .hex-to-rgb-tool-input-area {
  padding: 10px;
  background: #fafafa;
  border-bottom: 1.5px solid #e5e5e5;
}

#hex-to-rgb-tool .hex-to-rgb-tool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#hex-to-rgb-tool .hex-to-rgb-tool-swatch {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  border: 1.5px solid #e5e5e5;
  background: #1a1a1a;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

#hex-to-rgb-tool .hex-to-rgb-tool-swatch:hover {
  border-color: #999;
}

#hex-to-rgb-tool .hex-to-rgb-tool-input-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
}

#hex-to-rgb-tool .hex-to-rgb-tool-hash {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #999;
  font-weight: 500;
  pointer-events: none;
  line-height: 1;
}

#hex-to-rgb-tool .hex-to-rgb-tool-input {
  width: 100% !important;
  padding: 14px 14px 14px 30px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  border: 1.5px solid #e5e5e5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #1a1a1a !important;
  outline: none !important;
  letter-spacing: 2px !important;
  font-family: 'Courier New', monospace !important;
  transition: border-color 0.2s !important;
  box-shadow: none !important;
  height: auto !important;
}



#hex-to-rgb-tool .hex-to-rgb-tool-input.hex-to-rgb-tool-error {
  border-color: #e53e3e !important;
}

#hex-to-rgb-tool .hex-to-rgb-tool-btn {
  border:none;
  border-radius:5px;
  padding:10px 20px;
  background:#1b6997;
  color:#fff;
  cursor:pointer;
  font-size:14px !important;
  font-weight:500;

  transition: all 0.25s ease;
}

#hex-to-rgb-tool .hex-to-rgb-tool-btn:hover {
  background:#155a80;
  transform: translateY(-1px);
}



#hex-to-rgb-tool .hex-to-rgb-tool-errmsg {
  font-size: 13px;
  color: #e53e3e;
  margin-top: 8px;
  display: none;
}

#hex-to-rgb-tool .hex-to-rgb-tool-results {
  padding: 10px;
}

#hex-to-rgb-tool .hex-to-rgb-tool-big-swatch {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1.5px solid #e5e5e5;
  background: #1a1a1a;
  transition: background 0.3s;
}

#hex-to-rgb-tool .hex-to-rgb-tool-results-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 16px;
}

#hex-to-rgb-tool .hex-to-rgb-tool-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 500px) {
  #hex-to-rgb-tool .hex-to-rgb-tool-cards {
    grid-template-columns: 1fr;
  }
}

#hex-to-rgb-tool .hex-to-rgb-tool-card {
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

#hex-to-rgb-tool .hex-to-rgb-tool-card:hover {
  border-color: #1a1a1a;
  background: #fafafa;
}

#hex-to-rgb-tool .hex-to-rgb-tool-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 6px;
}

#hex-to-rgb-tool .hex-to-rgb-tool-card-value {
  font-size: 15px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  color: #1a1a1a;
  word-break: break-all;
}

#hex-to-rgb-tool .hex-to-rgb-tool-copied {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

#hex-to-rgb-tool .hex-to-rgb-tool-copied.hex-to-rgb-tool-show {
  opacity: 1;
}








#hex-to-rgb-tool .hex-to-rgb-tool-history{
    margin-top:30px;
    border-radius:12px;
    overflow:hidden;
    background:#fff;
    border:1px solid #e5e7eb;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-head, #hex-to-rgb-tool .hex-to-rgb-tool-head{
    padding:15px;
    background:#e2e8f0;
    color:#000;
    font-weight:bold;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-empty{
    padding:20px;
    color:#64748b;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-row{
    display:flex;
    align-items:center;
	font-size: 14px;
    gap:10px;
    padding:16px 10px;
    border-bottom:1px solid #edf2f7;
    box-shadow:0 1px 4px rgba(0,0,0,.04);
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-row:last-child{
    border-bottom:none;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-color{
    width:22px;
    height:22px;
    border-radius:50%;
    flex-shrink:0;
    border:1px solid #cbd5e1;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-hex{
    min-width:90px;
    font-weight:600;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-rgb{
    flex:1;
    color:#475569;
	font-size: 14px;
	font-weight:500;
}

#hex-to-rgb-tool .hex-to-rgb-tool-history-copy{
    border:none;
    border-radius:5px;
    padding:10px 20px;
    background:#1b6997;
    color:#fff;
    cursor:pointer;
    font-size:14px !important;
    font-weight:500;
}


#hex-to-rgb-tool .hex-to-rgb-tool-history-copy:hover{
    opacity:.9;
    background:#d95a00 !important;
}