.title-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.custom-title-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

.checkbox-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkbox-label .help-text {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.form-hint.hidden {
    display: none;
}

#chapterTitleInput:disabled {
    background-color: #f0f0f0;
    color: #999;
    cursor: not-allowed;
    border-color: #ddd;
    opacity: 0.6;
}

#chapterTitleInput:disabled::placeholder {
    color: #bbb;
}

#chapterTitleInput:enabled {
    background-color: white;
    color: #333;
    cursor: text;
    border-color: #ccc;
    opacity: 1;
}

#chapterTitleInput:enabled:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.dark-theme .title-checkbox-container {
    background: #2d2d2d;
    border-color: #444;
}

.dark-theme .checkbox-label {
    color: #fff;
}

.dark-theme .checkbox-label .help-text {
    color: #aaa;
}

.dark-theme .form-hint {
    color: #aaa;
}

.dark-theme #chapterTitleInput:disabled {
    background-color: #1a1a1a;
    color: #666;
    border-color: #333;
}

.dark-theme #chapterTitleInput:enabled {
    background-color: #2d2d2d;
    color: #fff;
    border-color: #555;
}

.dark-theme #chapterTitleInput:enabled:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

#chapterTitleInput {
    transition: all 0.3s ease;
}

.title-checkbox-container {
    transition: all 0.3s ease;
}

.title-checkbox-container:hover {
    background: #f0f4f8;
    border-color: #4CAF50;
}

.dark-theme .title-checkbox-container:hover {
    background: #363636;
    border-color: #4CAF50;
}