.tool-content {
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    padding: 1.2em;
    border-radius: .6em;
    position: relative;
    display: flex;
    flex-direction: column;
}

.color-blindness-test {
    background: #f8fafc;
}

.progress-container {
    padding: 1.2em 2em;
    border-bottom: 1px solid #e9ecef;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.progress-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

.progress-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a6fa5;
}

.progress-bar {
    height: 12px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #5a4df8, #aea7ff);
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 10%;
}

.tool-content .color-blindness-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 380px;
    padding: 1.2em;
}

.tool-content .color-blindness-preview img {
    height: 100%;
}

.tool-content .color-blindness-question {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    padding-bottom: 1.2em;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.tool-content .color-blindness-options {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    margin-bottom: 1.5em;
}

.tool-content .color-blindness-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid 2px #dde;
    color: #2c3e50;
    border-radius: 23px;
    min-width: 119px;
    height: 45px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.tool-content .color-blindness-options span:hover {
    border-color: #8b82ff;
    color: var(--primary-color);
    background-color: #f2f1fe;
}

.color-blindness-result {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 1.5em 0;
    display: none;
}

.color-blindness-result .result-title {
    font-size: 22px;
    font-weight: 500;
    color: #343a40;
    margin-bottom: 0;
}

.color-blindness-result .result-score {
    font-size: 54px;
    font-weight: 700;
    color: var(--primary-color);
}

.color-blindness-result .result-message {
    font-size: 16px;
    color: #495057;
    margin: 1.5em auto;
    line-height: 1.6;
    max-width: 600px;
    text-align: center;
}

.color-blindness-result .restart-btn {
    background: var(--primary-color);
    color: white;
    padding: 8px 36px;
    border: none;
    border-radius: 7px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

@media (max-width: 768px) {
    .tool-content {
        padding: .8em !important;
        box-shadow: unset;
    }

    .progress-container {
        padding: 1em;
    }

    .tool-content .color-blindness-preview {
        width: 100%;
        height: auto;
        padding: .8em;
    }

    .tool-content .color-blindness-preview img {
        height: auto;
        max-width: 100%;
    }

    .tool-content .color-blindness-question {
        font-size: 1em;
        font-weight: normal;
    }

    .tool-content .color-blindness-options {
        flex-wrap: wrap;
        gap: .5em;
        margin-bottom: 1.2em;
    }

    .tool-content .color-blindness-options span {
        min-width: 100px;
        height: 36px;
        font-size: 14px;
        border-width: 1px;
    }

    .tool-content .color-blindness-options span:hover {
        border-color: #dde;
        color: #2c3e50;
        background-color: transparent;
    }
}