/* =========================================================================
   CSS POUR LA GESTION DES BOOKMARKS (selector-SearchBookmark)
   S'appuie sur les styles de stylesDIV.css
   ========================================================================= */

/* Le selector herite des styles de base de #global-selector-container > div */
/* Pas besoin de redefinir background, padding, border, etc. */

#selector-SearchBookmark {
    min-width: 150px; /* Largeur minimale, s'adapte aux autres selecteurs */
}

/* Container du bouton de filtre (comme filter-button-container dans ViewData) */
#filter-bookmark-button-container {
    margin-bottom: 10px;
}

#filter-bookmark-button-container button {
    width: 100%;
    padding: 5px;
    font-size: 11px;
    font-family: Arial, sans-serif;
    color: #000;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

#filter-bookmark-button-container button:hover {
    background-color: #7ae95c;
}

/* Le titre h4 utilise automatiquement le style h4 uniforme defini dans stylesDIV.css */
/* Pas besoin de le redefinir */

/* Liste des checkboxes de categories */
#bookmark-category-list {
    margin-bottom: 10px;
    padding: 5px;
    background-color: #f5f5f5;
    border-radius: 3px;
    max-height: 150px;
    overflow-y: auto;
}

/* Item de checkbox de categorie */
#bookmark-category-list .category-checkbox-item {
    display: flex;
    align-items: center;
    padding: 3px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#bookmark-category-list .category-checkbox-item:hover {
    background-color: rgba(122, 233, 92, 0.2);
}

#bookmark-category-list .category-checkbox-item input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

#bookmark-category-list .category-checkbox-item label {
    flex: 1;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    margin: 0;
}

/* Container de la liste des bookmarks */
#bookmarks-list-container {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px;
    background-color: white;
}

/* Items de la liste */
#bookmarks-list-container .bookmark-item {
    display: flex;
    align-items: center;
    padding: 2px;
    margin-bottom: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#bookmarks-list-container .bookmark-item:hover {
    background-color: rgba(122, 233, 92, 0.2);
}

#bookmarks-list-container .bookmark-item input[type="radio"] {
    width: 12px;
    height: 12px;
    margin-right: 2px;
    cursor: pointer;
    vertical-align: middle;
}

#bookmarks-list-container .bookmark-item label {
    flex: 1;
    cursor: pointer;
    font-size: 11px;
    color: #333;
    margin: 0;
    line-height: 12px;
    display: flex;
    align-items: center;
}

#bookmarks-list-container .bookmark-item input[type="radio"]:checked + label {
    font-weight: bold;
    color: #000;
}

/* Les boutons utilisent .container-buttons defini dans stylesDIV.css */
/* Ils heritent automatiquement du style: fond blanc, hover vert */

/* Scrollbar personnalisee */
#bookmarks-list-container::-webkit-scrollbar {
    width: 6px;
}

#bookmarks-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#bookmarks-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

#bookmarks-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Message quand la liste est vide */
#bookmarks-list-container p {
    text-align: center;
    color: #666;
    font-size: 11px;
    margin: 10px 0;
}

/* =========================================================================

/* =========================================================================
   CSS POUR LE FORMULAIRE D'EDITION DE BOOKMARK
   Identique au formulaire dataForm pour coherence visuelle
   ========================================================================= */

/* Conteneur principal du formulaire */
#editBookmarkForm {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

/* Titre du formulaire */
#editBookmarkForm h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
}

/* Groupes de champs */
#editBookmarkForm .form-group {
    margin-bottom: 15px;
}

#editBookmarkForm .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

/* Champs de saisie */
#editBookmarkForm textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    height: 100px;
    resize: vertical;
}

#editBookmarkForm textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* Compteur de caracteres */
#editBookmarkForm small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Zone d'actions (boutons) */
#editBookmarkForm .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

/* Styles des boutons */
#editBookmarkForm .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

#editBookmarkForm .btn-primary {
    background-color: #007bff;
    color: white;
}

#editBookmarkForm .btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

#editBookmarkForm .btn-secondary {
    background-color: #6c757d;
    color: white;
}

#editBookmarkForm .btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}
