:root {
    --BLUE_OG: #0e4c80;
    --BLUE: #0064b8;
    --BLUE_HOVER: #007ee5;
    --RED: #DC221A; 
    --RED_HOVER: #ff0019;
    --RED_DARK: #b50017;
}
            
        
@font-face {
    font-family: 'DB_0';
    src: url('../fonts/DB_Thin.ttf') format('truetype');
}

@font-face {
    font-family: 'DB_1';
    src: url('../fonts/DB_Reg.ttf') format('truetype');
}

@font-face {
    font-family: 'DB_2';
    src: url('../fonts/DB_Med.ttf') format('truetype');
}

@font-face {
    font-family: 'DB_3';
    src: url('../fonts/DB_Bd.ttf') format('truetype');
}









            /* General reset */
            * {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                font-size: 14px;

            }
            
            body {
                font-family: Arial, sans-serif;
                background-color: #f7f7f7 !important;
                min-width: 525px;
                background-size: cover;
                background-position: center;
                background-repeat: no-repeat;
                margin: 0;
                padding: 0;
                /* height: 100vh; 
                position: relative;
                overflow: hidden;*/ 
            }
            
            
            body::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-image: inherit;
                background-size: inherit;
                background-position: inherit;
                background-repeat: inherit;
                z-index: -2;
            }
        /*
            
            body::after {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: white;
                opacity: 90%; 
                z-index: -1;
            }
            */
            
            /* Top Bar */
            #top_bar {
                display: flex;
                justify-content: space-between;
                align-items: center;
                /* padding: 10px 20px; */
                height: 52px;
                background-color: #ffffff;
                box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
            }
            
            #logo {
                width: 43px;
                top: 3px;
                left: 20px;
                position: absolute;
            }
            

            
            #top_bar_sketchUnivercity_wrap {
                position: absolute;
                left: 69px;
                top: 7px;
            }
            
      
            
            #top_bar_sketchUnivercity_text_Sketch {
                color: var(--BLUE_OG);
                position: absolute;
                font-family: 'DB_1';
                font-size: 25px;
                top: -5px;
            }
            
            #top_bar_sketchUnivercity_text_UniverCity {
                color: var(--RED);
                position: absolute;
                top: -5px;
                left: 55px;
                font-size: 25px;
                font-family: 'DB_1';
            }

            #top_bar_toolsBar_text {
                color: #636363;
                position: absolute;
                top: 24px;
                left: 68px;
                font-size: 18px;
                font-weight: 300;
                font-family: 'DB_0';
            }
            
            
            .user_profile {
                background-color: #eeeeee;
                width: 32px;
                height: 32px;
                border-radius: 50%;
                display: inline;
                position: absolute;
                right: 20px;
                top: 11px;
                cursor: pointer;
            }
            

            #pop_up_profile {
                position: absolute;
                top: 53px;
                right: 20px;
                z-index: 2;
            }
            .pop_up_menu {
                background-color: #f1f1f1;
                width: 230px;
                border-radius: 16px;
                padding: 4px 4px;
                box-shadow: 0 0px 7px rgb(0 0 0 / 20%);
                border-color: #f1f1f1;
                border-style: solid;
                border-width: 5px;
                display: none;
                opacity: 0;
                transform: scaleY(0);
                transform-origin: top;
                transition: opacity 0.2s ease, transform 0.2s ease;
            }
            .pop_up_menu ul{
                padding-left: 0px;
            }
            .pop_up_menu li {
                list-style-type: none;
                background-color: rgba(255, 255, 255, 81%);
                border-style: solid;
                border-width: 1px;
                border-color: rgb(221 221 221);
                margin: 6px 6px;
                padding: 2px 14px 1px;
                border-radius: 7px;
                color: #909090;
                cursor: pointer;
                transition: background-color 0.2s, color 0.2s;
                font-family: 'DB_1';
                font-size: 18px;
                letter-spacing: 0.5px;
            }
            .pop_up_menu li:hover{
                list-style-type: none;
                background-color: white;
                color:  var(--RED);
            }
            .pop_up_menu img {
                width: 15px;
                margin-right: 6px;
                position: relative;
                top: -2px;
                opacity: 47%;
            }


            
            /* Search Box */
            #search_textbox {
                display: block;
                width: calc(100% - 40px);
                margin: 15px auto;
                padding: 5px;
                border: 1px solid lightgray;
                border-radius: 8px;
                background: #ffffff url(image/magify_glass_icon.jpeg) no-repeat left center;
                background-size: 21px;
                background-position-x: 9px;
                padding-left: 36px;
                font-size: 14px;
            }
            
            #search_textbox::placeholder {
                color: #999;
            }
            
            /* Nav Bar */
            #nav_bar {
                display: flex;
                justify-content: left;
                margin-top: -10px;
                margin-left: 30px;
            }
            
            #nav_bar_content  {
            
                display: inline-block;
                font-size: 14px;
            }
            
            .menu_selected {
                background-color: var(--BLUE) !important;
                color: white !important;
            }
            
            .menu_myPlugin{
                padding: 3px 11px 0px;
                margin: 0px 4px;
                border-radius: 8px 8px 0 0;
                cursor: pointer;
                display: inline-block;
                background-color: rgb(201, 201, 201);
                color: #464646;
                box-shadow: 2px -1px 5px rgb(0 0 0 / 10%);
                transition: background-color 0.2s, color 0.2s;
                z-index: 1;
                font-family: 'DB_1', Arial, sans-serif;
                font-size: 19px;
                letter-spacing: 0.6px;
                margin-top: 5px;
            }
            
            .menu_myPlugin:hover {
                background-color: rgb(222, 222, 222);
            }
            
            /* Display Content */
            #display { 
                padding:0px;
                margin: 20px;
                margin-top: -1px;
                background-color: white;
                border-radius: 10px;
                box-shadow: 0 5px 5px rgb(0 0 0 / 10%);
                z-index: 2;
                
            }
            
            #display_sketch_student_area {
                background-color: #e9f4ff;
                padding: 10px;
                border-radius: 10px;
                margin-bottom: 0px;
                display: flex;
                flex-wrap: wrap;
                padding-top: 15px;
            }
            
            #display_sketch_student_area_title {
                padding:0px;
                display: flex;
                flex-wrap: wrap;
            }
            
            #graduation_hat {
                width: 42px;
                opacity: 0.9;
            }
            
            #display_sketch_student_area_title_text {
                color: #1f6a95;
                font-weight: 300;
            }
            
            #display_student_app_area {
                padding:10px;
                display: flex;
                flex-wrap: wrap;
                padding-top: 15px;
                
            }
            
            .app {
                display: inline-block;
                text-align: center;
                margin: 1px;
                margin-top: 10px;
                margin-bottom: 7px;
                cursor: pointer;
                width: 65px;
                position: relative; /* Needed for positioning the overlay and arrow icon */
            }
            
            .imgWrapper {
                position: relative;
                display: inline-block; /* Or 'block' depending on your layout */
               
                border-radius: 10px; /* Optional, to match your app_icon's border-radius */
            }
            
            .appNotInstalled .imgWrapper::after {
                content: '';
                position: absolute;
                top: 0px;
                left: 0px;
                right: 0px;
                bottom: 0px;
                background: url('image/downloadOverlay.png') no-repeat center center;
                background-size: cover;
                border-radius: 10px;
                z-index: 1;
                opacity: 0.7; /* Adjust as needed */
            }
            
            
            .app_icon {
                width: 45px;
                height: 45px;
                padding: 0px;
                border-radius: 10px;
                box-shadow: 0px 0px 7px rgb(0 0 0 / 10%);
                background-color: white;
                transition: brightness 0.2s, box-shadow 0.2s;
            }
            
            .app_icon:hover {
                filter: brightness(120%);
                box-shadow: 0px 0px 10px rgb(0 0 0 / 20%);
            }
            
    
            
            
            
            #credit_area {
                position: absolute;
                right: 66px;
                top: 8px;
                display: flex;
                justify-content: flex-end;
                width: 160px;
                font-size: 12px;
            }
            
            
            #credit_area_table {
                color: #5f5f5f;
            }
            
            .wallet_icon {
                width: 14px;
                margin-right: 5px;
                opacity: 45%;
            }
            
            #wallet_image {
                top: 0px;
            }
            
            #coin_image {
                top: 0px;
            }
            
            .wallet_amount {
                top: 1px;
                position: relative;
                cursor: pointer;
                font-size: 12px;
            }
            
            .wallet_amount:hover {
                color:  var(--RED);
            }
            
            #coin_amount {
                top: 2px;
                position: relative;
            }
            .clickable:hover
            {
                color:  var(--RED);
                cursor: pointer;
            }

           
            .button {

                background-color: #ffcabe;
                color: #a84900;
                border: 1px solid #c45805;
                padding: 6px 13px;
                border-radius: 8px;
                
                cursor: pointer;
                transition: filter 0.2s;
               
            }
            
            .button:hover {
                filter: brightness(105%);
            }

        

            .area {
                background-color: white;
                padding: 31px;
                padding-top: 12px;
                border-radius: 20px;
                margin-top: 30px;
                box-shadow: 1px 2px 8px rgba(0, 0, 0, 13%);
            }

            .table_detail {
                width: 100%;
                border-collapse: collapse;
                margin: 25px 0;
                font-size: 0.9em;
                background-color: #ffffff;
                /* White background for the table */
                border-radius: 20px;
                /* Rounded corners */
                overflow: hidden;
                /* Ensures the inner content respects border-radius */
                box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
                /* Subtle shadow for depth */
            }
        
            .table_detail th,
            .table_detail td {
                text-align: left;
                padding: 8px 12px;
                border-bottom: 1px solid #ddd;
                /* Subtle row separation */
            }
        
            .table_detail th {
                background-color: #f0f0f0;
                /* Light gray header */
                color: #333;
                /* Dark text for contrast */
            }
        
            .table_detail tr:hover {
                background-color: #f9f9f9;
                /* Row hover effect */
            }
        
            /* Align numbers to the right */
            .table_detail .right-align {
                text-align: right;
            }
            .notification
            {
                background: #fedcca;
                color: #c24000;
                margin: 20px 20px 0px;
                padding: 10px;
                border-radius: 10px;
                text-align: center;
                border: 1px solid;
            }


            .back_button {
                height: 31px;
                background-color: var(--RED_DARK);
                border-radius: 50px;
                color: white;
                padding: 2px;
                width: 66px;
                position: relative;
                top: -8px;
                cursor: pointer;
                transition: background-color 0.2s, color 0.2s;
                margin-left: 20px;
            }
    
            .back_button:hover {
                background-color: var(--RED);
            }




    /*---------- จุด Live Circle  สีแดง ----------*/


    .live_circle_red {
                position: relative;
                left: 22px;
                top: 0px;
                transform: translateX(-50%) translateY(-50%);
                width: 13px;
                height: 13px;
              
                &:before {
                    content: "";
                    position: relative;
                    display: block;
                    width: 200%;
                    height: 200%;
                    box-sizing: border-box;
                    margin-left: -110%;
                    margin-top: -21%;
                    border-radius: 45px;
                    background-color: #dc0000;
                    animation: pulse 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
                }
              
    &:after {
        content: "";
        position: absolute;
        left: -6px;
        top: 5px;
        display: block;
        width: 80%;
        height: 80%;
        background-color: #df0000;
        border-radius: 50px;
        animation: circle 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
    }
    }
    
    @keyframes pulse {
    0% {
        transform: scale(0.33);
    }
    80%,
    100% {
        opacity: 0;
    }
    }
    
    @keyframes circle {
    0% {
        transform: scale(0.8);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(0.8);
    }
    }

    /*----------จบ  จุด Live Circle ----------*/




    .live_circle {
        position: relative;
        left: 22px;
        top: 20px;
        transform: translateX(-50%) translateY(-50%);
        width: 13px;
        height: 13px;
    
      
        &:before {
            content: "";
            position: relative;
            display: block;
            width: 160%;
            height: 160%;
            box-sizing: border-box;
            margin-left: -83%;
            margin-top: -100%;
            border-radius: 45px;
            background-color: #ffffff;
            animation: pulse 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
        }
      
        &:after {
            content: "";
            position: absolute;
            left: -4px;
            top: 6px;
            display: block;
            width: 60%;
            height: 60%;
            background-color: #ffffff;
            border-radius: 50px;
            animation: circle 1.25s cubic-bezier(0.455, 0.03, 0.515, 0.955) -0.4s infinite;
        }

}

@keyframes pulse {
0% {
transform: scale(0.33);
}
80%,
100% {
opacity: 0;
}
}

@keyframes circle {
0% {
transform: scale(0.8);
}
50% {
transform: scale(1);
}
100% {
transform: scale(0.8);
}
}







.arrow-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 63px;
    height: 28px;
    background-color: #e1e1e1;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    top: 1px;

}

.arrow-button:hover {
    background-color: #c8c8c8;
    /* Darker gray on hover */
}

.arrow-button img {
    width: 11px;
    height: 11px;
}


.blue_check {
    width: 14px;
    height: 14px;
    margin-left: 10px;
    margin-right: 10px;
}

.gray_button{
    width: 100px;
    margin-left: 0px;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    background-color: #a6a6a6;
    border-radius: 50px;
    color: white;
    position: relative;
}
.gray_button:hover{
    background-color: #888888;
}

.btn-add-article {
    background-color: white;
    color: gray;
    padding: 7px 20px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-top: -4px;
    transition: background-color 0.2s;
}

.btn-add-article:hover {
    color: var(--BLUE_OG);
}

.title_text_center_big
{
    color: var(--BLUE_OG);
    font-size: 32px;
    font-family: DB_2;
}

.title_center {
    color: #464646;
    font-size: 23px;
    font-family: 'DB_1';
    letter-spacing: 0.6px;
}


.button_secondary {
    cursor: pointer;
    color: #636363;
    transition: color 0.2s;
    font-family: 'DB_1';
    font-size: 19px;
    padding: 3px 33px;
    border-radius: 10px;
    border: none;
  
}   

.button_secondary:hover {
    color: var(--BLUE_OG);
}

.text_in_back_button {
    font-family: 'DB_1';
    font-size: 18px;
}

.exclusive_app {
    position: relative;
    background-color: #ffcabe;
    margin-top: 5px;
    border-radius: 5px;
    color: #a35400;
}




/* สถิติ */
.table_detail {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 6px;
    font-size: 0.9em;
    background-color: #ffffff; /* White background for the table */
    border-radius: 20px; /* Rounded corners */
    overflow: hidden; /* Ensures the inner content respects border-radius */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}
.table_detail th, .table_detail td {
    text-align: right;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd; /* Subtle row separation */
}

.table_detail tr:hover {
    background-color: #f9f9f9; /* Row hover effect */
}
/* Align numbers to the right */
.table_detail .right-align {
    text-align: right;
}
.clickable {
    cursor: pointer; /* Changes cursor to a pointer */
}
.table_detail th {
    background-color: #f0f0f0; /* Light gray header */
    color: #333; /* Dark text for contrast */
    text-align: right; /* Right align headers by default */
}

.table_detail th.center-align {
    text-align: center; /* Center align for specific headers */
}

.table_detail th.group-header {
    border-right: 1px solid #ddd; /* Dividing line */
}

.table_detail td.group-data {
    border-right: 1px solid #ddd; /* Dividing line */
}

.table_detail_extension th.center-align {
    text-align: center; /* Center align headers for extension table */
}

.table_detail_extension th.group-header {
    border-right: 1px solid #ddd; /* Dividing line for extension table */
}

.table_detail_extension td.group-data {
    border-right: 1px solid #ddd; /* Dividing line for extension table */
}


/* หมด สถิติ */


.admin_title_text {
    font-size: 20px;
    color: #dc4900;
    margin-bottom: -8px;
}




.blue_button {
    background-color: var(--BLUE_OG);
    color: white;
    padding: 4px 20px;
    border-radius: 15px;
    border: none;
    cursor: pointer;
    font-size: 20px;
    margin-top: -4px;
    transition: background-color 0.2s;
    width: 120px;
    text-align: center;
    font-family: 'DB_1';
    letter-spacing: 0.6px;
    display: inline;
}
.blue_button:hover {
    background-color: var(--BLUE);
}



.title_black{
    text-align: center;
    font-family: DB_1;
    font-size: 24px;
    letter-spacing: 0.5px;
}
.red_button {
    background-color: var(--RED_DARK);
    color: white;
    padding: 4px 20px;
    font-family: 'DB_1';
    font-size: 20px;
    letter-spacing: 0.5px;
    display: inline;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.red_button:hover {
    background-color: var(--RED);
    transition: 0.2s;
}




.lesson-content {
    background-color: white;
    box-shadow: 0px 0px 8px 3px rgb(0 0 0 / 17%);
    border-radius: 10px;
    padding: 4px 13px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-left: 20px;
    margin-right: 20px;
}


.owned-checkmark {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ccc;
    border-radius: 50%;
    width: 23px;
    height: 23px;
    position: relative;
    margin: 4px;
}

.download_button {
    background-color: var(--BLUE_OG);
    border-radius: 50px;
    color: white;
    padding: 0px 5px;
    width: 81px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    margin-right: 9px;
}

.download_button:hover {
    background-color: var(--BLUE_HOVER);
}

.lesson-content {
    background-color: white;
    box-shadow: 0px 0px 8px 3px rgb(0 0 0 / 17%);
    border-radius: 10px;
    padding: 4px 13px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    margin-left: 20px;
    margin-right: 20px;
}

.score-container {
    display: flex;
    align-items: center;
    width: 86px;
}

.score-value {
    padding-bottom: 2px;
}

.score-value span {
    font-size: 16px;
    color: var(--BLUE);
}

.score-value .total {
    font-size: 16px;
    color: gray;
}

.progress-bar-container {
    background-color: #d3d3d3;
    border-radius: 5px;
    width: 50px;
    height: 10px;
    position: relative;
    margin-left: 9px;
}

.progress-bar {
    background-color: #0E4C80;
    border-radius: 5px 0 0 5px;
    width: 80%;
    height: 100%;
}

.course-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.course-name {
    margin-right: 10px;

    color: var(--BLUE_OG);
    font-family: DB_2;
    font-size: 25px;
    position: relative;
    top: 2px;
}

.course-code-small {
    font-size: 18px;
    color: #9b9b9b;
    margin-left: 8px;
}


.hr {
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 0px;
    margin-top: 13px;
    margin-bottom: 10px;
}

.list_clickable {
    width: 100%;
    display: flex;
    align-items: center;
    border-radius: 50px 0px 0px 50px;
    transition: background-color 0.2s;
    cursor: pointer;
    margin-bottom: 5px;
    margin-top: 5px;
}

.list_clickable:hover {
    background-color: white;
    transition: background-color 0.2s;
    color: var(--BLUE_OG);

}

.list_clickable_text {
    margin-left: 8px;
color: #6d6d6d;
flex-grow: 1;
overflow-wrap: break-word;
padding: 4px;
padding-right: 12px;
font-family: 'DB_1';
font-size: 20px;
margin-top: 2px;
margin-bottom: 1px;
line-height: 20px;
letter-spacing: 0.5px;
}

.list_clickable_circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3px;
    font-size: 12px;
    color: #8e8e8e;
    border: 1px solid #8e8e8e;
    flex-shrink: 0;
    font-size: 18px;
    /* Prevents the circle from shrinking */
}

.circle_done {
    background-color: var(--BLUE_OG);
    color: white;
    border: 0px;
}

.circle_current {
    background-color: white;
    color: black;
    border: 0px;
}

.list_clickable_selected {
    background-color: var(--BLUE_OG);
    color: white;
}

.list_clickable_selected:hover {
    cursor: default;
    background-color: var(--BLUE_OG);
    color: white;
}

.list_clickable_text_selected {
    color: white;
}

.list_clickable_text_done {
    color: black;
}

.app_wraper {
    width: 100%;
    align-items: center;
    display: flex;
    cursor: pointer;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: wrap;
}

.app_icon2 {
    box-shadow: 0px 0px 8px 1px rgba(0, 0, 0, 9%);
    border-radius: var(--bs-border-radius-lg);
    width: 35px;
    height: 35px;
    margin-right: 10px;
    background-color: white;
}

.blue_check {
    width: 14px;
    height: 14px;
    margin-left: 10px;
    margin-right: 10px;
}

.app-text {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
    margin-top: 8px;
}

.app-text:hover {
    color: var(--BLUE_OG);
}

.lock_icon {
    width: 15px;
    opacity: 50%;
    margin-right: 6px;
    margin-bottom: 4px;
}

.app_name {
    margin-top: 6px;
    font-size: 16px;
    line-height: 16px;
    color: #2a2a2a;
    font-family: 'DB_1';
}


.rent_button {
    background-color: #910000;
    height: 30px;
    width: 76px;
}
.rent_button:hover {
    background-color: #b80000;
}
.sidebar-title {
    font-family: 'DB_2';
font-size: 20px;
color: var(--BLUE_OG);
margin-top: -4px;
margin-bottom: -5px;
letter-spacing: 0.3px;
}

.light_button {
    
    color: var(--BLUE_OG);
    padding: 4px 20px;
    font-family: 'DB_1';
    font-size: 20px;
    letter-spacing: 0.5px;
    display: inline;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid var(--BLUE_OG);
    background-color: rgb(178, 213, 255);
}
.light_button:hover {
    background-color: rgb(221, 236, 255);
    color: var(--BLUE);
    transition: 0.2s;
}

.white_area {
    background-color: white;
    padding: 20px;
    margin: 0px;
    border-radius: 15px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 25%);
    margin-left: 7px;
}

.video_teaching_wrapper {
    width: 147px;
    text-align: center;
    border-radius: 10px;
    position: absolute;
    right: 50px;
    height: 33px;
    padding-top: 1px;
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 25%);
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.video_teaching_wrapper:hover{
    cursor: pointer;
    background-color: #FCFCFC;
    transition:0.2s;
}

.video_teaching_icon {
    width: 26px;
    height: 17px;
    margin-right: 5px;
}