/* Styles pour le conteneur du tableau */
.table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 30px;
}
h3 {
    text-align: center;
    color: #FDBE33;
    text-decoration: underline;
}
/* Styles pour le tableau */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;  /* Use relative font size */
    background-color: #20212B;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    line-height: 1.6;  /* Added line-height */
}

th,td {
    padding: 12px 15px;
    transition: background-color 0.3s ease-in-out;  /* Added transition */
}

th {
    color: #FDBE33;
    font-weight: bold;
    background-color: #15161D;
    text-align: center;  /* Center align header content */
}

td {
    text-align: left;
    color: #ffffff;
    border-bottom: 1px solid #333;
}

td:hover {
    background-color: #333;
}

tr:hover {
    background-color: #292A34;
}

/* Styles pour les liens d'action */
.actions .edit-link, .actions .delete-link {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 12px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;  /* Added transform to transition */
}

.actions .edit-link {
    background-color: #FDBE33;
}

.actions .edit-link:hover, .actions .edit-link:focus {
    background-color: #FFD046;
}

.actions .delete-link {
    background-color: red;
}

.actions .delete-link:hover, .actions .delete-link:focus {
    background-color: #FF4040;
}

.actions .edit-link:active, .actions .delete-link:active {
    transform: scale(0.95);  /* Added active state */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Style du container hello et la date */
.hello-container {
    background-color: #20212B;
    padding: 20px; 
    border-radius: 10px; 
    box-shadow: 0 4px 8px #FDBE33;
    max-width: 400px; 
    margin: 20px auto; 
}

.hello-title {
    font-size: 24px; 
    margin-bottom: 10px; 
    color: #FDBE33; 
}

.hello-username {
    color: #FDBE33;
    font-weight: bold; 
}

.hello-role {
    font-size: 18px;
    margin-bottom: 10px; 
    color: red; 
}

.hello-date {
    font-size: 16px;
    color: white; 
}

/* Style pour la date et l'heure en direct */
#liveDateTime {
    font-weight: bold; 
    transition: opacity 0.3s; 
}

#liveDateTime.updated {
    opacity: 0.5;
}
