:root {
    --height: 200px;
    --dt_width: 255px;
    --dd_width: 100px;
    --d1col_width: 300px;
    --topnav_height: 50px;
}

/* Nav Bar */
/* Fixed sidenav, full height */
.sidenav {
    /* position: absolute; */
    /* width: var(--side); */
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #111;

    /* background: linear-gradient(175deg, #000000, #333232); */
    /* Light to dark gradient */

    overflow-x: hidden;
    /* Left border */
    /* Bottom border */
    /* Bezel effect */
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2),
        -1px -1px 0px rgba(170, 165, 165, 0.5) inset;

}

/* Style the sidenav links and the dropdown button */
.sidenav a {
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 15px;
    line-height: 150%;
    color: #818181;
    display: block;
    background: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    position: relative;
}

/* On mouse-over */
.sidenav a:hover {
    color: black;
}

/* .sidenav a::before,
.sidenav a::after {
    background-color: #818181;
} */

/* .sidenavlink::before,
.sidenavlink::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    left: 50%;
    transition: none;
    transform: translateX(-50%);
} */

.sidenavlink::before {
    top: 0;
}

.sidenavlink::after {
    bottom: 0;
}

.sidenavlink:hover::before,
.sidenavlink:hover::after {
    width: 100%;
    /* left: 0; */
    transition: width 0.5s ease;
    /* Apply transition only on hover */

}

.topnav #dark {
    cursor: pointer;
}


html {
    height: 100%;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    position: absolute;
    top: 0px;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dark {
    color: white;
    background-color: black;
}

.light {
    color: black;
    background-color: white;
}

header {
    margin: 0;
    padding: 5px;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    vertical-align: middle;
    margin-left: var(--side);
    color: white;
}

header h1 {
    margin: 0;
    padding: 5px;
    font-size: 20px;
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    vertical-align: left;
}

.navigation {
    margin: 5px;
    padding: 0;
    text-align: left;
}

.navigation ul {
    /* width: 100%; */
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation ul li {
    margin-right: 1em;
}

.navigation .rightsidebtn,
.navigation .navitem {
    display: inline-block;
    color: white;
    margin: 4px;
    border-radius: 10px;
    /* line-height: 200%; */
    padding: 15px 8px 15px 16px;
    text-decoration: none;
    font-size: 18px;
    transition: font-size 0.3s ease-in-out, opacity 0.3s ease-in-out;
    height: auto;
    min-width: 30px;
    opacity: 0.85;
}

.navigation .navitem {
    width: 100%;
    max-width: 300px;
}

.navigation .rightsidebtn {
    width: 50px;
    margin-left: 0px;
}

.navigation .navitem:hover,
.navigation .rightsidebtn:hover {
    font-weight: bold;
    /* background-color: red; */
    color: black;
    /* font-size: 20px; */
    opacity: 1;
}

/* .navigation a:hover {
    color: rgb(12, 135, 206);
} */

#content {
    /* min-height: var(--minheight); */
    max-width: 1200px;
    padding: 16px;
    margin-left: var(--side);
    font-size: 12px;
    flex: 1;
}

p {
    font-size: 14px;
    line-height: 1.5;
}

/* footer {
width: 100%;
height: 20px;
margin: 0 0 10px 0;
padding-top: 10px;
padding-bottom: 10px;
background: <?php echo $theme; ?>;
font-family: Arial, Helvetica, sans-serif;
color: white;
} */

footer {
    width: 100%;
    height: 20px;
    margin: 0 0 10px 0;
    padding-top: 10px;
    padding-bottom: 10px;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

/* Actions */

.actions {
    margin-bottom: 1em;
    color: rgb(34, 133, 232);
}

.action,
a {
    color: rgb(56, 147, 238);
}

.isDisabled {
    color: currentColor;
    text-decoration: none;
}

/* Lists */

table {
    border-collapse: collapse !important;
    vertical-align: middle;
    border-radius: 5px !important;
    overflow: hidden !important;
}

table.list {
    width: 100%;
}

table.list th a {
    color: blue;
}

table.list tr td {
    border: 1px solid #999999;
    height: 20px;
    margin-left: 10px;
}

/* Style the table headers and cells as needed */
.table.list th,
table.list td {
    padding: 8px;
    /* Adjust padding as needed */
    text-align: left;
    /* Adjust text alignment as needed */
    border: 1px solid #ccc;
    /* Add borders to table cells */
}

tr.highlight td {
    padding-top: 10px;
    padding-bottom: 10px
}

/* Forms */
dd {
    padding: 10px;
    float: left;
    margin: 0;
}

dtf {
    font-weight: bold;
    padding: 10px;
    float: left;
    margin: 0;
    line-height: 250%;
}

dd input[type=text],
dd select {
    line-height: 250%;
    width: 85%;
    max-width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    /* margin-bottom: 1em; */
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
}

dd select {
    height: 35px;
}

dd_1col input[type=text],
textarea,
input[type=password] {
    width: 92%;
    padding: 10px 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: vertical;
    margin-bottom: 1em;
    text-align: left;
    font-family: Arial, Helvetica, sans-serif;
}

span.textbox {
    width: var(--dd1col_width);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    float: left;
    resize: vertical;
}

/* select.category {
    width: 100%;
} */

span.fulltextbox {
    margin-left: 0.5rem;
    width: 200px;
    height: 28px;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #ccc;
    float: left;
    resize: vertical;
    margin-top: 10px;
    background-color: white;
    color: black;
}

span.textbox input[type=halftext] {
    border: 0px;
    width: 30%;
    padding: 10px;
    resize: vertical;
    font-family: Arial, Helvetica, sans-serif;
}

span.fulltextbox input[type=fulltext] {
    border: 0px;
    width: 100px;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

span.textbox select {
    border: 0px;
    width: 40%;
    padding: 5px;
}

textarea:disabled,
input[type=text]:disabled .light {
    color: black;
    background-color: white;
}

textarea:disabled,
input[type=text]:disabled .dark {
    color: white;
    background-color: black;
}

input[type=int],
textarea {
    width: 92%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

/* .courseselect {
    width: 150%;
    padding: 12px 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 1em;
} */

input[type=submit],
input[type=button],
button {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    float: right;
    margin-left: 1em;
    margin-bottom: 1em;
    font-family: Arial, Helvetica, sans-serif;
}

input[type=button]:disabled {
    background-color: rgb(189, 182, 182);
}

input[type=submit]:not(:disabled):hover,
input[type=button]:not(:disabled):hover {
    background-color: #45a049;
}

dl {
    clear: both;
    overflow: hidden;
    margin: 0.5em 0;
}

dt {
    padding: 10px;
    float: left;
    font-weight: bold;
    /* width: var(--dt_width); */
}

ddt {
    padding: 10px;
    float: left;
    /*margin-left: 1em;*/
    /* width: var(--dd_width); */
    /* margin-right: 5px; */
}

ddt_1col {
    padding: 20px;
    float: left;
    /*margin-left: 1em;*/
    width: var(--dd1col_width);
    margin-right: 5px;
}

dd_1col {
    padding: 10px;
    float: left;
    width: var(--dd1col_width);
}

dt_small {
    padding: 20px;
    float: left;
    font-weight: bold;
    width: auto;
}

dd_small {
    padding: 20px 20px 20px 20px;
    float: left;
    /*margin-left: 1em;*/
    width: auto;
    margin-right: 0px;
}

#operations {
    clear: both;
    margin: 1em 0 1em 75px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}


/* SESSION['message'] Style */
.info {
    /* display: inline-block; */
    /* display: absolute; */
    position: fixed;
    top: 0;
    left: 0;
    min-width: 400px;
    text-align: center;
    /* z-index: 9999; */
    /* border: 2px solid green; */
    background-color: rgba(11, 117, 179, 1);
    color: white;
    border-radius: 10px;
    /* box-shadow: 4px 4px #c4c2c2; */
    padding: 1em 6em 1em 4em;
    margin-top: -30px;
    /* margin-bottom: 1em; */
    margin-left: calc(var(--side) + 15px);
    /* Same as the width of the sidenav */
    transform: translateY(30px);
    /* Initially move it down */
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

/* Errors */
.errors {
    display: inline-block;
    background-color: rgb(185, 63, 63);
    color: white;
    border-radius: 20px;
    box-shadow: 4px 4px #c5c0c0;
    padding: 3em 6em 3em 4em;
    margin-top: 1em;
    margin-bottom: 1em;
    margin-left: calc(var(--side) + 15px);
    /* Same as the width of the sidenav */
    transform: translateY(-10px);
    /* Initially move it up */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.errors ul {
    margin-bottom: 0;
    padding-left: 1em;
}

.closebtn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    /* margin-left: 15px; */
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    /* line-height: 20px; */
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}

.info ul {
    margin-bottom: 0;
    padding-left: 2em;
}

span.psw {
    float: right;
    padding-top: 16px;
}

.container {
    padding: 16px;
}

.main {
    margin-left: var(--side);
    /* Same as the width of the sidenav */
    padding: 0px 10px;
}

#shift {
    margin-left: var(--side);
}

#shift_down {
    margin-top: 500px;
}

.shift {
    margin-left: var(--side);
}

/* Top Nav */
.topnav {
    overflow: hidden;
    background-color: #333;
    margin-left: var(--side);
    height: var(--topnav_height);
}

.topnav a {
    float: left;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
}

.topnav .envelop {
    color: white;
    margin-left: -3em;
    margin-top: -1em;
    text-align: left;
    font-size: 10px;
}

/*
.topnav a:hover {
background-color: #ddd;
color: black;
}
*/
.topnav a.split {
    float: right;
    color: white;
    height: var(--topnav_height);
}

/* Create a right-aligned (split) link inside the navigation bar */
/* .topnav a.split {
float: right;
background-color: <?php echo $theme; ?>;
color: white;
} */

.vl {
    border-left: 6px solid white;
    height: 100%;
}

.svg1 {
    padding-top: 0px;
}

.svg2 {
    margin: 0px 0px -4px 0px;
}

.dtp {
    width: 2%;
    margin: 0px;
}

.ddauto {
    padding: 10px;
    float: left;
    width: auto;
    margin-right: 5px;
}

.ddtauto {
    padding: 20px;
    float: left;
    width: auto;
    margin-right: 5px;
}

.searchfield {
    text-align: left;
    width: auto
}

.ddmarg {
    padding: 10px;
    float: left;
    margin-top: 1em;
    width: var(--dd_width);
    margin-right: 5px;
}

.ddpad0 {
    padding: 0px;
    float: left;
    width: var(--dd_width);
    margin-right: 5px;
}

.w400 {
    width: 400px !important;
}

.w200 {
    width: 200px !important;
}

.w100 {
    width: 100px !important;
}

.copyicon {
    width: 20px !important;
    margin-left: 0px;
    padding-left: 0px;

}

.copyicon:hover {
    color: rgb(0, 102, 255);
    cursor: pointer;

}


.h95 {
    height: 95% !important;
}

.mw100h100 {
    max-width: 100%;
    height: auto;
    max-height: 100%;
}

.w-auto-h100 {
    width: auto;
    max-height: 50%;
}

.sel1 {
    padding: 10px 4px;
}

.sel2 {
    text-align: left;
}

.overflowscroll {
    overflow: scroll;
}

.requirement-box {
    background-color: #f8f4f4;
    border: 2px solid rgba(12, 12, 12, 0.308);
    font-size: 12px;
    font-weight: bold;
    padding: 11px;
    margin-left: 40px;
    margin-right: 40px;
    border-radius: 5px;
    /* display: none; */
    opacity: 0;
    /* Initially set to transparent */
    transform: translateY(-10px);
    /* Initially move it up */
    transition: opacity 2s ease-in-out,
        transform 2s ease-in-out;
    /* transition: opacity 1s; */
}

.requirement-box.show {
    opacity: 1;
    /* Shown when the 'show' class is added */
}

.requirement {
    display: flex;
    align-items: center;
    color: red;
}

.requirement span {
    margin-right: 10px;
}

.requirement span::before {
    /* content: "❌ "; */
    color: red;
}

.requirement span.green::before {
    /* content: "✅ "; */
    /* content: "\2713"; */
    color: green;
}

.password-match-box {
    background-color: #f8f4f4;
    border: 2px solid rgba(12, 12, 12, 0.308);
    font-size: 12px;
    font-weight: bold;
    padding: 11px;
    border-radius: 5px;
    margin-top: 10px;
    color: red;
    margin-left: 40px;
    margin-right: 40px;
    opacity: 0;
    /* Initially set to transparent */
    transform: translateY(-10px);
    /* Initially move it up */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    display: flex;
}

.password-match.match::before {
    /* content: "✅ "; */
    color: green;
}

.password-match.mismatch::before {
    /* content: "❌ "; */
    color: red;
}

.password-match-box.show {
    opacity: 1;
    /* Shown when the 'show' class is added */
}

/*
#savebtn.btn-disabled {
    background: rgb(189, 182, 182);
    color: rgb(18, 16, 16);
} */

.invisible {
    opacity: 0;
}

.noshow {
    display: none;
}

.toprightnote {
    float: right;
    margin-top: 10px;
    font-size: 12px;
}

.icon-size {
    height: 15px !important;
    width: 15px !important;
}

.inline-icon-size {
    height: 20px !important;
    width: 20px !important;
}

.tooltip {
    position: relative;
    display: inline-block;
    /* padding: 10px; */
    vertical-align: middle;
}

.tooltip .tooltiptext {
    visibility: hidden;
    font-size: 10px;
    width: 100px;
    background-color: #f8f8f8;
    color: #106b1f;
    border-color: #106b1f;
    text-align: center;
    border-radius: 6px;
    /* padding: 4px; */
    position: absolute;
    z-index: 1;
    top: -10px;
    /* bottom: 150%; */
    /* left: 60px; */
    /* margin-left: -45px; */
    opacity: 0;
    transition: opacity 0.3s;
}

/* .tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
  } */

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.siteicon {
    width: 75px;
    margin-left: 20px;
}

.top-line {
    border-top: 2px solid #f1f1f1b1;
}

.buttom-line {
    border-bottom: 2px solid #f1f1f1b1;
}

.left-line {
    border-left: 2px solid #f1f1f1b1;
    border-right: 2px solid #f1f1f1b1;
}