/* Copyright (C) 2025, Célia Piquet <cepiquet@proton.me> */
.selected {
    background: linear-gradient(135deg, #fcf4e5, #f5f1e8, #ede4d3);
    box-shadow: 0 0 4px rgba(255, 193, 7, 0.3), inset 0 0 1px rgba(255, 235, 59, 0.4);
    color: #F4A909;
    border: solid 3px #5d4e37;
}

.selected pre {
    box-shadow: 0 0 4px #5d4e37, inset 0 0 1px rgba(255, 235, 59, 0.4);
}

.selected p {
    color: black;
}

.selected p code {
    color: #5d4e37;
    font-weight: bold;
}

.copy-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.7;
}

.copy-icon:hover {
    opacity: 1;
}

#copyBtn {
    cursor: pointer;
}


.btn-primary {
    background-color: #64dab7 !important;
    border-color: rgba(110, 255, 239, 0.2) !important;
    color: #2e3439 !important;
}

.btn-primary:hover {
    background-color: rgba(110, 255, 239, 0.2) !important;
    border-color: rgba(110, 255, 239, 0.2) !important;
    color: white !important;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #64dab7 !important;
    border-color: rgba(110, 255, 239, 0.2) !important;
    color: #2e3439 !important;
}

.form-check-input:checked {
    background-color: #64dab7;
    border-color: #64dab7;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.form-check-input:indeterminate {
    background-color: #64dab7 !important;
    border-color: #64dab7 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e") !important;
}


.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(110, 255, 239, 0.2) !important;
}

#scrollToBottom:hover {
    background: #14b8a6 !important;
    transform: scale(1.1);
    transition: all 0.2s ease;
}

#scrollToBottom {
    color: #2e3439;
    opacity: 1;
    pointer-events: auto;
}

#scrollToBottom:disabled {
    opacity: 0.3;
    pointer-events: none;
}

#nbSelected {
    color: #14b8a6;
}

#nbLevels {
    color: #e685b5;
}

#title {
    margin-bottom: 25px;
}

.sidebar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px; /* ou min-width: 250px; max-width: 320px; */
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.main-content {
    margin-left: 280px; /* Doit correspondre à la largeur de la sidebar */
    margin-right: 20px;
    min-width: 0;
    padding: 20px; /* Ajouter du padding interne */
}

#urlBtn {
    margin-right: 70px;
}

h2 {
    font-size: 1.3rem;
}

.hljs-keyword {
    font-weight: bold;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .sidebar-fixed {
        position: fixed;
        left: -280px;
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 1050;
        transition: left 0.3s ease;
        background: var(--bs-dark);
    }

    .sidebar-fixed.show {
        left: 0;
    }

    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .overlay.show {
        opacity: 1;
        visibility: visible;
    }

    .burger-menu {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1030;
        background: #64dab7;
        border: none;
        border-radius: 6px;
        color: #2e3439;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    }

    .burger-menu:hover {
        background: #14b8a6;
        transform: scale(1.05);
        transition: all 0.2s ease;
    }

    .main-content {
        margin-left: 20px !important;
        margin-right: 20px;
        padding-top: 20px;
    }

    #urlBtn {
        margin-top: 20px;
        margin-right: 0;
    }

    #robotImg {
        width: 30px;
    }
}

#generatedUrl {
    overflow-x: auto;
    white-space: nowrap;
}