.sssg-container {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.sssg-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

/* Example Boxes */
.mode-boxes {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    justify-content: space-between;
}

.mode-box {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.mode-box b {
    color: #2c3e50;
}

.highlight-char {
    color: red;
    font-weight: bold;
}

/* Responsive boxes for mobile */
@media (max-width: 768px) {
    .mode-boxes {
        flex-direction: column;
    }
}

.mode-selector {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 16px;
}

.mode-selector label {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
}

.mode-desc {
    display: block;
    font-size: 14px;
    color: #555;
    margin-top: 4px;
    font-weight: normal;
}

#quick-options {
    margin-bottom: 15px;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 6px;
    display: block;
}

#quick-options label {
    margin-right: 15px;
}

.input-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    min-height: 80px;
}

.controls {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.controls label {
    font-weight: bold;
    white-space: nowrap;
}

.controls select, 
.controls input[type="color"], 
.controls button {
    padding: 8px 12px;
    font-size: 14px;
}

.controls button {
    background: #007cba;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    min-width: 90px;
}

.controls button:hover {
    background: #005a87;
}

.output-box {
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-height: 60px;
    word-wrap: break-word;
    font-size: 18px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

/* Preset Buttons Styles */
.preset-tabs {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tab-button {
    padding: 8px 12px;
    background: #555;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.tab-button.active {
    background: #007cba;
}

.preset-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 6px;
}

.preset-group button {
    padding: 6px 10px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.preset-group button:hover {
    background: #005a87;
}
.mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.mode-selector .mode-box {
    flex: 1;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.mode-selector .mode-box label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer; /* makes the whole label clickable */
}

.mode-selector .mode-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }
}
