@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

body {
    background-color: #fcfbf2;
    color: #333;
    user-select: none; 
    font-family: 'Cairo', sans-serif;
}

*:not(i){
    font-family: 'Cairo', sans-serif;
}
.sidebar {
    position: fixed;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #ffffff;
    border-left: 1px solid #ddd;
    padding-top: 0px !important;
    transition: right 0.3s ease;
    z-index: 1050;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 5px 20px 20px 20px;
}
.sidebar ul{
    display: flex !important;
    flex-direction: column !important;
    gap: 10xp !important;
}
.sidebar ul li{
    background-color: #fcfbf2;
    margin-bottom: 10px;
    border-right: 10px solid #fcfbf2;
}
.sidebar ul li:hover{
    border-color: #8c915c;
}
.sidebar ul li.active{
    border-color: #8c915c;
    background-color: #fcfbf2;
}
.sidebar ul li.active a{
    color: #8c915c;
}
.sidebar ul li a{
    color: #000;
}
.sidebar ul li a:hover{
    color: #8c915c;
}
.sidebar.active {
    right: 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
}
.overlay.active {
    display: block;
}
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    margin-right: 10px;
}
.close-icon {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    left: 15px;
}

.toolbar-card{
    padding: 10px;
    min-height: 50px;
    margin-bottom: 10px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
}

#links{
    width: 100%;
    min-height: 0px;
    display: flex;
    flex-direction: column;
}

.tree-card{
    padding: 5px;
    min-height: calc(100vh - 100px);
    margin-bottom: 10px;
}

.toolbar-card .btn{
    padding-top: 0px;
    padding-bottom: 4px;
    font-size: 12px;
}

.toolbar-card .btn-light{
    border: 1px solid #aaa;
}
.toolbar-card .btn-default{
    background-color: #fff;
    border: 1px solid #aaa;
}

/*  */

.tree{
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 2px;
}
.tree .child{
    background-color: #fcfbf2;
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}
.tree .child:hover{
    background-color: #8c915c88;
}
.tree .child .icons{
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.tree .child .icons i.mode{
    font-size: 20px;
}
.tree .child .icons i.gender{
    font-size: 30px;
}
.tree .child .icons i.root{
    color: #eb691d;
}
.tree .child .icons i.female{
    color: #d613c3;
}
.tree .child .icons i.male{
    color: #5b5bf8;
}
.tree .child .infos{
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-right: 10px;
}
.tree .child .infos label{
    font-size: 14px;
}
.tree .child .infos span{
    font-size: 11px;
}

.tree .child .actions{
    display: flex;
    gap: 5px;
}
table .actions .btn,
.tree .child .actions .btn{
    padding-top: 0px;
    padding-bottom: 4px;
    font-size: 12px;
}
.tree .child .actions .btn-other i{
    color: #000 !important;
    font-size: 15px !important;
}
table .actions .btn i,
.tree .child .actions .btn i{
    color: #fff;
}
table .actions .btn span,
.tree .child .actions .btn span{
    color: #fff;
}
.tree .child .actions .btn-default{
    background-color: #fff;
}


/**/
.empty{
    color: transparent !important;
}

/* Remove default triangle of dropdown */
.dropdown-toggle::after {
    display: none;
}
.dropdown-item-small {
    font-size: 12px;
    padding: 5px 10px;
}


/**/
.btn-close{
    font-size: 12px;
}

fieldset{
    position: relative;
    border: 1px solid #ddd;
    margin-bottom:20px;
    margin-left:10px;
    margin-right:10px;
    border-radius: 5px;
    padding: 10px;
    padding-top: 20px;
}
legend{
    position: absolute;
    font-size: 12px;
    margin: 0px;
    top: -10px;
    padding: 0px;
    width: fit-content;
    right: 10px;
    background-color: #ddd;
    padding: 0px 10px;
    border-radius: 5px;
}

fieldset p{
    font-size: 12px;
}

.badge{
    font-weight: normal;
}

@keyframes flash {
    0%, 100% {
        color: #ff0000; 
    }
    50% {
        color: #ffffff; 
    }
}
  
.flash-color {
    animation: flash 1s infinite;
}


#links a{
    color:  #aaa !important;
    text-decoration: none !important;
}

.highlight {
    color: #8c915c !important;
    font-weight: bold !important;
}
.tree .child .actions .btn-edit{
    background-color: #f44336 !important;
    border-color: #8c915c !important;
    color: #fff !important;
}

.tree .child .actions .btn-edit:hover{
    background-color: #6f7446 !important;
    border-color: #6f7446 !important;
}

