* {
    margin: 0;
    padding: 0;
}

body {
    background-color: #1A1A1A;
    color: #fff;
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

#app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 60px;
    position: relative;
    align-items: center;
    width: 100%;
}

/* Style spécifique pour le contenu central */
.container-flex {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Ajuster le header pour qu'il reste en haut */
header {
    width: 100%;
    padding: 15px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #1A1A1A;
}

a {
    text-decoration: none;
}

.rainbow-text {
    animation: rainbow-animation 6s linear infinite;
}

@keyframes rainbow-animation {
    0% { color: #ff0000; }
    17% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    67% { color: #0000ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

/* Styles du footer */
.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 10px 0;
    background-color: #1A1A1A;
    border-top: 1px solid #333;
    z-index: 10;
}

.footer-content {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.by-axome {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #fff;
}

.by-axome img {
    height: 20px;
    width: auto;
    vertical-align: middle;
}

.documentation-link {
    position: absolute;
    right: 40px;
}

.documentation-link a {
    color: #fff;
    background-color: transparent;
    padding: 5px 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.documentation-link a:hover {
    color: #4CAF50;
}

/* Styles pour les conteneurs de metafields */
#metafieldsChoice {
    margin: 10px auto;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
}

.metafield-section {
    margin: 20px auto;
    width: 95%;
    max-width: 1200px;
}

/* Styles pour les tables */
.tableCreate {
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

.metaobject-table .tableUser td {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

/* Style pour le bouton Supprimer */
.btnred {
    background-color: #006C50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btnred:hover {
    background-color: #02523e;
}

/* Styles pour les boutons */
.btngroup {
    background-color: #444;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

.btngroup:hover {
    background-color: #555;
}

/* Styles pour les boutons de modification */
.modifierButton {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

/* Ajuster la taille des boutons */
.btn, .btnred {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    min-width: 100px;
    font-size: 14px;
    display: inline-block;
}

.btn {
    background-color: #4CAF50;
    color: white;
}

.btnred {
    background-color: #f44336;
    color: white;
}

/* Styles pour les messages flash */
.flash-message, .info-message {
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
}

.flash-message {
    background-color: #4CAF50;
    color: white;
}

.info-message {
    background-color: #2196F3;
    color: white;
}

/* Ajuster la cellule des actions dans le tableau */
.tableUser td:last-child {
    padding: 5px 15px;
    width: 220px;
}

/* Retirer tous les styles qui peuvent interférer */
.tableUser .modifierButton a,
.tableUser .modifierButton form {
    margin: 0;
    padding: 0;
    display: inline-block;
}

/* Styles pour le menu coulissant */
.slideout-menu {
    position: fixed;
    right: -256px;
    top: 0;
    bottom: 0;
    width: 256px;
    background-color: #333;
    transition: transform .3s ease-in-out;
    z-index: 20;
}

.slideout-menu.is-active {
    transform: translateX(-256px);
}

.slideout-toggle {
    display: block;
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.slideout-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
}

.slideout-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
}

.sideBar ul {
    list-style: none;
    padding: 0;
}

.sideBar ul li {
    margin: 10px 0;
}

.sideBar ul li a {
    color: #fff;
    text-decoration: none;
}

.sideBarUser {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.sideBarUser p {
    margin: 10px 0;
}

.sideBarUser a {
    color: #fff;
    text-decoration: none;
}

@media screen and (max-width: 1200px) {
    .metaobject-table {
        margin: 20px 10px;
    }
    
    .metaobject-table .tableUser {
        font-size: 14px;
    }
}

