@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins&display=swap");
@import url("element.css");

:root {
    --label: "Montserrat";
    --input: "Poppins";
}
body {
    background: #F5F5F5;
    padding: 0;
    margin: 0;
}
textarea,
input {
    outline: none;
    font-family: var(--input);
}
ul, li,
p, label,
span, button,
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-family: var(--label);
}
a {
    margin: 0;
    padding: 0;
    text-decoration: none;
    font-family: var(--label);
    color: inherit;
}
img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
}

/* Full Screen in center */
.x-full {
    display: grid;
    place-items: center;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
}

/* Flex */
.x-flex {
    display: -webkit-flex;
    width: 100%;
    box-sizing: border-box;
}
.x-flex.center {
    align-items: center;
    justify-content: center;
}
.x-flex.nowrap {
    flex-wrap: nowrap;
}

/* Box Template */
.b-box {
    background: white;
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
}
.b-box.small {
    max-width: 340px;
}
.b-box.medium {
    max-width: 450px;
}
.b-box-large {
    max-width: 640px;
}

/* Button */
button.x-btn {
    width: 100%;
    box-sizing: border-box;
    max-width: 150px;
    text-align: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    background: #2196F3;
    color: white;
    border: 0;
    outline: none;
}

/* Modal Template */
.x-modal {
    width: 100%;
    height: 100vh;
    position: fixed;
    display: none;
    place-items: center;
    background: rgba(0,0,0,.1);
    z-index: 9999;
    top: 0;
    left: 0;
}
.x-modal.active {
    display: grid;
}
/* Progress Element */
.x-modal.progress .x-box {
    width: 100%;
    box-sizing: border-box;
    max-width: 300px;
    padding: 20px;
    background: white;
    box-shadow: rgba(0, 0, 0, 0.3);
}
.x-modal.progress .x-box .pop {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: scale(0);
    margin: 15px auto;
}
.x-modal.progress .x-box .ripple {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    opacity: 0;
}
.x-modal.progress .x-box .pop.success  {
    background: #4CAF50;
}
.x-modal.progress .x-box .pop.success .ripple {
    background: rgba(76, 175, 80, 0.5);
}
.x-modal.progress .x-box .pop.error {
    background: #E53935;
}
.x-modal.progress .x-box .pop.error .ripple {
    background: rgba(229, 57, 53, 0.5);
}
.x-modal.progress .x-box .pop.loading  {
    background: transparent;
}
.x-modal.progress .x-box .pop.loading .ripple {
    background: transparent;
}
.x-modal.progress .x-box .pop.success .icon,
.x-modal.progress .x-box .pop.error .icon {
    font-size: 32px;
    color: white;
    opacity: 0;
}
.x-modal.progress .x-box .pop.loading .icon {
    font-size: 64px;
    color: #007BFF;
    opacity: 0;
}
.x-modal.progress .x-box p {
    font-size: 15px;
    padding: 6px 11px;
    text-align: center;
    width: 90%;
    box-sizing: border-box;
    margin: 0 auto;
    color: black;
}

/* Form */
form {
    width: 100%;
    box-sizing: border-box;
}
form.input > .x-input {
    width: 100%;
    box-sizing: border-box;
    margin: 15px 0;
}
form.input > .x-input:last-child {
    margin: 0;
}
form.input > .x-input label {
    display: block;
    width: 100%;
    box-sizing: border-box;
    font-size: 11px;
    margin-left: 4px;
    margin-bottom: 5px;
}
form.input > .x-input.flex {
    display: -webkit-flex;
    margin: 0;
}
form.input > .x-input textarea,
form.input > .x-input input {
    width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    padding: 8px 12px;
    border: 1px solid rgba(33, 150, 243, .7);
    border-radius: 6px;
    box-shadow: 0 0 3px rgba(33, 150, 243, .5);
}
form.input > .x-input .error input {
    border-color: #A00000;
    box-shadow: 0 0 3px rgba(160, 0, 0, .5);
}
form.input > .x-input .error span {
    width: 100%;
    box-sizing: border-box;
    font-size: 11px;
    color: #A00000;
    margin-top: 3px;
    margin-left: 4px;
}
form.input > button.x-submit {
    display: -webkit-flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    width: 100%;
    box-sizing: border-box;
    max-width: 150px;
    text-align: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    background: #2196F3;
    color: white;
    border: 0;
    outline: none;
    margin: 20px auto 0;
}
form.input > button.x-submit.process {
    pointer-events: none;
}
form.input > button.x-submit > i {
    font-size: 15px;
}
/* Number */
form.input > .x-input input[type="number"]::-webkit-outer-spin-button,
form.input > .x-input input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Password */
form.input > .x-input.password div {
    position: relative;
}
form.input > .x-input.password i {
    cursor: pointer;
    transition: .3s;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, .5);
}
/* Select & Option */
form.input > .x-input select {
    cursor: pointer;
}
/* Files Upload */
form.input > .x-input .x-file {
    width: 100%;
    box-sizing: border-box;
    max-width: 150px;
    height: 160px;
    position: relative;
}
form.input > .x-input .x-file > .block {
    width: 100%;
    height: 150px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(188,188,188,.3);
}
form.input > .x-input .x-file > i {
    font-size: 11px;
    background: rgba(240, 240, 240);
    padding: 8px;
    position: absolute;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(199, 199, 199);
    border-radius: 50%;
    cursor: pointer;
}
/* JPG, JPEG, PNG */
form.input > .x-input .x-file .block > img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* PDF */
form.input > .x-input .x-file .block.pdf {
    display: grid;
    place-items: center;
}
form.input > .x-input .x-file .block.pdf div {
    width: 90%;
    box-sizing: border-box;
}
form.input > .x-input .x-file .block.pdf div i {
    font-size: 15px;
    text-align: center;
    color: #ed1c24;
    margin-bottom: 4px;
}
form.input > .x-input .x-file .block.pdf div span {
    text-align: center;
    font-size: 12px;
}

/* Menu List */
.x-menu {
    width: 100%;
    box-sizing: border-box;
    display: -webkit-flex;
    flex-direction: column;
}
.x-menu .x-list {
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-family: "Montserrat";
    color: white;
}
.x-menu .x-sub .x-list.x-label > div,
.x-menu .x-list a {
    display: -webkit-flex;
    align-items: center;
    column-gap: 10px;
    padding: 10px 20px;
    transition: .5s;
    background: transparent;
    color: white;
    text-decoration: none;
    cursor: pointer;
}
.x-menu .x-sub .x-list {
    position: relative;
    cursor: pointer;
}
.x-menu .x-sub .x-list.x-label > div:after {
    content: "\f107";
    position: absolute;
    right: 20px;
    font-family: "Font Awesome 6 Pro";
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 14px;
}
.x-menu .x-sub .x-list.x-label > div:hover,
.x-menu .x-list a:hover {
    background: rgba(255, 255, 255, .2);
    transition: .5s;
}
.x-menu .x-sub .x-list.x-label > div i,
.x-menu .x-list a i {
    width: 30px;
    flex-shrink: 0;
    font-size: 18px;
}
.x-menu .x-sub .x-sub-list {
    width: 100%;
    box-sizing: border-box;
    display: -webkit-flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    overflow: hidden;
    max-height: 0px;
    transition: .5s;
}
.x-menu .x-sub .x-sub-list a {
    padding-left: 50px;
    font-size: 13px;
    cursor: pointer;
}
.x-menu .x-sub .x-sub-list a i {
    font-size: 15px;
}
.x-menu .x-sub .x-sub-list.active {
    max-height: 200px;
    transition: .5s;
}

/* Table */
table.x-table {
    width: 100%;
    box-sizing: border-box;
    margin: 25px 0;
    border: 1px solid rgba(0, 0, 0, .2);
    border-collapse: collapse;
    border-spacing: 0px;
}
table.x-table th {
    font-size: 12px;
    font-family: "Poppins";
    padding: 9px 0;
    background: #294a98;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, .5);
}
table.x-table th:last-child,
table.x-table tbody tr:last-child {
    border: 0px;
}
table.x-table tbody tr {
    border-bottom: 1px solid rgba(0, 0, 0, .2);
}
table.x-table tbody td {
    font-size: 12px;
    font-family: "Poppins";
    padding: 9px 12px;
}
table.x-table tbody td .img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    box-sizing: border-box;
}
table.x-table tbody td .title {
    margin: 8px 0;
    font-size: 15px;
    font-family: "Poppins";
    font-weight: bold;
    color: rgba(0, 0, 0, .7);
    letter-spacing: 1px;
}
/* Slide Button */
table.x-table tbody .x-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 26px;
    margin: 0 auto;
}
table.x-table tbody .x-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
table.x-table tbody .x-switch .x-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}
table.x-table tbody .x-switch .x-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
table.x-table tbody .x-switch input:checked + .x-slider {
  background-color: #4CAF50;
}
table.x-table tbody .x-switch input:focus + .x-slider {
  box-shadow: 0 0 1px #4CAF50;
}
table.x-table tbody .x-switch input:checked + .x-slider:before {
  transform: translateX(26px);
}
table.x-table tbody .x-switch .x-slider.round {
  border-radius: 34px;
}
table.x-table tbody .x-switch .x-slider.round:before {
  border-radius: 50%;
}