/* Style scoped for the AI Text Detector tool */
.ai-text-detector-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.ai-text-detector-left, .ai-text-detector-right {
    flex: 1;
    padding: 1rem;
    box-sizing: border-box;
}

.ai-text-detector-left {
    flex: 1 1 50%;
}

.ai-text-detector-right {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    box-sizing: border-box;
}

.ai-text-detector-title {
    font-size: 2em;
    color: #343541;
    margin-bottom: 20px;
    text-align: center;
}

textarea#ai-text-input {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 20px;
    box-sizing: border-box;
}

button#ai-detect-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 12px 20px;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
    box-sizing: border-box;
}

button#ai-detect-btn:hover {
    background-color: #45a049;
}

.ai-text-detector-result-title {
    margin-bottom: 15px;
    font-size: 2em;
    text-align: center;
    font-weight: bold;
}

#ai-detection-results {
    padding: 10px;
    font-size: 1em;
    white-space: pre-wrap;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    width: 100%;
    min-height: 220px;
    box-sizing: border-box;
}

/* Highlighted text styles */
.highlight {
    background-color: #FFFF00;
    font-weight: bold;
}

/* Responsive styles */
@media (max-width: 600px) {
    .ai-text-detector-container {
        flex-direction: column;
				padding: 1rem;
    }

    .ai-text-detector-left, .ai-text-detector-right {
        flex: 1 1 100%;
        padding: 0.3rem;
    }

    .ai-text-detector-title {
        font-size: 1.5em;
    }

    textarea#ai-text-input {
        font-size: 0.9em;
    }

    button#ai-detect-btn {
        padding: 10px;
        font-size: 0.9em;
    }

    .ai-text-detector-result-title {
        font-size: 1em;
    }

    #ai-detection-results {
        font-size: 0.9em;
        min-height: 120px;
    }
}

@media (max-width: 320px) {
    .ai-text-detector-title {
        font-size: 1.2em;
    }

    textarea#ai-text-input {
        font-size: 0.8em;
    }

    button#ai-detect-btn {
        padding: 8px;
        font-size: 0.8em;
    }

    .ai-text-detector-result-title {
        font-size: 0.9em;
    }

    #ai-detection-results {
        font-size: 0.8em;
        min-height: 100px;
    }
}
