﻿
@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-thin.woff2") format("woff2");
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-extrabold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: "pelakfa";
    src: url("../asset/pelak/farsi numeral/webfonts/woff2/pelakfa-black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}

* {
    font-family: 'pelakfa';
}

html {
}

body {
    margin: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    /*background: linear-gradient(to bottom, #42B9F7 20%, #F9FAFB 20%);*/
    /*background: linear-gradient(to bottom,#2495D6 0px,#42B9F7 174px, white 174px, #F9FAFB 100%);*/
    background: #f5f5f5;
}


.container {
    width: 100%;
    height: 100vh;
    display: flex;
}

.menucontainer {
    width: 264px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    display: none;
}

.profiletools {
    width: 100%;
    height: 174px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.userimg {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: white;
}

    .userimg img {
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 50%;
    }

.userimgcontainer {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 2px solid #FFAF03;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-right: 30px;
}

.namecontainer {
    height: 32px;
    margin-top: 31.35px;
}

    .namecontainer label {
        display: block;
        width: 100%;
        height: 100%;
        display: flex;
        color: white;
        justify-content: center;
        align-items: center;
        font-size: 16px;
    }

.nameandbtncontainer {
    height: 64px;
    flex: 2;
}

.profiletoolscontainer {
    display: flex;
    height: 32px;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
    margin-top: 8px;
}

    .profiletoolscontainer img {
        display: block;
    }



.toolscontainer {
    width: calc(100% - 264px);
    width: calc(100% - 16px);
    height: 100vh;
    display: flex;
    padding: 8px;
    /*padding-top: 82px;
    padding-left: 64px;*/
    flex-direction: column;
    overflow: hidden;
}

.formscontainer {
    width: 100%;
    height: 100%;
    display: flex;
    background-color: #F9FAFB;
    border-radius: 5px;
    border: 1px #D5D7D899 solid;
    box-shadow: 0 2px 15px 1px #00000020;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.arazlogocontainer {
    position: absolute;
    width: 64px;
    height: 64px;
    top: -32px;
    left: -32px;
    border-radius: 50%;
    background-repeat: no-repeat;
    perspective: 128px;
}

.arazlogo {
    width: 64px;
    height: 64px;
    background-size: 40px 40px;
    background-position: center;
    top: -32px;
    left: -32px;
    background-image: url('../asset/barlogo.png');
    background-color: white;
    border-radius: 50%;
    border: 2px solid #FFAF03;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
    animation: rotateY 30s linear infinite;
    box-shadow: 0 2px 15px 1px #00000020;
    will-change: transform;
    transform: translateZ(0);
    /*backface-visibility: hidden;*/
}

@keyframes rotateY {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(360deg);
    }
}

.profilebtn {
    width: 25px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

    .profilebtn:hover .profilebtnoverlay {
        opacity: 1;
    }

.profilebtnoverlay {
    width: 25px;
    height: 24px;
    opacity: 0;
    transition: .3s all ease-out;
    background-repeat: no-repeat;
    background-position: center;
}

.logoutico {
    background-image: url('../asset/img/logoutnew.png');
}

.logoutovrflayico {
    background-image: url('../asset/img/logoutnewoverlay.png');
}

.userprofileico {
    background-image: url('../asset/img/userprofile.png');
}

.userprofileovrflayico {
    background-image: url('../asset/img/userprofileoverlay.png');
}


.delete_btn_ico {
    transition: 0.5s all;
    background-image: url('img/delete.svg');
}

    .delete_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }


.inventory_btn_ico {
    transition: 0.5s all;
    background-image: url('img/trolley.svg');
}

    .inventory_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }


.detail_btn_ico {
    transition: 0.5s all;
    background-image: url('img/orderdetail.svg');
}

.delete_btn_ico:hover {
    /*background-image: url('img/delete.svg');*/
}


.state_btn_ico {
    transition: 0.5s all;
    background-image: url('img/changestate.svg');
}

    .state_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }



.images_btn_ico {
    transition: 0.5s all;
    background-image: url('img/ic_photo_library_Green.svg');
}


.save_to_accounting_btn_ico {
    transition: 0.5s all;
    background-image: url('img/oksec.svg');
}

    .save_to_accounting_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }


.edit_btn_ico {
    background-image: url('img/edit.svg');
}


.add_btn_ico {
    background-image: url('img/add.svg');
}

.print_btn_ico {
    background-image: url('img/print.png');
}

.ok_btn_ico {
    background-image: url('img/ok.svg');
}

.lock_btn_ico {
    background-image: url('img/lock.png');
}

.goods_btn_ico {
    background-image: url('img/good.png');
}

.unit_btn_ico {
    background-image: url('img/unit.png');
}


.edit_btn_ico {
    background-image: url('img/edit.svg');
}


.increase_btn_ico {
    transition: 0.5s all;
    background-image: url('img/increase.svg');
}


.decrease_btn_ico {
    transition: 0.5s all;
    background-image: url('img/decrease.svg');
}

.delete_btn_ico {
    transition: 0.5s all;
    background-image: url('img/delete.svg');
}

    .delete_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }

     

.addelement_btn_ico {
    transition: 0.5s all;
    background-image: url('img/addaddtionalelement.svg');
}

    .addelement_btn_ico:hover {
        /*background-image: url('img/delete.svg');*/
    }


.send_btn_ico {
    background-image: url('img/send.png');
} 
 

.food_btn_ico {
    background-image: url('img/food.png');
}

.choosefoodforusers_btn_ico {
    background-image: url('img/choose.png');
}

.choosefoodforotherusers_btn_ico {
    background-image: url('img/choose.png');
}

.grid_active {
    background-image: url('img/ic_checkmark.svg') !important;
}

.grid_deactive {
    background-image: url('img/ic_close.svg') !important;
}

.addgroup_btn_ico {
    background-image: url('img/ic_follow_Yellow.svg');
}

.veiwsummary_btn_ico {
    background-image: url('img/ic_topic_Green.svg');
}

.addappointment_btn_ico {
    background-image: url('img/ic_calendar.svg');
}

.map_btn_ico {
    background-image: url('img/ic_map.svg');
}

.veiwimgnews_btn_ico {
    background-image: url('img/ic_photo_library_Yellow.svg');
}

.sendsms_btn_ico {
    background-image: url('img/ic_send_sms1.svg');
}

.sendnotification_btn_ico {
    background-image: url('img/ic_send_notification.svg');
}


.showtypes_btn_ico {
    /*    background-image: url('img/ic_topic.svg');*/
    background-image: url('img/ic_topic_Green.svg');
}

.UpImage_btn_ico {
    background-image: url('img/pic_Add.svg');
}

.RemoveImage_btn_ico {
    background-image: url('img/pic_Remove.svg');
}

.UpImage_face_btn_ico {
    background-image: url('img/pic_Add.svg');
    /*    background-image: url('img/face_add.svg');*/
}

.RemoveImage_face_btn_ico {
    background-image: url('img/pic_Remove.svg');
    /*    background-image: url('img/face_remove.svg');*/
}


.adduser_btn_ico {
    background-image: url('img/ic_add_user_Yellow.svg');
}

.innermenucontainer {
    flex: 2;
    overflow: auto;
    padding-right: 26px;
}


.menuGroup {
    height: 52px;
    line-height: 52px;
    padding-right: 15px;
    transition: .3s all;
    border-left: 4px solid transparent;
    cursor: pointer;
    text-align: right; 
    font-size: 14px;
    color: #000000AA;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
}

    /*.menuGroup:hover {
        color: #42B9F7;*/
        /*background-color: rgba(0,0,0,0.05);*/
    /*}*/

.menuGroupSelected {
    /*border-right: 4px solid #006DA7;*/
    /*border-right: 4px solid #7065F0;*/
    /*background-color: rgba(0,0,0,0.05);*/
}


.menuGroup > .groupimg {
    width: 24px;
    height: 24px;
    background-size: 21px 21px;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 10px;
    transition: opacity 0.3s ease, background-size 0.3s ease;
}

.menuGroup:hover .groupimgoverlay {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.menuGroup:hover .groupimg {
    /*background-size: 0px 0px;*/
}


.groupimg > .groupimgoverlay {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 21px 21px;
    transition: .3s all;
    opacity: 0;
}

.menuiconclient {
    background-image: url('img/menuicon/client.png');
}

.menuiconclientoverlay {
    background-image: url('img/menuicon/clientoverlay.png');
}

.menuiconinitialdata {
    background-image: url('img/menuicon/initialdata.png');
}

.menuiconinitialdataoverlay {
    background-image: url('img/menuicon/initialdataoverlay.png');
}

.menuicononlinechat {
    background-image: url('img/menuicon/chat .png');
}

.menuicononlinechatoverlay {
    background-image: url('img/menuicon/chat overlay.png');
}

.menuiconorder {
    background-image: url('img/menuicon/order.png');
}

.menuiconorderoverlay {
    background-image: url('img/menuicon/orderoverlay.png');
}

.menuiconproduct {
    background-image: url('img/menuicon/product.png');
}

.menuiconproductoverlay {
    background-image: url('img/menuicon/productoverlay.png');
}

.menuiconsms {
    background-image: url('img/menuicon/sms.png');
}

.menuiconsmsoverlay {
    background-image: url('img/menuicon/smsoverlay.png');
}

.menuicontelegram {
    background-image: url('img/menuicon/telegram.png');
}

.menuicontelegramoverlay {
    background-image: url('img/menuicon/telegramoverlay.png');
}

.menuiconmeetingroom{
    background-image: url('../asset/img/meeting_room.svg');
}

.menuiconmeetingroomoverlay {
    background-image: url('../asset/img/meeting_room.svg');
}

.menuItem {
    height: 36px;
    line-height: 36px;
    padding-right: 38px;
    cursor: pointer;
    transition: .3s;
    text-align: right; 
    color: #000000AA;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row-reverse;
}

    .menuItem:hover {
        /*background-color: rgba(0,0,0,.05);*/
        color: #42B9F7;
    }

        .menuItem:hover .dotoverlay {
            opacity: 1;
        }

        .menuItem:hover img {
            /*background-color: rgba(0,0,0,.05);*/
            /*color: #42B9F7;*/
        }

    .menuItem > img {
        display: block;
        float: right;
        margin-left: 8px;
        height: 7px;
        width: 6px;
        object-fit: cover;
        object-position: center;
        transform: rotateZ(180deg);
    }

.subMenuGroup {
    overflow: hidden;
    transition: all .3s;
    max-height: 0;
    /*background-color: rgba(0,0,0,0.05);*/
    border-left: 4px solid transparent;
}

.dot {
    background-image: url('../asset/img/blackdot.png');
    height: 7px;
    width: 6px;
    margin-left: 8px;
}

.dotoverlay {
    width: 100%;
    height: 100%;
    background-image: url('../asset/img/bluedot.png');
    opacity: 0;
    transition: .3s all ease-out;
}


.menu_btn {
    background-image: url('../asset/img/menu.svg');
    height: 100%;
    min-width: 30px;
    float: right;
    transition: all .2s;
    background-size: 30px 30px;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: 5px;
}

    .menu_btn:hover {
        filter: drop-shadow(-2px -2px 5px rgba(0,0,0,0.5));
        /*background-image: url('img/menuoverlay.svg');*/
    }



.menu_btn {
    display: block;
    float: right;
    width: 32px;
    height: 100%;
    margin-left: 5px;
    margin-right: 5px;
    display: none;
    display: block;
}

#tab_container {
    height: 60px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    padding: 7px;
    align-items: center;
    background-color: #D3E3FD;
    background-color: #3B82F6;
}

#main_view_tools_container {
    flex: 2;
    overflow: hidden;
}


.form_grid_container {
    width: 100%;
    height: calc(100% - 43px);
    padding: 5px;
}

.form_grid_container_overlay {
    width: 100%;
    height: calc(100% - 83px);
}

.form_grid_container_withoutfooter {
    width: 100%;
    height: 100%;
}

 


 
 

.form_footer {
    height: 40px;
    display: flex;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
    border-top: 1px solid rgb(213, 215, 216);
}




.footer_btn {
    display: inline-flex;
    background-color: #FF8B00;
    height: 30px;
    border-radius: 5px;
    min-width: 100px;
    color: #FFFFFF;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 15px;
}


.menu_blocker_hide {
    position: fixed;
    margin: auto;
    right: 0;
    top: 0;
    bottom: 0;
    left: 0;
    visibility: collapse;
    opacity: 0;
    transition: all 0.4s;
    background-color: #555555;
    direction: ltr;
    z-index: 3;
}

.menu_blocker_show {
    visibility: visible;
    opacity: 0.5;
    background-color: #000000;
    direction: ltr;
    z-index: 3;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.rightmenu {
    float: right;
    width: 270px;
    height: calc(100% - 76px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--menu-bg);
    background: #F9FAFB;
    transition: .3s ease-out;
    z-index: 3;
    background: linear-gradient(to bottom,#2495D6 0px,#42B9F7 174px, white 174px, #F9FAFB 100%);
    position: fixed;
}

.rightmenu {
    position: fixed;
    width: 100%;
    max-width: 300px;
    right: -400px;
    z-index: 3;
    top: 0;
    bottom: 0;
    height: 100%;
}

.show_menu {
    right: 0 !important;
}

.right_menu_hide {
    position: fixed;
    margin: auto;
    right: -500px;
    top: 0;
    bottom: 0;
    visibility: collapse;
    transition: all 0.4s ease-out;
    width: 80%;
    max-width: 270px;
    overflow-y: auto;
    background: var(--menu-bg);
}

.right_menu_show {
    box-shadow: 0px 30px 10px rgba(0, 0, 0, 0.5);
    right: 0;
    visibility: visible;
}
 

@media screen and (max-width: 767px) {
    .show_menu {
        right: 0 !important;
    }

    .menu_btn {
        display: block;
    }

    .rightmenu {
        position: fixed;
        width: 100%;
        max-width: 300px;
        right: -400px;
        z-index: 3;
        top: 0;
        bottom: 0;
        height: 100%;
    }

    #main_nav_container {
        height: 75px;
    }

    .outermaintoolscontainer {
        width: 100%;
        height: calc(100% - 116px);
    }

    #tab_container {
        padding-right: 0;
        padding-left: 0;
        /*margin-top: -1px;*/
    }

    #inner_main_nav_containerbg {
        height: 75px;
    }

    #inner_main_nav_container {
        height: 75px;
    }

    .menucontainer {
        display: none;
    }

    .rightmenu {
        position: fixed;
        width: 100%;
        max-width: 300px;
        right: -400px;
        z-index: 3;
        top: 0;
        bottom: 0;
        height: 100%;
    }

    .toolscontainer {
        /* width: 100%; */
        width: calc(100% - 32px);
        padding: 8px;
        height: calc(100vh - 100px);
        margin-left: 25px;
        margin-top: 32px;
    }
}

@media screen and (min-width: 768px) {
}




@media (min-width: 768px) and (max-width: 991px) {
}


@media (min-width: 992px) and (max-width: 1199px) {
}



@media (max-device-width: 480px) and (orientation: landscape) {
}

@media all and (transform-3d), (-webkit-transform-3d) {
}


 

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }


    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .columns {
        grid-template-columns: 1fr;
    }

    .record-details {
        grid-template-columns: 1fr;
    }

    .summary {
        margin-top: 15px;
        padding: 20px;
    }

        .summary h2 {
            font-size: 16px;
            margin-bottom: 12px;
        }

    .summary-value {
        font-size: 18px;
    }
}



/*online class*/


.videoconfcontainer {
    display: flex;
    min-height:  calc(100vh - 70px);
    gap: 15px;
    padding: 15px;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
}

.video-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .video-section h2 {
        margin-bottom: 15px;
        color: #4361ee;
    }

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.video-item {
    position: relative;
    background: #dde3ec;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
}

    .video-item.main-video {
        grid-column: span 2;
    }

    .video-item video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #1a1a2e;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

.files-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .files-section h3 {
        margin-bottom: 15px;
        color: #4361ee;
    }

.files-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0f2f5;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    border: 1px solid #e0e4ea;
}

    .file-item:hover {
        background: #e2e8f5;
    }

.file-icon {
    font-size: 24px;
}

.file-name {
    flex: 1;
    color: #1a1a2e;
}

.file-size {
    color: #888;
    font-size: 12px;
}

.sidebar {
    width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-section {
    flex: 1;
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    direction:rtl;
}

    .chat-section h3 {
        margin-bottom: 10px;
        color: #4361ee;
    }

.connection-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f0f2f5;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 13px;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

    .status-indicator.connected {
        background: #22c55e;
    }

    .status-indicator.disconnected {
        background: #ef4444;
        animation: none;
    }

    .status-indicator.connecting {
        background: #f59e0b;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.message {
    background: #f0f2f5;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e0e4ea;
}

    .message.own-message {
        background: #e2e8f5;
        border-color: #4361ee;
    }

.message-author {
    font-weight: bold;
    color: #4361ee;
    font-size: 14px;
    margin-bottom: 5px;
}

.message-content {
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.message-time {
    font-size: 11px;
    color: #aaa;
    text-align: left;
}

.chat-input-area {
    display: flex;
    gap: 10px;
}

#chatInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #dde3ec;
    border-radius: 5px;
    background: #f0f2f5;
    color: #1a1a2e;
    outline: none;
    transition: border 0.3s;
}

    #chatInput:focus {
        border-color: #4361ee;
    }

    #chatInput:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

#sendBtn {
    padding: 10px 20px;
    background: #4361ee;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

    #sendBtn:hover:not(:disabled) {
        background: #3451d1;
    }

    #sendBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.upload-section {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .upload-section h3 {
        margin-bottom: 15px;
        color: #4361ee;
    }

.upload-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#uploadBtn {
    padding: 12px;
    background: #f0f2f5;
    border: 2px dashed #4361ee;
    border-radius: 5px;
    color: #4361ee;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

    #uploadBtn:hover:not(:disabled) {
        background: #e2e8f5;
    }

    #uploadBtn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.file-selected {
    font-size: 12px;
    color: #888;
    padding: 5px;
    min-height: 20px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f2f5;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c0c8d8;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #4361ee;
    }

@media (max-width: 1024px) {
    .videoconfcontainer {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
    }

    .chat-section, .upload-section {
        flex: 1;
    }

    .video-item.main-video {
        grid-column: span 1;
    }
}


/*online class*/

.LecturerView {
    height: calc(100% - 24px);
    width: 98%;
    max-width: 100%;
}
.ListenerView {
    height: calc(100% - 24px);
    width: 98%;
    max-width: 100%;
}

.SessionView {
    height: 100%;
    width: 100%;    
}



.meeting-ico {
    background-image: url('../asset/img/meeting.svg');
}

.gridsessionenter_btn_ico {
    background-image: url('../asset/img/meeting.svg');
}



.quality-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6e6e73;
    min-width: 80px;
}

.quality-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d1d6;
    flex-shrink: 0;
    transition: background 0.4s;
}

    .quality-dot.excellent {
        background: #34c759;
    }

    .quality-dot.good {
        background: #30d158;
    }

    .quality-dot.poor {
        background: #ff9f0a;
    }

    .quality-dot.bad {
        background: #ff3b30;
    }

#btn_close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #1d1d1f;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
    flex-shrink: 0;
}

    #btn_close:active {
        background: rgba(0,0,0,0.12);
    }

.video-area {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #e5e5ea;
}

#main-video {
    width: 100%;
    height: 100%;
    position: relative;
}

.video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #86868b;
}

    .video-placeholder svg {
        width: 56px;
        height: 56px;
        opacity: 0.5;
    }

    .video-placeholder span {
        font-size: 14px;
    }

.video-wrapper {
    position: absolute;
    inset: 0;
}

    .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255,255,255,0.9);
    color: #1d1d1f;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 4px;
    pointer-events: none;
}

.status-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(0,0,0,0.08);
    font-size: 13px;
    color: #6e6e73;
    flex-shrink: 0;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d1d6;
    flex-shrink: 0;
    transition: background 0.4s;
}

    .status-dot.connecting {
        background: #ff9f0a;
        animation: pulse 1s infinite;
    }

    .status-dot.connected {
        background: #34c759;
    }

    .status-dot.reconnecting {
        background: #ff9f0a;
        animation: pulse 0.6s infinite;
    }

    .status-dot.disconnected {
        background: #ff3b30;
    }

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

#pubReconnect {
    display: none;
    background: rgba(255,159,10,0.12);
    border-top: 1px solid rgba(255,159,10,0.3);
    color: #d97706;
    text-align: center;
    font-size: 13px;
    padding: 8px 16px;
    flex-shrink: 0;
}

    #pubReconnect.show {
        display: block;
    }

#error-panel {
    display: none;
    position: absolute;
    bottom: 80px;
    left: 12px;
    right: 12px;
    background: rgba(255,255,255,0.95);
    border: 1px solid rgba(255,59,48,0.3);
    border-radius: 12px;
    padding: 14px 16px;
    z-index: 20;
    max-height: 45vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

    #error-panel.show {
        display: block;
    }

.error-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.error-title {
    color: #ff3b30;
    font-size: 14px;
    font-weight: 600;
}

.error-clear {
    background: none;
    border: none;
    color: #6e6e73;
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    -webkit-tap-highlight-color: transparent;
}

.error-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-item {
    font-size: 12px;
    font-family: 'Menlo', 'Courier New', monospace;
    color: #d32f2f;
    background: rgba(255,59,48,0.08);
    border-radius: 6px;
    padding: 8px 10px;
    word-break: break-all;
    line-height: 1.5;
}

    .error-item .error-time {
        color: #86868b;
        font-size: 10px;
        display: block;
        margin-bottom: 3px;
    }

.bottom-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.ctrl-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.06);
    color: #1d1d1f;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s, transform 0.1s;
    position: relative;
}

    .ctrl-btn:active {
        transform: scale(0.93);
    }

    .ctrl-btn.muted {
        background: rgba(255,59,48,0.15);
        color: #ff3b30;
    }

    .ctrl-btn.cam-off {
        background: rgba(255,59,48,0.15);
        color: #ff3b30;
    }

#btn_debug {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    background: transparent;
    color: #6e6e73;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

    #btn_debug.active {
        border-color: #ff9f0a;
        color: #ff9f0a;
        background: rgba(255,159,10,0.08);
    }