.hidden {
    display: none !important;
}

#outputContainer {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 20px;
	animation: fadeIn 0.4s ease-in;
}

#outputContainer::-webkit-scrollbar {
    height: 8px;
}
#outputContainer::-webkit-scrollbar-track {
    background: var(--primary-50);
}
#outputContainer::-webkit-scrollbar-thumb {
    background: var(--primary-100);
    border-radius: 4px;
}
#outputContainer::-webkit-scrollbar-thumb:hover {
    background: var(--primary-200);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bg-control-card {
    padding: 16px 24px;
    background: hsl(var(--white));
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    margin-bottom: 24px;
    gap: 20px;
	height: 150px;
}

.bg-info1 label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--gray-400);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.bg-info1 p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--gray-400);
    line-height: 1.4;
}

.bg-interactive-group {
    display: flex;
    align-items: center;
    background: var(--preview-bg);
    padding: 6px 6px 0px 16px;
    border-radius: 10px;
    border: 1px solid var(--bs-border-color);
    gap: 12px;
	margin-top:10px;
}

#bgHexLabel {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-400);
    min-width: 80px;
}

.bg-picker-wrapper {
    width: 36px;
    height: 36px;
}

#bgInput {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    cursor: pointer;
}

#bgInput::-webkit-color-swatch {
    border: 1px solid #aaa;
    border-radius: 50%;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: left;
}

.radio-group input[type="radio"] {
  clip: rect(0 0 0 0);
  clip-path: inset(100%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.radio-group input[type="radio"]:checked + span {
  box-shadow: 0 0 0 0.0625em #0043ed;
  background-color: #dee7ff;
  z-index: 1;
  color: #0043ed;
}

.radio-group label span {
  display: block;
  cursor: pointer;
  background-color: #fff;
  padding: 0.375em .75em;
  position: relative;
  margin-left: .0625em;
  box-shadow: 0 0 0 0.0625em #b5bfd9;
  letter-spacing: .05em;
  color: #3e4963;
  text-align: center;
  transition: background-color .5s ease;
}

.radio-group label:first-child span {
  border-radius: .375em 0 0 .375em;
}

label:last-child span {
  border-radius: 0 .375em .375em 0;
}

.output-grid {
    display: grid;
    min-width: 650px; 
    grid-template-columns: 1.2fr 1.2fr 0.6fr 1.5fr;
    gap: 1px;
    background-color: #ddd;
	border: 1px solid var(--bs-border-color);
}

@media (max-width: 800px) {
    .output-grid {
        grid-template-columns: 1fr 1fr 40px 1.2fr;
        font-size: 0.85rem;
    }
    
    .header h3 {
        font-size: 0.8rem;
    }
}

.cell.action-col {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fcfcfc;
}

.keep-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.cell {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    min-height: 60px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: inherit;
	overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.variables-row {
	color:#000;
}

.example-buttons {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray-400);
}

.btn-example {
    background: #e9ecef;
    border: none;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
	color: hsl(var(--btn-black));
}

.btn-example:hover {
    background: #dee2e6;
    color: #000;
}

.header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--main-100);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);	
}

.header h3 {
    margin: 0;
    font-size: 0.85rem;
	white-space: nowrap;
}

.swatch-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(128, 128, 128, 0.4);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.color-code, .dark-hex {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85em;
    opacity: 0.9;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.keep-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    cursor: pointer;
    background: rgba(128, 128, 128, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

.dark-picker {
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.dark-picker::-webkit-color-swatch-wrapper { padding: 0; }
.dark-picker::-webkit-color-swatch {
    border: 1px solid rgba(128, 128, 128, 0.5);
    border-radius: 50%;
}

.disabled-picker {

}

.dark-hex {
    font-family: monospace;
    font-size: 0.85rem;
    min-width: 70px;
}

#errorLog {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #856404;
}

#errorLog h5 {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    text-transform: uppercase;
}

#errorList {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

#errorList li {
    margin-bottom: 4px;
}

#errorList code {
    background: rgba(0,0,0,0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.color-info {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

.contrast-badge {
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    width: fit-content;
    text-transform: uppercase;
}

.badge-pass {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-fail {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mobile-text { display: none; }

@media (max-width: 800px) {
    .desktop-text { display: none; }
    .mobile-text { display: inline; }
}