/* 整理架構 */
body,html{
    height:100%;
    overflow: hidden;
}

.class_group{
    box-shadow: 0 8px 15px #E7EAF0;
    border-radius: 10px;
}
.class_group_top{
    border-radius: 10px 10px 0 0;
}
@media screen and (max-width:575px){
    .class_group{
        box-shadow: none;
        border-radius: 0;
    }
    .class_group_top{
        border-radius: 0;
    }
}
.profile{
    margin-left:auto;
    margin-right: auto;
    width:70px;
    height:70px;
}
.profile_img{
    width: 100%;
    height:100%;
    border-radius: 50%;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    transform:translateY(-50%);
    border: 5px solid #eee;
}
.profile_img img{
    width: 100%;
    object-fit: cover;
}
.function_tabs{
    display:flex;
    align-items: center;
    overflow:auto;
}

.function_tab{
    margin-bottom: 0;
}
.function_tab_radio{
    display:none;
}
.function_tab_text{
    display:block;
    padding-bottom: .5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 18px;
    color:white;
    text-align: center;
    opacity: .6;
    border-bottom: 5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}
.function_tab_text:hover{
    opacity: 1;
}
.function_tab_radio:checked + .function_tab_text{
    opacity:1;
    border-bottom: 5px solid #4EC8E1;
}
@media screen and (max-width:575px){
    .function_tab_text{
        padding-left:.75rem;
        padding-right:.75rem;
        font-size: 16px;
    }
}
.flex_basis_0{
    -webkit-flex-basis:0;
    flex-basis: 0;
}
.notification{
    position: absolute;
    width:10px;
    height:10px;
    background-color: #ffc107;
    top:0;
    right:0px;
    border-radius: 50%;
}
/* @media screen and (max-width:575px){
    .notification{
        right: -10px;
    }
} */


/* 訊息 */
.message_user_img{
    -webkit-flex-shrink:0;
    flex-shrink: 0;
    width:30px;
    height:30px;
    margin-right: .5rem;
    border:1px solid #eee;
    border-radius: 50%;
    overflow: hidden;
}
.message_user_img img{
    width:100%;
    object-fit: cover;
}
.message_box{
    padding: .5rem;
    margin-bottom: .4rem;
	border-radius: .5rem;
	/* background: #F1F6F9; */
	
}
.message_box_other{
    /* background-color: #e9e9e9; */	
	background: linear-gradient(118deg,#1A90EE,#00B4EE);
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.12),0 2px 2px 0 rgba(0,0,0,.08);
	color: #FFF;
}
.message_box_self{
    /* background-color: #9AD2FF; */
	background: #F1F6F9;
	color: #4D4D4D;
}
.message_tool{
    width:30px;
    height:30px;
    overflow: hidden;
    border-radius: 50%;
    background-color: #1A90EE;
    color:white;
    cursor: pointer;
    flex-shrink: 0;
}
.message_tool>i{
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
}

#messageTypes:focus{
    outline: none;
}

/* 公告 */
.bulletin_text{
    /* min-height:48px; */
    color:#717171;
    font-size: 16px;
    margin-bottom: 0;
}
.bulletin_text_hidden{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp:2;
    overflow:hidden;
}
.unread_btn{
    padding:.25rem;
    cursor: pointer;
    color:#fff;
    text-align: center;
    background-color: #F29429;
    opacity:.7;
}
.unread_btn:hover{
    opacity:1;
}
.read_btn{
    padding:.25rem;
    cursor: pointer;
    color:#fff;
    text-align: center;
    background-color: #aaa;
    opacity:.7;
}
.read_btn:hover{
    opacity:1;
}
.read_amount{
    padding: .25rem;
    font-size: 14px;
    text-align: right;
    background-color: rgba(26, 144, 238,.2);
}

/* 學生列表 */
.exchange_class{
    display:none;
}
.exchange_class:checked + .exchange_class_text::before{
    content:"\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    position: absolute;
    color:#4EC8E1;
    left:-3px;
    transform:translateX(-100%);
}

ul.student_list{
    list-style-type: none;
    padding:0;
}
ul.student_list>li{
    border-bottom: 1px solid #ddd;
    padding-top: .5rem;
    padding-bottom: .5rem;
}
ul.student_list>li:first-child{
    border-top: 1px solid #ddd;
}
ul.student_list>li:hover{
    background-color: #f4f4f4;
}
.chat_user_photo{
    width:35px;
    height:35px;
    border:1px solid #d5d5d5;
    border-radius: 50%;
    overflow: hidden;
}
.chat_user_photo img{
    width:100%;
    object-fit: cover;
}
@media screen and (min-height:650px){
    .chat_user_photo{
        width:40px;
        height:40px;
    }
    ul.student_list>li{
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
.message_page{
    position: fixed;
    top:0;
    left:100%;
    width:100%;
    height:100%;
    display:flex;
    flex-direction: column;
    background-color: #eee;
    transition: left .3s;
    z-index: 11;
}

@media screen and (min-width:576px) {
    .message_page{
        position: absolute;
    }
}
.message_page.show{
    left:0%;
}

.search_bar{
    width:0%;
    opacity:0;
    visibility: hidden;
}
.search_bar.show{
    opacity:1;
    width: 100%;
    visibility: visible;
}
.search_bar>input{
    padding-left:40px;
    padding-right: 40px;
}
.input_close{
    position: absolute;
    right:16px;
    top:50%;
    transform:translateY(-50%);
    color:#b4b4b4;
    cursor: pointer;
}
.input_close:hover{
    color: #D80445;
}

.sticker_tab .sticker_tab_item{
    padding:.25rem;
    border-radius: 5px;
}
.sticker_tab input:checked+.sticker_tab_item{
    background-color: #c5c5c5;
}

.copy-icon {
    transition: color 0.3s ease;
}

.copy-icon.active {
    color: #51A351; /* 綠色 */
}

.copy-toast {
    position: absolute;
    top: -27px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #51A351; /* 綠色 */
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0.9;
}

.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s ease;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}