/* Version v2.5 */

body {
    font-family: Arial, sans-serif;
    margin: 0px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-width: 800px;
    min-height: 600px;
    box-sizing: border-box;
}

/* Header area */

.header {
    width: 100%;
    height: 50px;
    background-color: #f0f0f0;
    color: black;
    padding: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    width: 40%;
    display: flex;
    align-items: center;
    align-content: center;
}

.title {
    font-size: 20px;
}

.main_menu {
    list-style-type: none;
    padding: 0;
    margin: 0 20px;
    display: flex;
}

.main_menu li {
    color: black;
    padding: 10px 6px;
    display: inline;
    margin: 0;
    cursor: pointer;
}

.main_menu li:hover {
    color: white;
    background-color: #d9271c;
}

/* Footer area */

.footer {
    width: 100%;
    height: 25px;
    display: flex;
    background-color: #f0f0f0;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: grey;
    box-sizing: border-box;
}

footer a {
    color: grey;
}

.footer a:hover {
    color: black;
}

.footer a:visited {
    color: grey;
}

.term-link {
    color: black;
    font-weight: 600;
}

.term-link:visited {
    color: black;
}

/* Workspace area */

.workspace {
    width: 100%;
    background-color: white;
    flex: 1;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
}


.workspace li {
    padding: 10px;
    cursor: pointer;
}

.workspace li:hover {
    background-color: #e6e6e6;
}

.workspace li.active {
    /*
    font-weight: 600;
    background-color: #e6e6e6;
    */
    color: white;
    background-color: grey;
}

.workspace ul {
    list-style-type: none;
    padding: 0;
}

.sidebar {
    width: 90px;
    height: 100%;
    max-height: 569px;
    margin: 0px;
    padding: 10px;
    background-color: lightgray;
    min-width: 90px;
    box-sizing: border-box;
}

.operation-box {
    height: 100%;
    max-height: 569px;
    margin: 0;
    padding: 0;
    background-color: #e6e6e6;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.current-project {
    width: 100%;
    padding: 10px;
    border-bottom: 1px solid #bbb;
    font-family: Arial, Helvetica, sans-serif;
    font-style: normal;
    box-sizing: border-box;
}

.param-box {
    width: 100%;
    min-width: 215px;
    flex: 1;
    padding: 10px;
    box-sizing: border-box;
}

.parameter {
    margin: 0;
    padding: 0;
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.option-form {
    margin: 0;
    padding: 0;
    flex: 1;
    box-sizing: border-box;
}

.msg-window {
    width: 100%;
    height: 160px;
    background-color: white;
    padding: 10px;
    margin: 0px;
    font-family: "Consolas";
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    overflow-y: auto;
    box-sizing: border-box;
    border: 2px solid;
    border-color: #bbb #e6e6e6 #e6e6e6 #bbb;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.choices-box {
    margin: 0 0 15px 0;

}

#newProjectName,
#newProjectDescription {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ccc;
    border-radius: 0px;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}

.submit-btn {
    background-color: #d9271c;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
    width: 100%;
}

.submit-btn,
.confirm-btn {
    background-color: #d9271c;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    display: block;
    margin: 10px auto;
    border-radius: 2px;
}

.submit-btn:hover,
.confirm-btn:hover {
    background-color: #a50b0b;
}

.submit-btn:disabled,
.confirm-btn:disabled {
    background-color: lightgrey;
    cursor: not-allowed;
}

/* Message area */
.terminal-box {
    width: 39%;
    height: 100%;
    max-height: 569px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    box-sizing: border-box;
}

.terminal-window {
    width: 100%;
    padding: 10px 20px;
    margin: 0px;
    flex: 1;
    max-height: 529px;
    background: inherit;
    background-color: #1e1e1e;
    border: 2px solid;
    border-color: #bbb #e6e6e6 #e6e6e6 #bbb;
    filter: drop-shadow(none);
    transition: none;
    font-family: "Consolas";
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    color: #00B300;
    overflow-y: auto;
    box-sizing: border-box;
}

.task-window {
    height: 40px;
    width: 100%;
    padding: 0 20px;
    margin: 0px;
    display: flex;
    background: inherit;
    background-color: #1e1e1e;
    border: 2px solid;
    border-color: #bbb #e6e6e6 #e6e6e6 #bbb;
    filter: drop-shadow(none);
    transition: none;
    font-family: "Consolas";
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    color: #00B300;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#taskStatus {
    margin: 0;
    padding-right: 5px;
}

#progressBar {
    height: 10px;
    border-radius: 2px;
    color: #00B300;
    background-color: #004d00;
    flex: 1;
}

progress::-webkit-progress-bar {
    background-color: #004d00;
}

/* Image area */

.image-box {
    width: 23%;
    height: 100%;
    max-height: 569px;
    background-color: white;
    border: 2px solid;
    border-color: #bbb #e6e6e6 #e6e6e6 #bbb;
    margin: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    box-sizing: border-box;
}

.img-display {
    width: 100%;
}

/* Other detailed attributes */

.paramtext-display {
    font-size: 14px;
    display: inline-block;
    width: 150px;
    text-align: left;
    vertical-align: middle;
    margin-top: 5px;
    margin-bottom: 5px;
}

.paramnumber-input {
    display: inline-block;
    height: fit-content;
    width: 50px;
    text-align: left;
    vertical-align: middle;
}

.lowplace {
    margin-top: auto;
}

#itemList {
    margin: 0;
    padding: 10px 0;
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.project-item {
    font-family: monospace;
    font-size: 13px;
    font-weight: 500;
    vertical-align: middle;
    height: 1.5;
    line-height: 1.5;
    cursor: pointer;
    white-space: pre;
}

.project-item:hover {
    background-color: lightgrey;
    color: white;
}

.selected {
    background-color: lightgrey;
    color: white;
}

.button-box {
    margin: 5px 0;
    padding: 0;
    height: 60px;
    border-top: 1px solid #bbb;
    justify-content: center;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    flex-shrink: 0;
}

.note {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    margin-top: 10px;
}

.s-note {
    font-size: 12px;
    margin-bottom: 10px;
}

.tag {
    font-size: 14px;
    text-align: right;
    padding: 0 5px 0 0;
}

.fpga-filter,
.fpga-ld {
    width: 100%;
    height: 25px;
    margin-top: 5px;
    border-color: 1px solid lightgrey;
    box-sizing: border-box;
}

.grid-container {
    font-size: 14px;
    margin-top: 5px;
    grid-row-gap: 3px;
    display: grid;
    grid-template-columns: 24% 28% 20% 28%;
    align-items: center;
    vertical-align: middle;
}

.grid-ld-field {
    width: 92%;
    height: 25px;
    border-color: 1px solid lightgrey;
}

.grid-item1 {
    font-size: 13px;
    height: 25px;
    width: 80%;
    padding-left: 5px;
    border: 1px solid grey;
    display: flex;
    align-items: center;
}

.grid-item2 {
    grid-column: span 2;
    text-align: left;
}

.grid-item3 {
    grid-column: span 3;
    text-align: right;
}

.grid-item4 {
    grid-column: span 4;
    text-align: left;
}

.grid-tag {
    font-size: 15px;
    text-align: right;
    padding-right: 5px;
}

.grid-tag-s {
    font-size: 13px;
    text-align: right;
    align-items: center;
    padding-right: 5px;
}

.grid-keyin-field {
    height: 20px;
    font-size: 13px;
    width: 80%;
    padding-left: 5px;
    border-color: 1px solid lightgrey;
    align-items: center;
}

.keyin-field {
    width: 90px;
    height: 20px;
    font-size: 13px;
    border-color: 1px solid lightgrey;
}

.login-box {
    width: 350px;
    height: 320px;
    margin: 2rem auto;
    padding: 20px 30px;
    box-shadow: 0 0 10px grey;
}

.login-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-sizing: border-box;
}

#code {
    width: 50%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 2px;
    box-sizing: border-box;
}

#sendCodeBtn {
    width: 50%;
    border: none;
    background-color: white;
    color: black;
    cursor: pointer;
}

#sendCodeBtn:hover {
    background-color: white;
    font-weight: 600;
    text-decoration: underline;
}

#sendCodeBtn:disabled {
    color: grey;
    cursor: not-allowed;
}

.errmsg {
    height: 20px;
    color: black;
    font-size: 12px;
    margin: 5px;
    box-sizing: border-box;
}

.login-notice {
    height: 20px;
    color: black;
    font-size: 12px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

/* 模态背景 */
.back-cover {
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.white-board {
    background-color: #fefefe;
    margin: 10px;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    height: 240px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.board-content {
    width: 100%;
    background-color: white;
    padding: 10px;
    margin: 10px 0;
    font-family: "Consolas";
    font-weight: 400;
    font-style: normal;
    font-size: 12px;
    overflow-y: auto;
    flex: 1;
    box-sizing: border-box;
    border: 2px solid;
    border-color: #bbb #e6e6e6 #e6e6e6 #bbb;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-align: justify;
}

.board-btnbox {
    margin: 0;
    padding: 0;
    width: 250px;
    height: 60px;
    justify-content: center;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    flex-shrink: 0;
}

input[type="radio"],
input[type="checkbox"] {
    accent-color: #595959;
}

#patternFactors {
    width: 100%;
    background-color: white;
    padding: 5px;
    margin: 5px 0px;
    font-family: "Consolas";
    font-style: normal;
    font-size: 14px;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid;
    border-color: #bbb;
    white-space: pre-wrap;
    word-wrap: break-word;
    resize: none;
}

#patternFactors:disabled {
    background-color: #e6e6e6;
}