.seolinks-dashboard {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    color: #232323;
    box-shadow: 0 10px 30px rgba(0,0,0,.0);
}

.seolinks-dashboard h2 {
    font-size: 28px;
    margin-bottom: 25px;
}

.seolinks-dashboard table {
    width: 100%;
    border-collapse: collapse;
}

.seolinks-dashboard th,
.seolinks-dashboard td {
    padding: 14px;
    border-bottom: 1px solid #1e293b;
    font-size: 14px;
}

.seolinks-dashboard th {
    text-transform: uppercase;
    font-size: 12px;
    color: #e44f39;
}

.seolinks-dashboard td a {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: none;
}

.seolinks-dashboard td a:hover {
    text-decoration: underline;
}

/* Statuts */
tr.actif { background-color: #ffffff; }
tr.verifier { background-color: #78350f; }
tr.supprime { background-color: #7f1d1d; }



@media screen and (max-width: 768px) {
    
    /* Container principal */
    .seolinks-dashboard {
        padding: 15px 10px;
        width: 100%;
        box-sizing: border-box;
    }

    
    .seolinks-dashboard form {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 15px !important;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .seolinks-dashboard form input[type="date"],
    .seolinks-dashboard form input[type="text"],
    .seolinks-dashboard form select {
        width: 100% !important;
        padding: 10px 12px !important;
        font-size: 14px !important;
        border: 1.5px solid #e0e0e0;
        height: 40px;
        border-radius: 6px;
        background: #ffffff;
        box-sizing: border-box;
        transition: all 0.3s ease;
        -webkit-appearance: none;
        appearance: none;
    }

    .seolinks-dashboard form input[type="date"]:focus,
    .seolinks-dashboard form input[type="text"]:focus,
    .seolinks-dashboard form select:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    }

    .seolinks-dashboard form select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 10px;
        padding-right: 32px !important;
        height: 40px;
    }

    .seolinks-dashboard form button.button {
        width: 100% !important;
        height: 50px;
        padding: 10px 16px !important;
        font-size: 14px !important;
        font-weight: 600;
        background: #e44f39;
        color: #ffffff;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.25);
        margin-top: 4px;
    }

    .seolinks-dashboard form button.button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    }
    
    .seolinks-dashboard table {
        width: 100%;
        border-collapse: collapse;
        display: block;
    }

    .seolinks-dashboard table thead {
        display: none; /* Masquer les en-têtes sur mobile */
    }

    .seolinks-dashboard table tbody {
        display: block;
        width: 100%;
    }

    .seolinks-dashboard table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
        padding: 10px;
        box-sizing: border-box;
        border-left: 3px solid #28a745;
        transition: all 0.3s ease;
        position: relative;
    }

    .seolinks-dashboard table tbody tr.actif {
        border-left-color: #28a745;
    }

    .seolinks-dashboard table tbody tr:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .seolinks-dashboard table tbody tr td {
        display: block;
        width: 100% !important;
        padding: 5px 0 !important;
        border: none !important;
        text-align: left !important;
        font-size: 13px;
        line-height: 1.4;
        box-sizing: border-box;
    }

    .seolinks-dashboard table tbody tr {
        position: relative;
        padding-top: 35px !important;
    }

    .seolinks-dashboard table tbody tr td:nth-child(8) {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        display: inline-block !important;
        width: auto !important;
        padding: 4px 10px !important;
        border: none !important;
        margin: 0 !important;
        background: #28a745;
        color: #ffffff;
        border-radius: 4px;
        font-size: 11px !important;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
    }

    .seolinks-dashboard table tbody tr td:nth-child(8)::before {
        display: none !important;
    }

   
    .seolinks-dashboard table tbody tr td:nth-child(1) {
        display: block;
        width: 100% !important;
        padding: 0 0 5px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 5px;
        padding-bottom: 5px !important;
    }

    /* Site */
    .seolinks-dashboard table tbody tr td:nth-child(2) {
        order: 2;
        padding: 5px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 5px;
        padding-bottom: 5px !important;
    }

    /* Source */
    .seolinks-dashboard table tbody tr td:nth-child(3) {
        order: 3;
        padding: 5px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 5px;
        padding-bottom: 5px !important;
    }

    /* Cible */
    .seolinks-dashboard table tbody tr td:nth-child(4) {
        order: 4;
        padding: 5px 0 !important;
        border-bottom: 1px solid #f0f0f0;
        margin-bottom: 5px;
        padding-bottom: 5px !important;
    }

 
    .seolinks-dashboard table tbody tr td:nth-child(5) {
        order: 5;
        display: inline-block;
        width: auto !important;
        padding: 4px 12px 0 0 !important;
        border: none !important;
    }

    .seolinks-dashboard table tbody tr td:nth-child(6) {
        order: 5;
        display: inline-block;
        width: auto !important;
        padding: 4px 12px 0 0 !important;
        border: none !important;
    }

    .seolinks-dashboard table tbody tr td:nth-child(7) {
        order: 5;
        display: inline-block;
        width: auto !important;
        padding: 4px 0 0 0 !important;
        border: none !important;
    }

    
    .seolinks-dashboard table tbody tr td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: #6c757d;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-right: 6px;
        display: inline-block;
    }


    .seolinks-dashboard table tbody tr td:nth-child(1)::before {
        content: "Date:";
    }

    .seolinks-dashboard table tbody tr td:nth-child(2)::before {
        content: "Site:";
        display: block;
        margin-bottom: 3px;
        margin-right: 0;
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(3)::before {
        content: "Source:";
        display: block;
        margin-bottom: 3px;
        margin-right: 0;
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(4)::before {
        content: "Cible:";
        display: block;
        margin-bottom: 3px;
        margin-right: 0;
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(5)::before {
        content: "Ancre:";
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(6)::before {
        content: "Type:";
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(7)::before {
        content: "DR:";
        font-size: 10px;
    }

    .seolinks-dashboard table tbody tr td:nth-child(8)::before {
        content: "Statut:";
        font-size: 10px;
    }

    /* Style des liens dans le tableau */
    .seolinks-dashboard table tbody tr td a {
        color: #007bff;
        text-decoration: none;
        word-break: break-word;
        display: inline-block;
        padding: 4px 8px;
        background: #f0f7ff;
        border-radius: 4px;
        margin-top: 2px;
        transition: all 0.2s ease;
        line-height: 1.4;
        font-size: 13px;
    }

    .seolinks-dashboard table tbody tr td a:hover,
    .seolinks-dashboard table tbody tr td a:active {
        background: #e0efff;
        color: #0056b3;
    }

    /* Texte simple dans les cellules */
    .seolinks-dashboard table tbody tr td:not(:has(a)) {
        color: #212529;
        font-weight: 500;
    }

    .seolinks-dashboard table tbody tr.actif td:nth-child(8) {
        background: #28a745;
        color: #ffffff;
    }

   
    .seolinks-dashboard table tbody tr td:nth-child(6) {
        font-weight: 600;
        color: #6c757d;
        font-size: 12px;
    }

    
    .seolinks-dashboard table tbody tr td:nth-child(7) {
        font-weight: 700;
        color: #ff6b35;
        font-size: 13px;
    }

   
    .seolinks-dashboard table tbody tr td:nth-child(1) {
        font-weight: 600;
        color: #495057;
        font-size: 13px;
    }


    .seolinks-dashboard table tbody tr td:nth-child(5) {
        font-weight: 500;
        color: #007bff;
        font-style: italic;
        font-size: 12px;
    }


  
    .seolinks-dashboard {
        overflow-x: hidden;
    }

   
    .seolinks-dashboard table tbody tr td a[href^="http"] {
        font-size: 13px;
        word-break: break-all;
        hyphens: auto;
    }

    /* Animation d'apparition pour les cartes */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .seolinks-dashboard table tbody tr {
        animation: fadeInUp 0.4s ease-out;
    }

    .seolinks-dashboard table tbody tr:nth-child(1) { animation-delay: 0.05s; }
    .seolinks-dashboard table tbody tr:nth-child(2) { animation-delay: 0.1s; }
    .seolinks-dashboard table tbody tr:nth-child(3) { animation-delay: 0.15s; }
    .seolinks-dashboard table tbody tr:nth-child(4) { animation-delay: 0.2s; }
    .seolinks-dashboard table tbody tr:nth-child(5) { animation-delay: 0.25s; }
    .seolinks-dashboard table tbody tr:nth-child(n+6) { animation-delay: 0.3s; }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .seolinks-dashboard {
        padding: 20px 15px;
    }

    .seolinks-dashboard form {
        gap: 15px !important;
    }

    .seolinks-dashboard form input[type="date"],
    .seolinks-dashboard form input[type="text"],
    .seolinks-dashboard form select {
        flex: 1 1 calc(50% - 10px);
        min-width: 200px;
    }
}




.logout-button-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #232323 0%, #764ba2 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.logout-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.logout-btn:hover::before {
    left: 100%;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.logout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.logout-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logout-btn:hover .logout-icon {
    transform: translateX(3px);
}

.logout-text {
    position: relative;
    z-index: 1;
}

/* Version mobile */
@media screen and (max-width: 768px) {
    .logout-button-container {
        margin-bottom: 15px;
        padding: 0;
        justify-content: center;
    }

    .logout-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
    }
}