/*
    Pour la gestion des messages (erreur, success, avertissement et information)
*/
#popup-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 300;
}
.popup-message {
    background-color: #333;
    color: #fff;
    padding: 12px 18px;
    margin-bottom: 10px;
    border-radius: 5px;
    min-width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInOut 10s forwards;
    position: relative;
}
.popup-message.success { background-color: #28a745; }
.popup-message.error { background-color: #dc3545; }
.popup-message.warning { background-color: #ffc107; color: #000; }
.popup-message.info { background-color: #17a2b8; }
.popup-close {
    position: absolute;
    top: 4px;
    right: 8px;
    cursor: pointer;
    font-weight: bold;
}
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(-10px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-10px); }
}
/* Style pour les differents boutons au sein de toutes les pages */
button[type="submit"]
{
    background-color:#28a745 ;
    color: white;
    padding: 1%;
    margin: 15px 10% 15px 10%;
    border-radius: 10px;
    width: 80%;
}
.add_button, .update_button, .remove_button, .delete_button, .other_button
{
    display: inline-block;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    color: #000;
    text-align: center;
}
.add_button { background-color: #28b000; }
.add_button:hover { background-color: #28a745; transition: 1s; }
.update_button { background-color: yellow; }
.update_button:hover { background-color: #ffd000; transition: 1s; }
.remove_button { background-color: #ffaa00; }
.remove_button:hover { background-color: #ff5800; transition: 1s; }
.delete_button { background-color: red }
.delete_button:hover { background-color: #e00000; transition: 1s; }
/* Style pour affichage des erreurs lors du remplissage de formulaires(ajout, modification, suppression) */
.errorlist 
{
    color: red;
    list-style: none;
    font-weight: bolder;
    padding: 0px;
    margin: 0px;
}
/**********************************     DASHBOARD     ***************************************/
    /* DASHBOARD NAVBAR */

ul>li>ul
{
    background-color: white;
    position: relative;
    top: -5px;
    list-style-type: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 0%;
}
.sous_menu:after
{
    content: '+';
    color: black;
    display: inline-block;
}
@keyframes Rotate_Symbol
{
    25%{transform: rotate(45deg);}
    50%{transform: rotate(90deg);}
    75%{transform: rotate(135deg);}
    100%{transform: rotate(180deg);}
}
@keyframes Expend_Menu
{
    0%{max-height: 0%;border: 1px solid gray;box-shadow: 10px 10px 10px gray;}   
    25%{max-height: 25%;border: 1px solid gray;box-shadow: 8px 8px 8px gray;}
    50%{max-height: 50%;border: 1px solid gray;box-shadow: 6px 6px 6px gray;}
    75%{max-height: 75%;border: 1px solid gray;box-shadow: 4px 4px 4px gray;}
    100%{max-height: 100%;border: 1px solid gray;box-shadow: 2px 2px 2px gray;}
}
.sous_menu:hover+ul , ul>li>ul:hover
{
    z-index: 200;
    animation: Expend_Menu 1s forwards;
}
.sous_menu:hover:after { animation: Rotate_Symbol 1s linear infinite; }
ul>li>ul>li
{
    display: inline-block;
    position: relative;
    left: -30px;
}
    /* DASHBOARD SETTINGS */
.account_settings
{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    margin-bottom: 50px;
}
.account_settings > div:nth-of-type(1)
{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 25%;
}
.account_settings > div:nth-of-type(1) > button
{
    display: inline-block;
    padding: 5px;
    margin: 5px;
    border-radius: 10px;
    color: #000;
    text-align: center;
    width: 80%;
    background-color: #28a745;
}
.account_settings > div:nth-of-type(2)
{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 75%;
    margin: 15px 0px 25px 0px;
}
/********************************************     FOOTER     *************************************************/
.go_up
{
    position: fixed;
    bottom: 5px;
    right: 5px;
    color: white;
    background-color: gainsboro;
    font: 2em bolder;
    border-radius: 75%;
}
.go_up:hover
{
    cursor: default;
    color: blue;
    background-color: #188AC9;
    transition: 1s;
}
/********************************     GESTION DE LA RESPONSIVITE     *************************************/
@media screen and (max-width:850px)
{
    .account_settings
    {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .account_settings > div:nth-of-type(1)
    {
        width: 100%;
    }
    .account_settings > div:nth-of-type(2)
    {
        width: 100%;
    }
}