@font-face {
    font-family: 'macymed_link_tracker_font';
    src: url('../fonts/macymed_link_tracker_font.eot') format('eot'),
        url('../fonts/macymed_link_tracker_font.woff') format('woff'),
        url('../fonts/macymed_link_tracker_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.macymed_link_tracker-pro-message h3.macymed_link_tracker-pro-message-text {
    font-size: 1em !important;
    margin-top: 4px !important;
}

.macymed_link_tracker-pro-message h3.dashicons-before:before {
    font-size: 1em !important;
}

#adminmenu .macymed-link-tracker-logo-menu div.wp-menu-image:before,
#adminmenu #macymed-link-tracker-logo-menu div.wp-menu-image:before {
    content: "\e918";
    /* Codepoint généré par IcoMoon */
    font-family: 'macymed_link_tracker_font';
    font-size: 18px;
    margin-block-start: 1px;
}

.macymed_link_tracker-title .subtitle {
    font-size: 2em;
    font-weight: 400;
    color: #666;
    margin-top: 10px;

    padding-bottom: 8px;
}

.macymed_link_tracker-title img {
    height: 70px;
}

.link-tracker-image {
    background-image: url('../img/link-tracker.svg');
    width: 300px;
    height: 97px;
    background-size: contain;
    background-repeat: no-repeat;
}


.modal-link-tracker #details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;

}

.modal-link-tracker .modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;

    max-width: 800px;
    max-height: 80%;
    /* Limite la hauteur totale */
    overflow: hidden;
    /* Empêche le débordement global */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-link-tracker .modal-body {
    max-height: calc(80vh - 60px);
    /* Ajuste en fonction de la hauteur totale */
    overflow-y: auto;
    /* Permet uniquement le défilement vertical */
    padding-right: 10px;
    /* Ajoute un espace pour éviter que la scrollbar cache le contenu */
}

.modal-link-tracker #modal-details-title {
    width: 100%;
    max-width: 600px;

}

.modal-link-tracker #modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 10;
    font-size: 25px;
    /* Assure qu'il reste au-dessus du contenu défilable */
}

.modal-link-tracker .network-graph {
    width: 100vh;
    max-width: 700px;
    max-height: 500px;
    height: 100vh;
    display: flex;
    /* Nécessaire pour aligner les enfants */
    align-items: center;
    justify-content: center;
    border: 1px solid lightgray;
}


.macymed_link_tracker_table th.sorted a .sorting-indicator {
    display: inline-block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 4px 4px 0 4px;
    border-color: #555 transparent transparent transparent;
    vertical-align: middle;
}

.macymed_link_tracker_table th.sorted.desc a .sorting-indicator {
    transform: rotate(180deg);
}

.macymed_link_tracker_table th.sorted.asc a .sorting-indicator {
    transform: rotate(0deg);
}
.macymed-header {
    background: #f60;
    padding: 15px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    width: calc(100% - 160px);
    position: fixed;
    top: 32px;
    left: 160px;
    z-index: 9999
}

.macymed-custom-sidebar {
    transition: transform .3s ease-in-out
}

.macymed-custom-sidebar h4,
macymed-custom-sidebar h4 {
    font-size: 14px;
    color: #f60;
    text-transform: uppercase;
    border-radius: 5px
}

.macymed-custom-sidebar h4 {
    font-size: 14px;
    font-weight: 600;
    color: #ff6600;
    text-transform: uppercase;
    margin-bottom: 0px;
    padding: 20px 8px 5px 8px;
    border-radius: 5px;
    border-top: 1px solid #f6e1cc;
}

.macymed-custom-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px
}

.macymed-custom-sidebar ul li {
    margin-bottom: 5px
}

.macymed-custom-sidebar ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color .3s, color .3s
}

.macymed-custom-sidebar ul li a:hover {
    background-color: #f60;
    color: #fff
}

.macymed-content {
    margin-left: 250px;
    margin-top: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .1);
    width: calc(100% - 260px);
    transition: margin-left .3s ease-in-out;
    display: inline-block;
}
.macymed-content .changelog { padding: 20px; font-family: Arial, sans-serif; }
.macymed-content .changelog-title { font-size: 1.5em; font-weight: bold; }
.macymed-content .changelog-subtitle { font-size: 1.2em; font-weight: bold; margin-top: 10px; }
.macymed-content .changelog-list { margin-left: 20px; }
.macymed-content .changelog-description { color: #555; }
.macymed-hamburger {
    display: none;
    position: fixed;
    top: 40px;
    left: 10px;
    z-index: 3;
    background: #f60;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px
}

@media screen and (max-width:1024px) {
    .macymed-hamburger {
        display: block
    }

    .macymed-custom-sidebar {
        transform: translateX(-100%);
        left: 0;
        top: 32px;
        width: 250px;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, .2)
    }

    .macymed-custom-sidebar.active {
        transform: translateX(0)
    }

    .macymed-content {
        margin-left: 0;
        width: 100%
    }
}

.macymed-custom-sidebar {
    width: 260px;
    background-color: #fdfaf6;
    border-right: 1px solid #ddd;
    height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 15px;
    position: fixed;
    top: 32px;
    left: 160px;
    z-index: 2;
    box-shadow: 2px 0 5px rgba(0, 0, 0, .1)
}

.macymed-custom-sidebar .sidebar-logo {
    text-align: center;
    margin-bottom: 15px
}

.macymed-custom-sidebar .sidebar-logo a {
    display: inline-block
}

.macymed-custom-sidebar .link-tracker-image {
    background-image: url(../img/link-tracker.svg);
    width: 150px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0 auto
}

.macymed-custom-sidebar ul li a::before {
    content: "▶";
    font-size: 12px;
    margin-right: 8px;
    transition: transform .3s ease
}

.macymed-custom-sidebar ul li a:hover::before {
    transform: translateX(5px)
}

.macymed-upgrade-btn {
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    background-color: #ff6600;
    color: white;
    border-radius: 5px;
    margin: 15px auto;
    text-decoration: none;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}

.macymed-upgrade-btn:hover {
    background-color: #cc5200;
    color: #fff;
}

@media screen and (max-width:1024px) {
    .macymed-custom-sidebar {
        transform: translateX(-100%);
        left: 0;
        top: 32px;
        width: 250px;
        height: 100vh;
        box-shadow: 2px 0 10px rgba(0, 0, 0, .2)
    }

    .macymed-custom-sidebar.active {
        transform: translateX(0)
    }
}

macymed-custom-sidebar h4 {
    font-weight: 600;
    margin-bottom: 0;
    padding: 20px 8px 5px;
    border-top: 1px solid rgba(255, 102, 0, .2)
}

.macymed-custom-sidebar ul li a:active{
    background: #f6e1cc;
}

.macymed-custom-sidebar ul li a.active{
    background: #f6e1cc;
}

.macymed-custom-sidebar ul li a.active:hover{
    background: #cc5200;
}