/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ROOT */
:root {
    --primary: #ff8359;
    --primaryRGB: 255, 131, 89;
    --primaryDark: #E65A4E;
    --primaryLight: #FF8A75;
    --text: #333;
    --text-secondary: #666;
    --textOnPrimary: #fff;
    --background: #fff;
    --gray: gray;
    --lightGray: #ccc;
    --lighterGray: #f8f9fa;
    --darkGray: #3b3b3b;
    --dark: #212529;
    --medium: #dee2e6;
    --light: #f8f9fa;
    --verylight: #e8e8e8;
    --blue: #007AFF;
    --blueLight: #c3ecfe;
    --blueDark: #006cf0;
    --red: #FF3B30;
    --redLight: #ffe5d7;
    --redDark: #d33438;
    --green: #50ce4a;
    --greenLight: #b5f2bd;
    --greenDark: #008947;
    --yellow: #ffe866;
    --yellowLight: #FFF3BF;
    --yellowDark: #FFC107;
    
    --nav-height: 56px;
    --page-content-padding-y: 56px;
    --app-nav-height: 56px;
    --box-border-radius: 16px;
    
    --wh-100: calc(var(--vh, 1vh) * 100 - var(--app-nav-height));
    
    
    /* Bootstrap Edits */
    --bs-primary: var(--primary) !important;
    --bs-link-color-rgb: var(--primary) !important;
    --bs-dropdown-link-active-bg: var(--primary) !important;
}

/* Body */
html {
    -webkit-text-size-adjust: 100%;
    width: 100vw;
    background:var(--primary);
}
html, body {
    min-height: 100vh;
    height: auto !important;
    height: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    /*display: grid;*/
}
body {
    width: 100%;
    background: var(--background);
    color:var(--text);
    font-family: "Roboto", sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

label { display:block; margin:12px 0 6px; font-weight:600; }
input, select { 
    width:100%; 
    padding:8px; 
    font-size:14px; 
    border-radius: 4px;
    border: 1px solid var(--lightGray);
}
input[type="file"] { padding:6px 0; }
button { padding:10px 16px; font-size:15px; cursor:pointer; border:0; background:var(--primary); color:#fff; border-radius:6px; }
button[disabled] { opacity:.6; cursor:not-allowed; }
a {
    text-decoration: none;
    color: inherit;
}


#content {
    min-height: var(--wh-100);
}
.wrapper {
    padding: 40px 0;
}
.x-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Navbar container */
.navbar {
    background-color: var(--primary);
    color: #fff;
    font-family: Arial, sans-serif;
    padding: 0;
    margin: 0;
}

.navbar-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.navbar .brand img {
    height: 40px;
}

.navbar .nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary);
    list-style: none;
    min-width: 160px;
    z-index: 1001;
    padding: 0;
    margin: 0;
}

.dropdown-content li a {
    padding: 0.5rem 1rem;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Hover effect */
.navbar .nav-links a:hover, .dropdown-content li a:hover {
    background-color: var(--primaryDark);
}


/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 8px;
}
/* Hide the real checkbox */
.custom-checkbox input[type="checkbox"] {
    display: none;
}
/* Fake checkbox */
.checkbox-custom {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    position: relative;
    background: #fff;
}
/* Checkmark */
.custom-checkbox input:checked + .checkbox-custom::after {
    content: "✔";
    position: absolute;
    font-size: 22px;
    top: -2px;
    left: 5px;
    color: #000;
    font-weight: bold;
}
.checkbox-label.hidden {
    display: none;
}
.custom-checkbox:hover .checkbox-label.hidden {
    display: inline-block;
    color: #000;
}


/* Alerts */
.alerts-display {
    position: absolute;
    left: 50%;
    top: 64px;
    max-width: 90%;
    -o-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 2200;
}
.alert-banner {
    display: block;
    width: auto;
    border-radius: 4px;
    color: #d33438;
    background-color: #ffe5d7;
    padding: 4px 8px;
    margin-bottom: 4px;
    -o-transition: margin-top 200ms ease-out, opacity 150ms ease-out;
    -moz-transition: margin-top 200ms ease-out, opacity 150ms ease-out;
    -webkit-transition: margin-top 200ms ease-out, opacity 150ms ease-out;
    transition: margin-top 200ms ease-out, opacity 150ms ease-out;
}
.alert-banner.hide {
    margin-top: -37px;
    opacity: 0;
}
.alert-banner.hide-delay {
    -o-transition-delay: 2.2s;
    -moz-transition-delay: 2.2s;
    -webkit-transition-delay: 2.2s;
    transition-delay: 2.2s;
    margin-top: -37px;
    opacity: 0;
}
.alert-banner .icon:before {
    padding-right: 4px;
    font-family: 'fontAwesome';
}
.alert-banner.success {
    background-color: #b5eacc;
    color: #008947;
}
.alert-banner.success .icon:before {
    content: "\f058";
    font-weight: normal;
}
.alert-banner.warning {
    background-color: #ffe4c7;
    color: #e9981d;
}
.alert-banner.warning .icon:before {
    content: "\f071";
}
.alert-banner.info {
    background-color: #c3ecfe;
    background-color: var(--blueLight);
    color: #006cf0;
}
.alert-banner.info .icon:before {
    content: "\f05a";
}
.alert-banner.light {
    background-color: #f8f9fa;
    color: #212529;
}
.alert-banner.dark {
    background-color: #212529;
    color: #fff;
}
.alert-banner a {
    text-decoration: underline;
}
.alert-banner .close {
    position: relative;
    margin-left: 15px;
    width: 12px;
    color: #d33438;
    float: right;
    font-size: 16px;
    line-height: 24px;
    vertical-align: middle;
    cursor: pointer;
}
.alert-banner .close::after {
    position: relative;
    content: '\f00d';
    font-family: 'fontAwesome';
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
.alert-banner.success .close {
    color: #008947;
}
.alert-banner.warning .close {
    color: #e9981d;
}
.alert-banner.info .close {
    color: #006cf0;
}
.alert-banner.light .close {
    color: #212529;
}
.alert-banner.dark .close {
    color: #fff;
}
.alert-banner.active {
    animation: fadeOut 1s ease-out;
    animation-delay: 8s;
    animation-fill-mode: forwards;
}



/* Spinner */
.loader {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    background: #fff;
    background: rgba(255,255,255,0.8);
    background: rgba(var(--primaryRGB), 0.8);
    color: #fff;
    z-index: 9999;
}
.loader.active {
    display: block;
}
.loader.full-page {
    position: fixed;
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
}
.loader .brand {
    position: absolute;
    top: 8px;
    left: 12px;
    height: 40px;
    width: 48px;
    object-fit: contain;
}
.loader .brand img {
    height: 100%;
    width:100%;
}
.loader .loading {
    position: absolute;
    top: 50%;
    left: 50%;
    -o-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}
.loader .loading-wheel {
    border: 2px solid #ccc;
    border: 2px solid var(--primaryLight);
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    border-top-color: #fff;
    border-top-color: var(--primaryDark);
    border-left-color: #fff;
    border-left-color: var(--primaryDark);
    border-bottom-color: #fff;
    border-bottom-color: var(--primaryDark);
    animation: spin 1s infinite ease-in;
}

.info-button {
    color: var(--text-secondary);
    cursor: pointer;
}
.info-panel {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    z-index: 600;
}
.info-panel #info-panel-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    cursor: zoom-out;
    z-index: 0;
}
.info-panel .info-panel-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--background);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    border: 2px solid #ccc;
    z-index: 1;
}
.info-panel #info-panel-text {
    margin: 0;
}
.info-panel .info-panel-close {
    display: flex;
    justify-content: center;
    align-items: center;
    float: right;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--lighterGray);
    font-weight: bold;
    font-size: 20px;
}



/* Search container */
.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}
.search-button {
    all: unset;
    position: absolute;
    display: flex;
    align-items: center;
    padding: 0px 8px 0px 14px;
}
.search-button img {
    max-height: 20px;
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 5px 10px 5px 40px;
    border: 1px solid #ccc;
    border-radius: 25px;
    background: #fff;
    min-height: 40px;
    width: 100%;
}
.search-input-wrapper input {
    flex: 1;
    border: none;
    outline: none;
    padding: 5px 10px 5px 0;
    font-size: 14px;
    background: transparent;
    min-width: 100px;
}
.search-tags-container {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}
.search-tag {
    display: flex;
    align-items: center;
    background: grey;
    background: var(--bs-secondary);
    color: white;
    height: 26px;
    border-radius: 13px;
    font-size: 13px;
}
.search-tag .tag-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: white;
    color: grey;
    color: var(--bs-secondary);
    font-size: 16px;
    margin: 0 2px;
}
.search-tag .tag-text {
    vertical-align: middle
}
.search-tag .tag-remove {
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    color: white;
    font-weight: bold;
}
.search-tag .tag-remove:hover {
    background: lightgrey;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
}


/* Collapse */
.collapse-icon {
    position: relative;
    display: flex;
    width: 16px;
    height: auto;
    color: var(--text-secondary);
}
.collapse-icon:after {
    content: '\f106';
    font-family: "FontAwesome";
    font-weight: 900;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.collapsed .collapse-icon:after {
    content: '\f107';
}



/* Tags */
.tagly {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: .375rem .75rem;
    border: 1px solid var(--light);
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: 0.375rem;
    background: #fff;
    cursor: text;
}
.tagly input {
    border: none;
    outline: none;
    padding: 0;
    font-size: 16px;
    min-width: 100px;
    background: none;
    flex: 1;
}

.tagly .tag {
    background: #f0f0f0;
    border-radius: 4px;
    padding: 4px 6px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tagly .tag.highlight {
    outline: 2px solid #007bff;
    background: #dbe9ff;
}

.tagly .tag .remove {
    cursor: pointer;
    font-weight: bold;
    color: #333;
}

.tagly .tag .remove:hover {
    color: #d00;
}

/* Copied */
[data-clipboard] {
    position: relative;
}
.copied::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    content: "Copied";
    font-size: 12px;
    padding: 2px 6px;
    color: #fff;
    background-color: var(--primary);
    border-radius: 3px;
    opacity: 0;
    transform: translateY(-50%);
    will-change: opacity, transform;
    animation: appearFromLeftAndFade 1.5s ease-out;
}

/* Shimmer placeholder */
.shimmer {
    -webkit-animation-duration: 1s;
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-name: shimmer;
    -webkit-animation-timing-function: linear;
    background: #f6f7f8;
    background-image: -webkit-gradient(linear, left center, right center, from(#f6f7f8), color-stop(.2, #edeef1), color-stop(.6, #f6f7f8), to(#f6f7f8));
    background-image: -webkit-linear-gradient(left, #f6f7f8 0%, #edeef1 20%, #f6f7f8 60%, #f6f7f8 100%);
    background-repeat: no-repeat;
    border-radius: 10px;
}


/* Animations */
@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}
@keyframes appearFromLeftAndFade {
  0% {
    opacity: 0;
    transform: translateX(0%) translateY(-50%);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(-50%);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50%);
  }
}