@font-face {
    font-family: 'Inter';
    src: url('Inter-Regular.eot');
    src: url('Inter-Regular.eot?#iefix') format('embedded-opentype'),
        url('Inter-Regular.woff2') format('woff2'),
        url('Inter-Regular.woff') format('woff'),
        url('Inter-Regular.ttf') format('truetype'),
        url('Inter-Regular.svg#Inter-Regular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-family: Inter, sans-serif;
    display: flex;
    flex-direction: column;
}

a {
    color: #0077d4;
}

code {
    background-color: #555555;
    color: #fff;
    display: inline-block;
    padding: 10px;
}

img {
    max-width: 100%;
}

th, td {
    border:#555555 1px solid;
    padding: 4px;
}

th {
    background-color: #555555;
    color: #fff;
}

.response {
    border: 1px solid #e7eb70;
    border-radius: 3px;
    display: inline-block;
    padding: 2px;
    margin-bottom: 20px;
}

.response textarea,
.response input {
    box-sizing: border-box;
}

/* Navigation Bar */

.navbar {
    background-color: #0077d4;
    position: fixed;
    top: 0;
    width: 100%;
    height: 62px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo img {
    height: 40px;
    padding: 5px 0 5px;
}

.navbar a {
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.language-dropdown {
    position: relative;
}

.language-icon {
    height: 30px;
    padding: 13px 16px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #0077d4;
    min-width: 180px;
    z-index: 1002;
    right: 0;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: right;
}

.dropdown-content a:hover {
    background-color: #005ea2;
}

.language-dropdown:hover .dropdown-content {
    display: block;
}

.theme-icon {
    height: 30px;
    cursor: pointer;
}

.menu-dropdown {
    display: none;
    position: absolute;
    right: 10px;
    top: 12px;
}

.menu-button {
    background-color: #0077d4;
    color: #fff;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.menu-content {
    display: none;
    position: fixed;
    background-color: #0077d4;
    z-index: 1001;
    right: 0;
    flex-direction: column;
    padding-top: 12px;
}

.menu-content a {
    display: block;
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    white-space: nowrap;
    text-align: right;
}

.menu-content a:hover {
    background-color: #005ea2;
}

.menu-dropdown.active .menu-content {
    display: flex;
    flex-direction: column;
}

.menu-dropdown .language-dropdown,
.menu-dropdown .theme-switcher {
    text-align: right;
}

.menu-dropdown .language-dropdown .dropdown-content {
    right: 100%;
    top:0;
}

/* Page Content */

.content {
    margin-top: 70px;
    padding: 20px;
}

.content img {
    padding: 3px;
}

/* Home */

.home {
    text-align: center;
    width: 100%;
}

.home-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 40px;
}

.text-blocks {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.text-block {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    border: 1px solid;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.slideshow-container {
    max-width: 1124px;
    position: relative;
    margin: auto;
    margin-top: 20px;
    padding-right: 4px;
}

.mySlides {
    display: none;
}

.mySlides img {
    width: 1124px;
    height: 300px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #717171;
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Catalog Tiles */

.container-catalog {
    display: flex;
    flex-wrap: wrap;
}

.tile {
    position: relative;
    width: 320px;
    border: 1px solid;
    border-radius: 5px;
    padding: 20px;
    margin: 0 0 20px 10px;
}

.tile-header {
    display: flex;
    align-items: center;
}

.tile-header .icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 5px;
}

.tile .content {
    flex: 1;
    display: flex;
    align-items: center;
}

.tile h2 {
    margin-top: 0;
    margin-bottom: 0;
}

.tile h2 a {
    color: #0077d4;
    text-decoration: none;
}

.tile-body p {
    margin-top: 10px;
}

.tile .meta {
    position: absolute;
    bottom: 10px;
    right: 20px;
    left: 20px;
    display: flex;
    justify-content: space-between;
}

.tile .duration {
    font-size: 14px;
}

.tile .actions a {
    text-decoration: none;
    margin-left: 10px;
}

.tile .actions a:hover {
    text-decoration: underline;
}

/* Catalog Details */

.main-section {
    display: flex;
}

.left-section {
    flex: 1;
    padding-right: 20px;
}

.vendor-logo img {
    max-width: 800px;
    max-height: 100px;
}

.catalog-filter {
    display: inline-block;
}

.catalog-filter img {
    max-width: 200px;
    max-height: 40px;
    margin: 0px 10px 10px 10px;
    vertical-align: middle;
}

.right-section {
    padding-left: 20px;
}

.right-section .tile {
    padding: 20px;
    margin-bottom: 20px;
}

.right-section .tile .title-content {
    flex: 1;
}

.right-section .tile h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.right-section .tile .meta {
    padding-right: 10px;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
}

.right-section .tile .actions {
    text-align: center;
}

.right-section .tile .actions .button {
    padding: 10px 20px;
    background-color: #0077d4;
    color: #fff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
}

.right-section .tile .actions .button:hover {
    background-color: #005ea2;
}

/* Form */

.form-group {
    position: relative;
    margin-bottom: 20px;
    min-width: 200px;
    max-width: 420px;
}

.form-group-wide {
    position: relative;
    margin-bottom: 20px;
    min-width: 200px;
    max-width: 1200px;
}

.field-description {
    margin-top: 5px;
    font-size: 14px;
}

.char_count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
input[type="datetime-local"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid;
    border-radius: 5px;
    font-size: 16px;
}

select {
    border: 1px solid;
    border-radius: 5px;
    font-size: 16px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="datetime-local"]:focus,
textarea:focus {
    outline: none;
    border-color: #0077d4;
}

textarea {
    height: 100px;
    max-width: inherit;
}

.lab_description_long {
    height: 800px;
}

button[type="submit"] {
    padding: 10px 20px;
    background-color: #0077d4;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

button[type="submit"]:hover {
    background-color: #005ea2;
}

/* Lab Item */
.lab-item {
    width: 100%;
    border: 1px solid;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
}

.lab-summary {
    display: flex;
    cursor: pointer;
}

.expand-toggle {
    margin-right: 10px;
    font-size: 20px;
}

.lab-details {
    display: flex;
    flex: 1;
}

.lab-name {
    font-weight: bold;
    width: 20%;
}

.lab-description {
    width: 35%;
}

.lab-full-description {
    width: 35%;
}

.lab-username {
    width: 30%;
}

.lab-expiry {
    width: 20%;
}

.lab-lease {
    width: 20%;
}

.lab-type {
    width: 15%;
}

.lab-status {
    width: 15%;
}

.lab-actions {
    width: 10%;
}

.lab-name,
.lab-username,
.lab-description,
.lab-full-description,
.lab-expiry,
.lab-status,
.lab-actions {
    margin-bottom: 5px;
    padding-left: 5px;
}

.lab-full-description {
    display: none;
}

.lab-item.expanded .lab-full-description {
    display: block;
}

.lab-item.expanded .lab-description {
    display: none;
}

.lab-item.collapsed .lab-description {
    display: block;
}

.lab-item.collapsed .lab-full-description {
    display: none;
}

/* Console */
#guac-container {
    width: 800px;
    height: 600px;
    cursor: none;
}

.expand-side {
    font-size: 20px;
    cursor: pointer;
}

.right-section.collapsed .tile {
    display: none;
}

.tile.collapsed {
    display: none;
}

#clipboard {
    max-width: 300px;
    min-width: 300px;
}

#poweroptions img {
    width: 30px;
}

.consoleoptions img {
    width: 30px;
    cursor: pointer;
    vertical-align: middle;
}

/* Request */
.reservation-picker-shell {
    position: relative;
    width: 100%;
    display: block;
}

.reservation-picker-shell label,
.reservation-picker-shell input,
.reservation-picker-shell .field-description,
.reservation-picker-shell #reservation_picker_message {
    width: 100%;
    box-sizing: border-box;
}

.reservation-picker-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(1px);
    border-radius: 8px;
}

.reservation-picker-spinner {
    width: 34px;
    height: 34px;
    border: 4px solid #ff0000;
    border-top-color: rgba(0, 0, 0, 0.75);
    border-radius: 50%;
    animation: reservation-spin 0.8s linear infinite;
}

.reservation-picker-overlay-text {
    color: #ff0000;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

@keyframes reservation-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Settings */

.settings-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.settings-item {
    display: inherit;
    align-items: baseline;
}

/* Editor */

.md-toolbar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 8px 0 8px;
    align-items: center;
    position:relative;
    color: #000;
}

.md-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    user-select: none;
}

.md-tool:hover {
    background: #0077d4;
    color: #fff;
}

.md-tool:active {
    transform: translateY(1px);
}

.md-popover {
    position: absolute;
    z-index: 50;
    min-width: 240px;
    padding: 10px;
    border: 1px solid #cfcfcf;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.md-popover-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.md-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.md-label {
    font-size: 12px;
    opacity: .85;
}

.md-toolbar .md-popover input.md-input[type="text"],
.md-toolbar .md-popover input.md-input[type="url"],
.md-toolbar .md-popover input.md-input[type="number"],
.md-toolbar .md-popover textarea {
    padding: 7px 9px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    color: #000;
    outline: none;
    width: auto;
    font-size: 12px;
}

.md-input:focus {
    border-color: #9a9a9a;
}

.md-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.md-pop-btn {
    padding: 6px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.md-pop-btn:hover {
    background: #f6f6f6;
}

.md-table-setup{
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.md-table-grid{
    max-height: 260px;
    max-width: 80vw;
    overflow: auto;
}

.md-table-preview{
    border-collapse:collapse;
}

.md-table-preview input.md-table-cell{
    width: 140px;
    min-width: 100px;
}

.md-table-align {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.md-table-align-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.md-toolbar .md-popover select.md-input {
    padding: 7px 9px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    color: #000;
    outline: none;
    width: auto;
    font-size: 12px;
}

.md-table-align-select {
    min-width: 140px;
}

/* Footer */

footer {
    background-color: #0077d4;
    color: #fff;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.footer-section {
    width: calc(33.33% - 1px);
    text-align: center;
}

.footer-section:not(:last-child) {
    border-right: 1px solid #fff;
}

.pagination,
.footer-links {
    list-style-type: square;
    display: inline-block;
    text-align: left;
    padding-left: 20px;
}

.legal-notices {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination li,
.footer-links li {
    margin-bottom: 5px;
}

.legal-notices li {
    display: inline;
    margin-right: 10px;
}

.pagination li:last-child,
.footer-links li:last-child,
.legal-notices li:last-child {
    margin-right: 0;
}

.pagination a,
.footer-links a,
.legal-notices a {
    color: #fff;
    text-decoration: none;
}

.pagination a:hover,
.footer-links a:hover,
.legal-notices a:hover {
    text-decoration: underline;
}
