/* Word Ladder Solver Styles - Mobile Optimized */
.word-ladder-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

    .word-ladder-container label, .word-ladder-container .form-group-lg label {
        font-weight: bold !important;
        font-size: .8em !important;
    }

/* Form Styles */
.form-group {
    margin-bottom: 15px;
}

.form-group-lg label {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: #333;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 5px;
    transition: border-color 0.2s ease;
}

    .form-control:focus {
        border-color: #6aaa64;
        outline: 0;
        box-shadow: 0 0 0 3px rgba(106, 170, 100, 0.25);
    }

/* Word list dropdown styling */
#ddlWordList {
    max-width: 200px;
}

/* Word Input Fields Layout */
.word-inputs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.word-input-col {
    flex: 1;
    min-width: 180px;
}

.input-word {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 18px;
}

.feedback {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Improved checkbox styling */
.options-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    margin-top:25px;
}

.checkbox {
    display: flex;
    align-items: center;
    margin: 0;
}

    .checkbox input[type="checkbox"] {
        margin-right: 20px;
        margin-bottom:8px;
        margin-left:10px;
    }

    .checkbox label {
        margin: 0;
        margin-right:50px;
        line-height: 1;
        margin-left:20px;
    }



/* Results Panel Styles */
.results {
    margin-top: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .results h3 {
        color: #333;
        margin-top: 0;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 2px solid #f0f0f0;
    }

.solution-summary {
    margin-bottom: 20px;
}

    .solution-summary p {
        font-size: 16px;
        line-height: 1.5;
    }

/* Word Path Styles */
.word-path {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.word-item {
    background-color: #e8f5e9;
    border: 2px solid #6aaa64;
    color: #2e7d32;
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

    .word-item i {
        margin: 0 5px;
        color: #6c757d;
    }

/* Alternatives Section */
.alternatives {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.alternatives-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
}

.alternative-item {
    background-color: #f1f8e9;
    border: 1px solid #aed581;
    color: #558b2f;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 500;
}

/* Hint Panel */
.hint-panel {
    margin-top: 20px;
    padding: 15px;
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    border-radius: 4px;
}

    .hint-panel h3 {
        color: #1976d2;
        margin-top: 0;
        border-bottom: none;
        padding-bottom: 5px;
    }

    .hint-panel p {
        margin-bottom: 0;
    }

/* Current Word Entry for Hints - Improved layout */
.current-word-entry {
    margin-top: 25px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .current-word-entry label {
        margin: 0;
        min-width: auto;
        font-weight: 500;
    }

    .current-word-entry .form-control {
        flex: 1;
        min-width: 150px;
        max-width: 200px;
        margin: 0;
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .word-ladder-container {
        padding: 15px;
    }

    .word-inputs-row {
        flex-direction: column;
        gap: 10px;
    }

    .options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .word-path {
        flex-direction: column;
    }

    .word-item i {
        transform: rotate(90deg);
        margin: 5px 0;
    }
}
/* Structured Word Ladder Example */
.example-ladder {
    background-color: #f8f9fa;
    border-left: 4px solid #6aaa64;
    padding: 15px 20px;
    margin: 20px 0;
}

.word-step-example {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
    gap: 10px;
}

.word-box-mini {
    display: inline-block;
    padding: 6px 12px;
    background-color: #fff;
    border: 2px solid #6aaa64;
    border-radius: 5px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #333;
}

.letter-changed {
    color: #e53935;
    font-weight: bold;
    position: relative;
}

.letter-normal {
    color: #333;
}

.example-ladder i {
    color: #6c757d;
}

/* Responsive adjustment */
@media (max-width: 576px) {
    .word-step-example {
        flex-direction: column;
    }

        .word-step-example i {
            transform: rotate(90deg);
        }
}