
.color-picker {
    display: flex;
    gap: 20px;
    /* margin-bottom: 20px; */
    justify-content: space-around;
}

.color-input {
    /* display: flex; */
    align-items: center;
    /* gap: 10px; */
}

.color-input label{
    width: 100%;
    display: block;
    text-align: center;
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
}

.color-input > div{
    display: flex;
    gap: 10px;
}



.result {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    position: relative;
}

.pass {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.fail {
    background-color: #ffebee;
    color: #c62828;
}

.info-icon {
    margin-left: 5px;
    cursor: pointer;
}

.tooltip {
    display: none;
    background-color: #333;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 5px;
    font-size: 14px;
    position: absolute;
    bottom: -30px;
    z-index: 9;
}

/* Add these styles to your existing CSS */
.color-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.suggestion-box {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.suggestion-box:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Add these new styles */
.preview-container {
    position: relative;
    margin: 20px 0;
}

.preview-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    background: #fff;
    padding: 10px 23px;
    border-radius: 30px;
}

.preview-options {
    display: flex;
    gap: 8px;
}

.preview-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 16px;
}

.preview-btn.active {
    background: #ddd;
}

#swap-colors {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.text-size-controls {
    display: flex;
    gap: 5px;
}

.text-size-btn,
.icon-btn {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

.text-size-btn.active,
.icon-btn.active {
    background: #ddd;
}

.large-text {
    font-size: 24px;
    font-weight: bold;
}

.icon-example {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    font-size: 24px;
    justify-content: center;
}

.contrast-slider-container {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

#contrast-slider {
    width: 100%;
    margin: 15px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

.slider-ticks {
    position: relative;
    height: 20px;
}

.slider-ticks span {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    font-size: 11px;
    color: #666;
}

/* Update the preview box */
.preview {
    width: 100%;
    height: 150px;
    min-height: 150px;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    margin: 20px 0 10px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 20px;
}
.marginT20{margin-top: 20px;}

.preview>div {
    width: 47%;
    text-align: center;
    display: inline-block;
    line-height: 110px;
}

.rangeWrapper {
    width: 100%;
    border: 1px solid #000;
    height: 9px;
    border-radius: 5px;
    margin: 10px 0;
    overflow: hidden;
}

.rangeWrapper span {
    display: block;
    background-color: green;
    width: 100%;
    height: 5px;
    border-radius: 5px;
    margin-top: 0.5px;
}


.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    padding: 5px;
    font-size: 14px;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: #333;
}

.copy-btn.copied {
    color: #4CAF50;
}

.copy-btn.copied::after {
    content: 'Copied!';
    position: absolute;
    right: 0;
    top: -25px;
    background: #4CAF50;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    white-space: nowrap;
}

input[type="color"]{
    cursor: pointer;
    border: none;
    height: 36px;
    margin-top: -1px;
}
 input[type="text"]{
    width: 70px;
    height: 28px;
    margin-top: 3px;
 }

 .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#contrastResult span{
    display: block;
    text-align: center;
    font-size: 30px;
}

.downloadReportWrapper{
    display: flex;
    gap: 20px;
}

.downloadReportWrapper h2{
    margin-top: 4px;
    margin-bottom: 4px;
}

@media (max-width: 650px) {
    .color-picker{
        display: block;
    }
    .color-input > div{
        justify-content: center;
        margin-bottom: 20px;
    }
    h3#contrastResult{
        text-align: center;
    }

    .preview>div {
        width: 100%;        
        display: block;
        line-height: 50px;
    }
    
}

hr{
margin: 15px 0;
}
h3{
    margin: 0 0 10px;
}
h4{
    margin: 0 0 6px;
}
ul{
    margin-left: 25px;
}

ul li p{
    margin-bottom: 5px;
}