.word-generator-plugin {
    font-family: 'Arial', sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.wg-main-frame {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
}

.wg-input-group {
    margin-bottom: 20px;
}

.wg-label {
    font-weight: bold;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.wg-input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.wg-section {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
}

.wg-section-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.wg-sub-label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.wg-fixed-letters-group {
    margin-bottom: 15px;
}

.wg-letter-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.wg-letter-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.wg-letter-entry {
    width: 30px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    text-transform: lowercase;
}

.wg-letter-number {
    font-size: 10px;
    color: #666;
}

.wg-options-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.wg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    cursor: pointer;
}

.wg-checkbox {
    margin: 0;
}

.wg-length-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.wg-length-label {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.wg-length-input {
    width: 60px;
    padding: 4px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.wg-custom-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wg-custom-label {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wg-custom-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.wg-control-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.wg-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.wg-primary {
    background-color: #007cba;
    color: white;
}

.wg-primary:hover {
    background-color: #005a87;
}

.wg-secondary {
    background-color: #6c757d;
    color: white;
}

.wg-secondary:hover {
    background-color: #545b62;
}

.wg-results {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    min-height: 300px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.wg-results-placeholder {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* SINGLE COLUMN RESULTS - NO COLUMNS */
.wg-word-list {
    display: block;
    width: 100%;
}

.wg-word-item {
    display: block;
    width: 100%;
    padding: 8px 5px;
    border-bottom: 1px solid #f0f0f0;
    line-height: 1.5;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-word;
    box-sizing: border-box;
}

.wg-word-item:last-child {
    border-bottom: none;
}

.wg-word-item:nth-child(even) {
    background-color: #fafafa;
}

.wg-results-summary {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #ddd;
    font-weight: bold;
    color: #333;
    text-align: center;
    background: white;
}

.wg-status {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 13px;
    color: #495057;
}

/* Status colors */
.wg-status-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wg-status-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.wg-status-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.wg-status-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive design */
@media (max-width: 768px) {
    .word-generator-plugin {
        padding: 10px;
    }
    
    .wg-main-frame {
        padding: 15px;
    }
    
    .wg-letter-inputs {
        gap: 5px;
    }
    
    .wg-letter-entry {
        width: 25px;
        height: 25px;
    }
    
    .wg-options-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .wg-control-buttons {
        flex-direction: column;
    }
    
    .wg-button {
        width: 100%;
    }
    
    .wg-input {
        width: 100%;
    }
    
    .wg-custom-input {
        width: 100%;
    }
}

/* FORCE SINGLE COLUMN - OVERRIDE ANYTHING ELSE */
#wg-results * {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
}

.wg-word-list,
.wg-word-item {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    column-count: 1 !important;
    -webkit-column-count: 1 !important;
    -moz-column-count: 1 !important;
}

/* Remove any grid or flexbox from results */
#wg-results {
    display: block !important;
}

.wg-word-list {
    display: block !important;
    columns: 1 !important;
    -webkit-columns: 1 !important;
    -moz-columns: 1 !important;
}

.wg-word-item {
    display: block !important;
    width: 100% !important;
    float: none !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
}