/* Colors Tools Scoped CSS */
.color-preview-box {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.color-preview-small {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: inline-block;
    vertical-align: middle;
}
.color-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
.color-col {
    flex: 1;
    min-width: 150px;
}
.result-group { margin-top: 20px; margin-bottom: 20px; }
.result-group > label {
    font-weight: 600;
    color: #444;
    margin-bottom: 10px;
    display: block;
    font-size: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}
.result-val {
    font-size: 1.3em;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 4px;
    border: 1px solid #eee;
    font-family: monospace;
}
.btn-copy {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    padding: 6px 14px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}
.btn-copy:hover {
    background-color: #e0e0e0;
    border-color: #999;
}
.btn-copy-success {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-color: #a5d6a7 !important;
}
.wcag-badge {
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    display: inline-block;
    min-width: 70px;
    text-align: center;
}
.wcag-pass { background: #2e7d32; }
.wcag-fail { background: #c62828; }

.palette-swatch {
    height: 90px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.palette-col {
    flex: 1;
    text-align: center;
    min-width: 80px;
    margin-bottom: 15px;
}
.palette-col .btn-calc {
    margin-top: 5px;
    width: 100%;
}
.stop-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eee;
}
.stop-row input[type="color"] {
    width: 50px;
    height: 40px;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}
.stop-row input[type="range"] {
    flex: 1;
}
.preview-area {
    width: 100%;
    height: 220px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAMUlEQVQ4T2NkYGAQYcAP3uCTZhw1gGGYhAGBZIA/nYBwhYEwwLqGkQYQYmDUBg8mDQC5eQQG1c2YNAAAAABJRU5ErkJggg==');
}
.preview-inner {
    width: 100%;
    height: 100%;
    border-radius: 5px;
}
.generator-output {
    background: #ffffff;
    color: #1b5e20; border: 1px solid #a5d6a7;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1.1em;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid #111;
}
.form-control:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 2px rgba(46,125,50,0.2);
}



