.groups_header{
    position: fixed;
    width: 100%;
    padding-right: 100px;
    z-index: 500;
    background-color: #f7f7ff;
    transition: opacity .5s;
    opacity: 1;
}
.groups_header.not_top{
    opacity: 0.9;
}
.groups_title, .groups_buttons, .groups_buttons_left, .groups_title_left, .groups_title_right, .groups_container{
    display:flex;
}
.groups_buttons, .groups_title{
    justify-content: space-between;
}
.groups_buttons{
    overflow: hidden;
    border-bottom: 1px solid grey;
    margin-left: -5px;
    margin-right: -20px;
    padding-left: 5px;
    padding-right: 20px;
    height: 48px;
    box-shadow: 0px 5px 5px grey;
    transition: height .5s;
}
.groups_title h1{
    transition: all .5s;
}
.groups_header.not_top .groups_buttons{
    height: 0;
    box-shadow: none;
}
.groups_header.not_top .groups_title h1{
    margin: 0;
}
.groups_buttons_right button{
        margin-bottom: 5px;
}
.groups_title_left{
    margin-left: 15px;
}
.groups_title_center{
    position: relative;
    width: 20px;
    opacity: 0;
    transition: all .5s;
    cursor: pointer;
    font-size: 25px;
}
.groups_title_center span{
    position: absolute;
    bottom: 0;
}
.groups_header.not_top .groups_title_center{
    opacity: 1;
}
.groups_title_right{
    font-size: 25px;
    align-self: center;
}
.groups_title_right span{
    position: relative;
    top: 5px;
}
.search_groups{
    position: relative;
    margin-right: 15px;
    cursor: pointer;
}
.search_groups .search_groups_input{
    width: 35px;
    transition: all .5s;
}
.search_groups.active .search_groups_input{
    width: 200px;
}
.search_groups span{
    position: absolute;
    right: 3px;
}
.select_content_groups{
    margin: 0 10px;
    padding: 8px;
    cursor: pointer;
}
.select_content_groups p{
    margin: 0;
    font-size: 21px;
}
.select_content_groups.active p{
    color: #ffff;
}
.groups_buttons_left{
    position: relative;
}
.select_content_groups.active {
    background-color: #4187f6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    position: relative;
}
.select_content_groups.active p::before{
    content: '';
    position: absolute;
    bottom: 0px;
    left: -20px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 10px 10px 0 #4187f6;
    z-index: -1;
}
.select_content_groups.active p::after{
    content: '';
    position: absolute;
    bottom: 0px;
    right: -20px;
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: -10px 10px 0 #4187f6;
    z-index: -1;
}
.groups_buttons_right{
    font-size: 25px;
    align-self: center;
}
.info_icon a{
    transition: all .3s;
    cursor: pointer;
    color: black!important;
    position:relative;
    top:4px;
    margin-left: 10px;
}
.info_icon a:hover{
    color: #ffc107 !important;
}
.share_span{
    margin-right: 15px;
    cursor: pointer;
}
.routes{
    padding-top: 2px;
    font-size: 15px;
    position: relative;
}
.routes .route{
    cursor:pointer;
}
.routes .route_icon ion-icon{
    top: 3px;
    position: relative;
}
.core_levels{
    background-color: #D9DEDE;
    display: flex;
    position: absolute;
    flex-direction: column;
    border-radius: 10px;
    overflow-x: hidden;
    box-shadow: 5px 5px 5px #4187f6;
    max-height: 0;
    transition: all .2s;
    z-index: 900;
    text-align: left;
    position: absolute;
    top: 27px;
    right: 0px;
    overflow: hidden;
}
.core_level{
    padding: 4px 7px;
}
.core_levels a:hover{
    background-color: #265092;
    color: #ffff;
}
.groups_container{
    transition: all .5s;
    padding: 20px;
    margin-top: 170px;
}
.content_groups{
    /*padding: 20px 20px;*/
    width: 0;
    position: relative;
    overflow: hidden;
    height: 0;
    left:0;
    transition: all .5s;
    transition-timing-function: cubic-bezier(0.2,-2,0.8,2);

}
.content_groups.active{
    width: 100%;
    height: 100%;
    height: fit-content;
}

.groups_container_div .group{
    border: 1px solid black;
    border-radius: 7px;
    padding: 10px;
    margin-bottom: 10px;
}
.groups_container_div .group.small_group{
    display: flex;
    justify-content: space-between;
}
.groups_container_div .group_left, .groups_container_div .user_info{
    display: flex;
}
.groups_container_div .group_head{
    display: flex;
    margin-left: 15px;
    justify-content: space-between;
    width: 100%;
}
.groups_container_div .group_head_content h3{
    text-align: initial !important;
}
.groups_container_div .group_created{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-right: 15px;
}
.groups_container_div .group_created p{
    margin: 5px 0;
}
.groups_container_div .group_image{
    width: 120px;
    height: 120px;
    overflow: hidden;
	text-align: center;
	margin: 0 auto;
}
.groups_container_div .group_image img{
    height: 120px;
    min-width:100%;
    max-width:none;
    margin:0 -100%;
}
.groups_container_div .group.small_group .group_information, .groups_container_div .group.small_group .group_created{
    display: none;
}
.user_info{
    margin: 5px 0;
}
.user_info p{
    margin: 0 5px 0 0;
    padding: 2px 10px;
    border: 1px solid grey;
    border-radius: 12px;
}
.groups_container_div .group_info_small{
    margin-left: 10px;
}
.groups_container_div .group_information{
    display: flex;
}
.groups_container_div .group_description{
    width: 70%;
}
.groups_container_div .group_members{
    width: 30%;
}
.groups_container_div .group_members{
    padding-left: 20px;
}
.groups_container_div .group.small_group .group_buttons{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    text-align: end;
}
.groups_container_div .group.small_group .group_buttons .group_button{
    margin-top: 4px;
}
.groups_container_div .group.large .group_buttons{
    display: flex;
    justify-content: flex-end;
}
.groups_container_div .group.large .group_buttons button{
    margin: 0 5px;
}
/* new groups */
.group_card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  padding: 1.5rem;
}
.group_card_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.group_badge {
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.group_card_body {
  margin-bottom: 1rem;
}
.role_badge {
  margin-right: 0.5rem;
}
.group_stats {
  color: #555;
  font-size: 0.9rem;
}
.group_card_actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.more_members {
  font-style: italic;
  color: #666;
}
.badge_private {
  background-color: #f8d7da;
  color: #721c24;
}
.badge_public {
  background-color: #d4edda;
  color: #155724;
}
.badge_invisible {
  background-color: #e2e3e5;
  color: #6c757d;
}
.hidden {
  display: none;
}
