/* 引入字體 */
@import url('https://fonts.cdnfonts.com/css/avenir');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url(https://fonts.googleapis.com/earlyaccess/notosanstc.css);

/* 顶部栏样式 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 20px; */
    padding: .75rem 1.5rem;
    background-color: #ffffff; /* 背景颜色 */
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* 轻微阴影 */
    border-bottom: 1px solid #ddd; /* 下边框 */
}

.topbar-left {
    display: flex;
    align-items: center;
    font-family: Noto Sans TC;
    font-size: 26px;
    font-weight: 600;
    line-height: 42.9px;
    letter-spacing: 0.04em;
}

.topbar-left h2 {
    margin: 0;
    font-size: 24px;
    color: #333; /* 字体颜色 */
}

.label-icon {
    margin-left: 10px; /* 调整间距，确保图标靠近标题 */
    width: 24px;
    height: 24px;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.language_field {
    display: flex;
    padding: 4px 8px;
    /* margin-right: 1rem; */
    align-items: stretch;
    gap: 8px;
    border-radius: 4px;
    border: 1px solid var(--neutral-black-80, rgba(49, 49, 49, 0.80));

    .language_icon_field {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .display_text {
        color: var(--neutral-black, #313131);
        text-align: center;
        font-family: Noto Sans TC;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
        letter-spacing: 0.32px;
    }

    .language_name{
        margin: 0;
    }
}

.login_field {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-id{
    font-family: Noto Sans TC;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    color: #313131;
}

.language-switcher {
    background: none;
    border: none;
    font-size: 16px;
    color: #333;
    margin-right: 15px;
    cursor: pointer;
}

.icon-notification {
    font-size: 20px;
    margin-right: 15px;
    cursor: pointer;
}

.user-id {
    font-size: 16px;
    color: #333;
}


/* 分隔线样式 */
.form-divider {
    border: none;
    border-top: 1px solid #ccc; /* 灰色线条 */
    margin: 0;
    margin-bottom:12px;
    padding:0;
}

/* 样式表 */

body {
    font-family: 'Noto Sans TC';
    font-size:16px;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    height: 100vh;
}

/* 左侧导航栏样式 */
.sidebar {
    width: 250px;
    background-color: white;
    padding: 20px;
}

.sidebar h2 {
    margin-top: 0;
    font-size: 20px;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin: 10px 0;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    align-items: center;
}

.sidebar ul li a.active, .sidebar ul li a:hover {
    background-color: #F1F2F6;
    color: #223B86;
}

.sidebar{
    padding: 1rem;
    width: 14rem;
    padding-left: 0;
}

.sidebar ul{
    margin: 0;

    & li{
        margin: 0;
        margin-bottom: .5rem;
    }

    & li a{
        border-radius: 0 100px 100px 0;
        padding: .5rem;
        display: flex;
        align-items: center;
        gap: .5rem;
        font-family: Noto Sans TC;
        font-size: 1rem;
        font-weight: 500;
        line-height: 140%;
        letter-spacing: 0.02em;
        padding-left: 1.25rem;
    }

    .icon{
        width: 40px;
    }
}

.sidebar ul li a:hover{
    background-color: #F1F2F6;
    font-weight: 700;
}

/* 主内容样式 */
.content {
    flex-grow: 1;
    padding: 20px;
    background-color: #F1F2F6;
}

.header h1 {
    margin-bottom: 0;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#permissionManagementContent > * {
    margin-bottom: 16px;
}

/* 取消最后一个子元素的 margin-bottom */
#permissionManagementContent > *:last-child {
    margin-bottom: 0;
}

/* 搜索框和筛选器样式 */
.filters {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.filters input[type="text"], .filters select {
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.filters select {
    width: 150px;
    background-color: #fff;
    appearance: none;
    background-image: url("./svg/select_expand_icon.svg");
    background-repeat: no-repeat;
    background-position: right .5rem center;
    padding: .5rem .75rem;
}

.filters select:focus{
    outline: none;
}

.filters-left {
    display: flex;
    align-items: stretch;
}

.filters-right {
    display: flex;
    align-items: stretch;
}

.btn-add {
    width: 97px; /* 按钮的宽度 */
    height: 40px;
    background-color: #396EE6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-align: center; /* 文字居中 */
    display: inline-block;
    font-family: Noto Sans TC;
    font-size: 16px;
    font-weight: 500;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    padding: .75rem 1rem;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add:hover {
    background-color: #223B86;
    color: white;
}

/* 表格样式 */
#usersTable {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    background: white;
    box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.25);
}

#usersTable thead th {
    border-bottom: 2px solid #ddd; /* 下边框 */
    border-radius: 8px;
    padding-left: 16px;
}

#usersTable tbody td {
    padding-left: 16px;
    border-bottom: 1px solid #ddd; /* 下边框 */
    border-radius: 8px;
}

#usersTable th, td {
    padding: 8px;
    text-align: left;
    background-color: white;
}

#usersTable td input[type="checkbox"] {
    margin: 0;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-btn {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f2f2f2;
    cursor: pointer;
}

.page-btn:hover {
    background-color: #ddd;
}

/* 模态窗口样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    right:0;
    width: 100vw; 
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 7% auto;
    padding: 0 22px 10px 22px;
    border: 1px solid #888;
    width: 420px;
    min-height:400px;
    border-radius: 8px;
}

.closeBtn {
    color: #aaa;
    position: absolute;
    right: 15px;  /* 調整這個值來確保與視窗右邊緣對齊 */
    font-size: 28px;
    font-weight: bold;
    width:18px;
    height:18px;
    padding: 0;
    margin-top:10px;
}

.closeBtn:hover,
.closeBtn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.add-Account {
    font-weight: 700;
    font-size: 22px;
    line-height: 30.8px;
    width: 472px;
    height: 39px;
    margin-top: 15px;
}

.label {
    display: block;
    gap:12px;
}

form .input-title{
    font-weight:550;
    font-size:18px;
    line-height:25.2px;
    color:#313131;
    margin-top:2px;
    display:block;
    margin-bottom:4px;
}

form .input-text,.input-text::placeholder{
    font-weight:400;
    font-size:15px;
    line-height:22.4px;
    color: #A6A6A6;
}

.input-text:focus {
    border-color: #015fcc; 
    outline: none; 
    border-width:1px;
    color:#000000 ;
    border-radius:5px;
}

input[type="text"], input[type="password"], select {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    color:black;
}

select{
    background-color: #fff;
    appearance: none;
    background-image: url(./svg/select_expand_icon.svg);
    background-repeat: no-repeat;
    background-position: right .5rem center;
    padding: .5rem .75rem;
    border-radius: .5rem;
}

.button-container {
    text-align: center; 
    margin-top: -12px;   
    margin-bottom:12px;
}

.button-container button {
    background-color: #396EE6;
    color: white;
    width: 108px;
    height: 38px;
    font-weight: 400;
    font-size:16px;
    line-height: 22.4px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #2e5abf;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.selectpicker {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #ffffff;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    width: 100%; 
    box-sizing: border-box;
}

.select-wrapper::after {
    content: url('drop-down-button.png'); 
    position: absolute;
    right: -130px;
    top: 190%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 160px; 
    height: 160px; 
    z-index: 100; 
}

/* Compatibility with .picker */
.picker .pc-select .selectpicker {
    padding-right: 0px; 
    background-color: #fff; /* Match existing picker styles */
    border: 1px solid #ccc; /* Match existing border */
}

.picker .pc-select {
    position: relative;
}

.picker .pc-trigger {
    margin-right: 0;
    width: calc(100% - 40px); /* Adjust width to account for icon */
    cursor: pointer;
}

/* 报表系统内容样式 */
.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.report-header h1 {
    margin: 0;
    font-size: 26px;
    color: #313131;
}

.btn-generate {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-generate:hover {
    background-color: #0056b3;
}

/* 表格样式 */
#reportTable {
    width: 100%;
    border-collapse: collapse;
}

#reportTable th, #reportTable td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#reportTable th {
    background-color: #f2f2f2;
    font-weight: bold;
}

#reportTable td {
    vertical-align: middle;
}

/* 按钮样式 */
.btn-evaluate, .btn-finish, .btn-more {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #007bff;
    color: white;
}

.btn-evaluate:hover, .btn-finish:hover, .btn-more:hover {
    background-color: #0056b3;
}

/* 状态标签样式 */
.badge {
    padding: 5px 10px;
    border-radius: 5px;
    color: white;
    font-size: 12px;
    text-align: center;
}

.badge-in-progress {
    background-color: #ffc107;
}

.badge-completed {
    background-color: #28a745;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.page-btn {
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f2f2f2;
    cursor: pointer;
}

.page-btn:hover {
    background-color: #ddd;
}

/* 隐藏默认的checkbox */
.switch input[type="checkbox"] {
    display: none;
}

/* 自定义开关的样式 */
.slider {
    position: relative;
    display: inline-block;
    width: 28px;  /* 根据图片的实际宽度调整 */
    height: 16px; /* 根据图片的实际高度调整 */
    background-image: url('images/Switch_off.png'); /* 默认状态的图片 */
    background-size: cover;
    cursor: pointer;
    transition: background-image 0.4s ease;
}

/* 开关打开状态的样式 */
input:checked + .slider {
    background-image: url('images/Switch.png'); /* 选中状态的图片 */
}

/* 按钮的基础样式 */
.btn-edit {
    background-color: transparent; /* 按钮背景透明 */
    border: none; /* 移除按钮的边框 */
    padding: 0; /* 去除默认内边距 */
    cursor: pointer; /* 鼠标悬停时显示为指针 */
}

/* 自定义图片的大小 */
.edit-icon {
    width: 20px; /* 根据需要调整图片大小 */
    height: 20px;
}

.btn-delete {
    background-color: transparent;
    border: none; /* 移除按钮的边框 */
    padding: 0; /* 去除默认内边距 */
    cursor: pointer; /* 鼠标悬停时显示为指针 */
}

.btn-delete:hover {
    background-color: transparent;
}

#search {
    width: 200px; /* 输入框的宽度 */
    border-radius: 5px;
    border: 1px solid #3131314D;
    padding: .5rem .75rem;
    margin-bottom: 0;
    height: 40px;
    padding: 8px 30px 8px 10px; /* 添加右侧内边距以显示放大镜 */
    border: 1px solid #ccc;
    border-radius: 8px;
    background-image: url('images/sistrix.png'); /* 放大镜图片路径 */
    background-size: 16px 16px; /* 放大镜图片大小 */
    background-repeat: no-repeat;
    background-position: right 8px center; /* 将放大镜图片定位到右侧中间 */
    outline: none;
    box-sizing: border-box;

    font-family: Noto Sans TC;
    font-size: 16px;
    font-weight: 400;
    line-height: 22.4px;
    letter-spacing: 0.02em;
    color: #313131;
/*    border: 0;*/
/*    padding: .5rem .75rem;*/
    /*border-radius: .5rem 0 0 .5rem;
    max-width: 10rem;*/
}

#search::placeholder {
    color: #838383;
}

#search:focus {
    outline: none;
}

.container{
    padding: 0;
    margin: 0;

    .content{
        padding: 2.75rem 1.75rem;
        background-color: #F1F2F6;
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: .75rem;

        .page_title{
            font-family: Noto Sans TC;
            font-size: 26px;
            font-weight: 700;
            line-height: 42.9px;
            letter-spacing: 0.04em;
            color: #313131;
        }

        .filter_with_table_section{
            display: flex;
            flex-direction: column;
            gap: 1rem;

            .filter_section{
                display: flex;
                align-items: center;
                justify-content: space-between;

                .filter{
                    display: flex;
                    align-items: center;
                    gap: 1rem;

                    .filtering_select+.picker{
                        width: 10rem;
                        border-radius: .5rem;
                        padding: .5rem .75rem;
                        border: 1px solid #3131314D;

                        .pc-select .pc-element{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 400;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #606060;
                        }

                        .pc-list li{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 600;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }
                    }
                    
                    .create_tag_group_btn{
                        border-radius: .5rem;
                        padding: .75rem 1rem;
                        background-color: #396ee6;
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 500;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #fff;
                        border: 0;
                        height: 38px;
                        display: flex;
                        align-items: center;
                    }
                }

                .search{
                    width: unset;
                    border-radius: .5rem;
                    border: 1px solid #A6A6A6;

                    .search_input{
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                        border: 0;
                        padding: .5rem .75rem;
                        border-radius: .5rem 0 0 .5rem;
                        max-width: 10rem;
                    }

                    .search_input:focus{
                        outline: none;
                    }

                    .search_input::placeholder{
                        color: #838383;
                    }

                    .input-group-text{
                        border: 0;
                        border-radius: 0 .5rem .5rem 0;
                        background: #fff;
                    }
                }
            }

            .table_container{
                border-radius: .5rem;
                padding: 0 1rem .75rem 1rem;
                background-color: #fff;
                box-shadow: 0px 4px 8px 0px #0000000F,
                            0px 0px 4px 0px #0000000A;


                .tag_filtering_table{
                    width: 100%;

                    >thead{
                        box-shadow: 0px -1px 0px 0px #00000040 inset;
                    }

                    & th{
                        padding: 1rem .5rem;
                        background-color: #fff;
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 500;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }

                    .with_sort{
                        display: flex;
                        align-items: center;

                        .icon{
                            width: 1.25rem;
                            height: 1.25rem;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
                    }

                    & td{
                        padding: 1rem .5rem;
                        background-color: #fff;
                        font-family: Noto Sans TC;
                        font-size: 1rem;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }
                }
            }

            .pagination_section{
                display: flex;
                justify-content: center;
                align-items: center;

                .paging_with_jump_to_page{
                    display: flex;
                    align-items: center;
                    gap: 1rem;

                    .paging{
                        display: flex;
                        align-items: center;
                        gap: .5rem;
                        list-style: none;
                        padding: 0;
                        margin: 0;

                        .page_item{
                            border-radius: .25rem;
                            padding: .625rem;
                            background-color: #fff;
                            border: 1px solid #31313133;
                            font-family: Noto Sans TC;
                            font-size: .875rem;
                            font-weight: 400;
                            line-height: 140%;
                            letter-spacing: 0.04em;
                            color: #313131;
                            width: 2rem;
                            height: 2rem;
                            display: flex;
                            align-items: center;
                            justify-content: center;
                        }
    
                        .page_item.prev_page{
                            color: #31313133;
                        }
    
                        .page_item.active{
                            background-color: #396ee6;
                            padding: 1px 7px;
                            color: #fff;
                        }
                    }

                    .jump_to_page{
                        display: flex;
                        align-items: center;
                        gap: .5rem;
                        font-family: Noto Sans TC;
                        font-size: 14px;
                        font-weight: 400;
                        line-height: 19.6px;
                        letter-spacing: 0.04em;
                        color: #313131;

                        .page_input{
                            width: 3rem;
                            height: 2rem;
                            border-radius: .25rem;
                            border: 1px solid #31313133;
                            padding: 1px 7px;
                        }

                        .page_input:focus{
                            outline: none;
                        }
                    }

                    .page_select+.picker{
                        width: 6rem;
                        height: 2rem;
                        border-radius: .5rem;
                        padding: .5rem .75rem;
                        border: 1px solid #3131314D;

                        .pc-select .pc-element{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 400;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }

                        .pc-list li{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 600;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }
                    }
                }
            }
        }
    }
}

.topbar{
    border: 0;
    position: sticky;
    left: 0;
    top: 0;
    box-shadow: 0px 4px 4px 0px #00000040;
    z-index: 10;
}

.container{
    max-width: unset;
}

/* 編輯帳號 modal */
#edit_account_modal{

    .modal-content{
        width: 32.5rem;
        border-radius: .5rem;
        padding: 1.5rem;
        min-height: unset;

        .modal-header{
            padding: 0 0 .5rem 0;
            box-shadow: 0px 1px 0px 0px #00000040;
            margin-bottom: 1.5rem;

            .modal-title{
                font-family: Noto Sans TC;
                font-size: 22px;
                font-weight: 700;
                line-height: 30.8px;
                letter-spacing: 0.02em;
                color: #313131;
            }

            .close{
                background-color: #fff;
                border: 0;
            }
        }

        .edit_account_form{
            display: flex;
            flex-direction: column;
            gap: 1rem;                        

            .form_item{
                display: flex;
                flex-direction: column;
                gap: .75rem;

                .form_label{
                    font-family: Noto Sans TC;
                    font-size: 18px;
                    font-weight: 500;
                    line-height: 25.2px;
                    text-align: left;
                    color: #313131;
                }

                >input,
                >select+.picker{
                    border-radius: 5px;
                    border: 1px solid #3131314D;
                    padding: .5rem .75rem;
                }

                >input:focus{
                    outline: none;
                }

                >select+.picker{

                    .pc-list{
                        border-radius: .5rem;
                        padding: 0;

                        & li{
                            font-family: Noto Sans TC;
                            font-size: 16px;
                            font-weight: 500;
                            line-height: 22.4px;
                            letter-spacing: 0.02em;
                            color: #313131;
                        }

                        & li:hover{
                            background-color: #F1F2F6;
                        }
                    }

                    .pc-element.pc-trigger{
                        width: 100%;
                        font-family: Noto Sans TC;
                        font-size: 16px;
                        font-weight: 400;
                        line-height: 22.4px;
                        letter-spacing: 0.02em;
                        color: #313131;
                    }
                }
            }

            .form-footer{
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .admit_btn{
                border-radius: .5rem;
                border: 2px solid #396EE6;
                padding: .75rem;
                background-color: #396ee6;
                color: #fff;
                font-family: Noto Sans TC;
                font-size: 1rem;
                font-weight: 400;
                line-height: 22.4px;
                letter-spacing: 0.02em;
                height: 38px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
    }
}
/* 修改跑版 */
div.container{
    margin: 0;
    max-width: unset;
    padding: 0;
}

#editModal{

    .modal-content{
        width: 32.5rem;
        border-radius: .5rem;
        border: 0;

        .add-Account>h2{
            font-family: Noto Sans TC;
            font-size: 22px;
            font-weight: 700;
            line-height: 30.8px;
            letter-spacing: 0.02em;
            color: #313131;
        }

        .button-container{
            margin-top: 1.5rem;
        }

        input[type="text"], 
        input[type="password"], 
        select{
            margin-bottom: 1rem;
        }

        form .input-title{
            font-family: Noto Sans TC;
            font-size: 18px;
            font-weight: 500;
            line-height: 25.2px;
            color: #313131;
            margin-bottom: .75rem;
        }

        .pikcer{
            .pc-element pc-trigger{
                width: 100%;
            }
        }
    }
}