/* Style pour le conteneur de profil dans la barre de navigation */
#profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    position: relative;
}

/* Style pour le bloc de profil */
#profile-area {
    display: block;
    position: relative;
    margin-right: auto;
    padding: 0;
    width: fit-content;
    cursor: pointer;
}

#profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 0 !important;
    margin-top: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
}


/* Style pour le bloc de profil affiché au survol */
#profile-info {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 200px;
    z-index: 10000;
}

/* Afficher le bloc de profil au survol */
#profile-area:hover #profile-info {
    display: block;
}

@media (max-width: 980px) {
    .navbar-menu {
        top: 60px !important;
    }
}

/* Tuiles de la page d'accueil */
.tile.is-child.box {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff6fc;
    border: 2px solid #CC2D79;
    padding: 15px;
}

.tile.is-child.box .icon {
    margin-top: 30px;
    font-size: 1.1rem !important;
    color: #CC2D79;
}

.tile.is-child.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2), 0 4px 6px rgba(0, 0, 0, 0.1); /* Accentue l'ombre */
}

.tile.is-child.box p {
    font-size: 1.2rem !important;
    text-align: left;
    color: #1c48ac !important;
}

@media (min-width: 768px) {
    .home-tile {
        aspect-ratio: unset !important;
        min-width: 200px;
        min-height: 200px;
    }
}


body {
    margin: 0;
    padding: 0;
}

.section {
    padding: 40px 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.center {
    text-align: center;
}

.title.is-3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.title.is-4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1em;
}

.title.is-5 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-top: 0.7em;
}

.columns.is-centered {
    display: flex;
    justify-content: center;
    margin: 0 -10px;
}

.column.is-4 {
    flex: 1 1 220px;
    padding: 0 10px;
}

.tile.is-ancestor {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.tile.is-parent {
    flex: 1 1 160px;
    min-width: 100px;
    max-width: 220px;
}

.tile.is-child.box.home-tile {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 30px 10px 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #222;
    transition: box-shadow 0.2s, transform 0.2s;
    width: 100%;
    min-height: 170px;
}

.tile.is-child.box.home-tile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.03);
    color: #3273dc;
}

.icon.is-large {
    margin-bottom: 10px;
}

a.home-tile {
    text-decoration: none;
    color: inherit;
}


.label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.select select {
    width: 100%;
    padding: 8px 36px 8px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    background: #fff url("data:image/svg+xml,%3Csvg fill='none' stroke='%233273dc' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center/18px 18px;
    font-size: 1rem;
    appearance: none;
    transition: border 0.2s;
    margin-top: 4px;
    margin-bottom: 10px;
}

.select select:focus {
    border-color: #3273dc;
    outline: none;
}

input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 1rem;
    transition: border 0.2s;
    background: #fff;
    margin-top: 4px;
    margin-bottom: 10px;
}

input:focus {
    border-color: #3273dc;
    outline: none;
}

.textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px 12px;
    border: 1px solid #dbdbdb;
    border-radius: 4px;
    font-size: 1rem;
    resize: vertical;
    transition: border 0.2s;
    background: #fff;
}

.textarea:focus {
    border-color: #3273dc;
    outline: none;
}

.container {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.12);
    padding: 10px 15px;
    margin-top: 20px;
}

#refreshSessions {
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.2s;
}

#togglePassword {
    cursor: pointer;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(44, 45, 67, 0.06);
    border-radius: 8px;
    overflow: hidden;
    font-size: 1em;
}

.table th, .table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.table th {
    background: #f7e9f3;
    color: #CC2D79;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover {
    background: #f3f8ff;
    transition: background 0.2s;
}

select {
    padding: 5px 10px;
    border: 1px solid #CC2D79;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 1em;
    outline: none;
    transition: border 0.2s;
}

select:focus {
    border-color: #8e1e53;
    background: #f8eef5;
}

option {
    padding: 8px 12px;
    background: #fff;
    color: #333;
}

@media (max-width: 768px) {
    .table.is-fullwidth {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .table.is-fullwidth thead {
        display: none;
    }

    .table.is-fullwidth tbody,
    .table.is-fullwidth tr,
    .table.is-fullwidth td {
        display: block;
        width: 100%;
    }

    .table.is-fullwidth tr {
        margin-bottom: 1.5em;
        border-bottom: 2px solid #eee;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        padding: 1em 0.5em;
    }

    .table.is-fullwidth td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .table.is-fullwidth td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5em;
        top: 0;
        width: 48%;
        font-weight: bold;
        text-align: left;
        color: #CC2D79;
        white-space: nowrap;
    }
}

#qrcode img {
    max-width: 175px;
}

#chatBox {
    min-height: 200px !important;
    max-height: 500px !important;
    background-color: #fdfdfd !important;
}

#containerCodabot {
    max-width: 1200px !important;
}

.gh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.125rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
    background: linear-gradient(#7b4fd6, #6a3fbf);
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.gh-badge.light {
    color: #24292f;
    background: #f1f1f1;
    border: 1px solid rgba(27, 31, 36, 0.15);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.folders-card {
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #fff);
    border: 1px solid #f3e0ef;
    box-shadow: 0 8px 24px rgba(204, 45, 121, 0.06);
}

.folders-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.folders-card .label {
    font-size: 1rem;
    font-weight: 700;
    color: #CC2D79;
    display: block;
    margin-bottom: 2px;
}

.folders-card .folders-hint {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 2px;
}

.folders-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 160px;
    overflow-y: auto;
    padding: 8px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #fbf0f7;
}

.folders-list > div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.12s ease, transform 0.08s ease;
    cursor: pointer;
}

.folders-list > div:hover {
    background: #fff6fb;
}

.folders-list input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 18px;
    accent-color: #CC2D79;
}

.folders-list label {
    margin: 0;
    font-weight: 600;
    color: #1c48ac;
    cursor: pointer;
    user-select: none;
}

.folders-list::-webkit-scrollbar {
    width: 8px;
}

.folders-list::-webkit-scrollbar-thumb {
    background: rgba(204, 45, 121, 0.12);
    border-radius: 8px;
}

.folders-list::-webkit-scrollbar-track {
    background: transparent;
}

@media (max-width: 480px) {
    .folders-list {
        max-height: 130px;
    }

    .folders-card {
        padding: 10px;
    }
}

.message-time {
    display: block;
    font-size: 0.6em;
    color: #888;
    text-align: right;
    margin-top: 8px;
}

textarea {
    font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    font-size: 1rem;
}

.tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    align-items: start;
}
