@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;700&display=swap');

.ctcb-container {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #ffffff;
    padding: 20px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    max-width: 700px;
    width: 100%;
    margin: 20px auto;
    border-top: 5px solid #007bff;
}

/* --- Input & Buttons --- */
.ctcb-container h1 { color: #005a9c; text-align: center; margin-bottom: 25px; }
.form-group { margin-bottom: 15px; }
.form-group-inline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.gender-selection, .options-selection { display: flex; flex-direction: column; gap: 8px; }
.gender-selection > div { display: flex; gap: 15px; }
.ctcb-container label { display: block; font-weight: 500; margin-bottom: 5px; color: #555; }
.ctcb-container input[type="text"] { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 6px; box-sizing: border-box; font-size: 16px; }
.ctcb-container input[type="radio"], .ctcb-container input[type="checkbox"] { margin-right: 5px; transform: scale(1.1); }
#btnSuggest { display: block; width: 100%; padding: 15px; background-color: #d9534f; color: white; border: none; border-radius: 6px; font-size: 18px; font-weight: 700; cursor: pointer; transition: background-color 0.3s ease; margin-top: 10px; }
#btnSuggest:hover { background-color: #c9302c; }
#btnChange { background-color: #28a745; margin-top: 20px; }
#btnChange:hover { background-color: #218838; }

/* --- Filters --- */
.ctcb-filters { background-color: #f8f9fa; padding: 15px; border-radius: 8px; margin: 25px 0; }
.filter-title { margin: 0 0 10px 0; font-size: 16px; color: #333; }
.filter-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-label { background-color: #e9ecef; color: #495057; padding: 8px 12px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s ease; user-select: none; }
.tag-label input { display: none; }
.tag-label:has(input:checked) { background-color: #007bff; color: white; font-weight: 500; }

/* --- Results --- */
#results { margin-top: 30px; border-top: 2px solid #eee; padding-top: 20px; }
#results h2 { color: #005a9c; text-align: center; }
.result-message { text-align: center; color: #6c757d; font-style: italic; }
.name-suggestion { position: relative; background-color: #fff; border: 1px solid #e9ecef; border-left: 5px solid #007bff; padding: 15px; padding-right: 50px; margin-bottom: 15px; border-radius: 6px; }
.name-suggestion .full-name { font-size: 20px; font-weight: 700; color: #d9534f; }
.name-suggestion .reason { font-style: italic; color: #666; margin-top: 5px; }

/* --- Favorites & Share --- */
.btn-like { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; transition: transform 0.2s ease; }
.btn-like:hover { transform: scale(1.2); }
.btn-like.liked { filter: none; color: #e53935; }
#favorites-section { margin-top: 40px; border-top: 2px solid #d9534f; padding-top: 20px; }
#favorites-section h2 { color: #d9534f; text-align: center; }
.favorite-item { display: flex; justify-content: space-between; align-items: center; background-color: #fff8f8; padding: 12px; border-radius: 6px; margin-bottom: 10px; }
.favorite-item .full-name { font-weight: 700; font-size: 18px; }
.btn-remove-fav { background-color: #6c757d; color: white; border: none; border-radius: 4px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
#share-section { margin-top: 25px; padding-top: 15px; border-top: 1px dashed #ccc; }
#share-section label { font-weight: 700; color: #005a9c; }
.share-input-group { display: flex; gap: 10px; }
#shareLink { flex-grow: 1; background-color: #e9ecef; color: #495057; }
#btnCopyLink { flex-shrink: 0; padding: 8px 15px; font-size: 14px; background-color: #ffc107; color: #212529; font-weight: 500; border: none; border-radius: 6px; cursor: pointer; }
#btnCopyLink:hover { background-color: #e0a800; }