/*
   Styles for Color Contrast Checker
*/

.preview-root {
    border: 1px solid #e6e6e6;
    background: #ffffff;
}

/* Preview sample basics */
.preview-sample {
    padding: 14px;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

/* Large text style */
.preview-sample.large {
    font-size: 24px;
    font-weight: 700;
}

/* UI components in preview */
.ui-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.ui-outline {
    padding: 8px 14px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid currentColor;
    cursor: pointer;
}

.ui-card {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    min-width: 140px;
    margin-right: 8px;
}

.ui-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 12px;
}

/* suggestions boxes */
#suggestions .sugg {
    width: calc(33.333% - 8px);
    margin: 4px;
    min-height: 50px;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* responsive */
@media (max-width: 768px) {
    #suggestions .sugg {
        width: calc(50% - 8px);
    }
}

/* pass/fail colors */
.badge-pass {
    background-color: #28a745;
    color: #fff;
}

.badge-fail {
    background-color: #dc3545;
    color: #fff;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

/* small touches */
.preview-block {
    border: 1px dashed #f0f0f0;
    padding: 12px;
    border-radius: 6px;
}


.color-preview {
    width: 100%;
    height: 170px;
    border: 2px solid #ccc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.color-code {
    font-weight: bold;
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #c9c9c9;
}


.simulate-cvd-label {
    margin-bottom: 0;
}