@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg-color: #121212;
    --bg-color-dark: #0d0d0d;
    --bg-color-light: #181818;
    --fg-color: #000000;
    --border-color: #444444;
    --text-color: #E0E0E0;
    --text-color-label: #888;
    --text-color-disabled: #444;
    --primary-color: #1976d2;
    --primary-color-dark: #115293;
    --primary-color-light: #63a4ff;
    --secondary-color: #ffc107;
    --accent-color: #42a5f5;
    --success-color: #4caf50;
    --error-color: #f44336;
    --success-color-10: rgba(76, 175, 80, 0.2);
    --error-color-10: rgba(244, 67, 54, 0.2);
    --primary-color-10: rgba(25,118, 210, 0.2);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.test {
    border: 1px solid red;
}

header {
    height: 55px;
    background-color: var(--bg-color-dark);
    width: 100%;
    box-shadow: 0 -2px 10px #121212;
    position: sticky;
    top: 0;
    z-index: 99;
}

header > * {
    position: absolute;
    height: 100%;
}

header a {
    text-decoration: none;
    color: var(--text-color);
}

header .left {
    left: 0;
}

header .center {
    left: 50%;
    display: flex;
    align-items: center;
}

header .right {
    right: 0;
    display: flex;
    align-items: center;
}

header .right > * {
    height: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 75px;
}

header .right > *:hover {
    background-color: var(--bg-color-light);
    cursor: pointer;
}

header .logo {
    display: inline-flex;
    align-items: center;
}

.logo svg, .logo img {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    width: 20px;
    margin-left: 10px;
    margin-right: 5px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
    position: absolute;
    top: 105%;
    right: 5px;
    background-color: var(--bg-color-light);
    min-width: 160px;
    border-radius: 5px;
    z-index: 1;
    box-shadow: 0 -2px 10px #0a0a0a;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-bottom: 1px solid #222;
}

.dropdown-content a:hover {
    background-color: var(--primary-color);
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: flex-start;
    padding-top: 15vh;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: var(--bg-color-light);
    border-radius: 8px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 -2px 10px #000;
    opacity: 0;
    transform: translateY(-100px);
    animation: slideDown 0.4s forwards ease-out;
    padding: 20px 20px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.model-header {
    width: 100%;
    top: 0;
    left: 0;
    font-size: 15px;
    box-sizing: border-box;
}

.model-header .close {
    text-align: center;
    width: 48px;
    float: right;
    cursor: pointer;
    margin-right: -10px;
}

.model-body {
    margin-top: 5px;
    margin-bottom: 5px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 60vh;
    width: 100%;
    padding: 10px 5%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.model-body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.model-footer {
    width: 100%;
}

.close:hover {
    color: red;
    fill: red;
}

.font-size-small {
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-floating {
    position: relative;
    height: 55px;
    margin: 0 auto;
}

.form-floating input, .form-floating select, .form-floating textarea {
    width: 100%;
    height: 100%;
    color: var(--text-color);
    padding: 1.2rem 2rem 0.4rem 2.5rem;
    font-size: 1rem;
    border: 0.1rem solid var(--border-color);
    border-radius: 0.5rem;
    background: none;
    outline: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: border 0.1s ease-in, box-shadow 0.1s ease-in;
}

.form-floating option {
    color: var(--text-color);
    background-color: var(--bg-color-light);
}

.form-floating input:focus, .form-floating textarea:focus {
    border: 0.125rem solid var(--primary-color);
    outline: none;
    box-shadow: 0 0 2px var(--primary-color);
}

.form-floating input:disabled {
    background-color: var(--text-color-disabled);
}

.form-floating label {
    position: absolute;
    top: 1rem;
    left: 2.5rem;
    color: var(--text-color-label);
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.1s ease-out;
}

.form-floating input:focus + label,
.form-floating input:not(:placeholder-shown) + label,
.form-floating select:focus + label,
.form-floating select:not([value=""]) + label,
 .form-floating textarea:focus + label,
 .form-floating textarea:not(:placeholder-shown) + label{
    top: 0.2rem;
    left: 2.4rem;
    font-size: 0.75rem;
    color: var(--text-color-label);
}

/* Left icon */
.form-floating .icon-left {
    position: absolute;
    pointer-events: none;
    height: 100%;
    width: 2.5rem;
    padding: 10px;
}

.form-floating .icon-right {
    position: absolute;
    height: 100%;
    top: 0;
    width: 2rem;
    right: 1rem;
    pointer-events: all;
}

.form-floating .icon-right > * {
    height: 100% !important;
    padding: 0.35rem !important;
    pointer-events: all;
}


.form-floating .icon-right-2 {
    width: 4rem !important;
    right: 0.5rem;
}

.form-floating .icon-right-3 {
    width: 6rem !important;
}

.form-floating .r-pad-2 {
    padding-right: 4.75rem;
}

.form-floating .r-pad-3 {
    padding-right: 6.75rem;
}

.slider-container {
    width: 300px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 5px;
    background: var(--primary-color);
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: background 0.3s;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.custom-checkbox {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    user-select: none;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary-color);;
    border-radius: 5px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    background-color: white;
}

.custom-checkbox:hover .checkmark {
    box-shadow: 0 0 5px var(--primary-color);;
}

.custom-checkbox input:checked + .checkmark {
    background-color: var(--primary-color);;
    border-color: var(--primary-color);;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-checkbox input:checked + .checkmark::after {
    display: block;
    opacity: 1;
    transform: translate(-50%, -60%) rotate(45deg) scale(1);
}


.title {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.bg-color-red {
    background: #b03a2e !important;
}

.bg-color-red:hover {
    background: #bd5734 !important;
}

.bg-color-white {
    background: #444444 !important;
}

.bg-color-white:hover {
    background: #666666 !important;
}

.fill-color-dark:hover {
    fill: #222222;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-row-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-wrap-even {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 2rem;
}

.align-items-center {
    align-items: center;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-space-evenly {
    justify-content: space-evenly;
}

.flex-full {
    display: flex;
    width: 100%;
}

.flex-full > * {
    flex: 1;
}

.width-1-1 {
    width: 100%;
}

.height-1-1 {
    height: 100%;
}

.height-100vh {
    height: 100vh;
}

.height-90vh {
    height: 90vh;
}


.margin-side-x-small {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.margin-topdown-x-small {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.margin-x-small {
    margin: 0.5rem;
}

.margin-small {
    margin: 0.75rem;
}

.margin-medium {
    margin: 1rem;
}

.margin-side-medium {
    margin-left: 1rem;
    margin-right: 1rem;
}

.margin-side-large {
    margin-left: 2rem;
    margin-right: 2rem;
}

.margin-topdown-large {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.margin-top-x-small {
    margin-top: 0.5rem;
}

.margin-top-medium {
    margin-top: 1rem;
}

.margin-top-large {
    margin-top: 2rem;
}

.margin-bottom-small {
    margin-bottom: 1rem;
}

.margin-bottom-medium {
    margin-bottom: 2rem;
}

.margin-bottom-large {
    margin-bottom: 3rem;
}

.margin-bottom-remove {
    margin-bottom: 0 !important;
}

.padding-small {
    padding: 1rem;
}

.text-size-large {
    font-size: 2rem;
}

.text-align-center {
    text-align: center;
}

.clickable {
    cursor: pointer;
}

.font-bold {
    font-weight: bold;
}

.font-color-green {
    color: green !important;
}

.border-color-green {
    border-color: green !important;
}

.hover-rotate {
    transition: transform .2s ease-in-out;
}

.hover-rotate:hover {
    transform: rotate(90deg)
}

.hover-scale {
    transition: transform .1s ease-in-out;
}

.hover-scale:hover {
    transform: scale(1.1);
}

.horizontal-line {
    height: 1px;
    width: 100%; /* or any specific width like 300px */
    background-color: #aaa;
    margin: 20px 0;
}

.spin {
    animation: spin 0.4s linear infinite;
}

.scale-down {
    animation: scaleDown 0.3s ease-out forwards;
}

.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scaleDown {
    0% {
        transform: scale(1.5);
    }
    100% {
        transform: scale(1);
    }
}


.max-width-320 {
    max-width: 320px !important;
}

.position-sticky {
    position: sticky;
}

.letter-spacing-large {
    letter-spacing: 2px;
}

.timer {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, #ddd 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .1s linear;
    -webkit-transition: background-color 100ms linear;
    -ms-transition: background-color 100ms linear;
}

.timer .seconds {
    width: 18px;
    height: 18px;
    background: var(--text-color-disabled);
    border-radius: 50%;
    padding-top: 0.15rem;
    padding-left: 1px;
    text-align: center;
    font-size: 10px;
    font-weight: normal;
    color: var(--text-color);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.button {
    align-items: center;
    background-color: var(--primary-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: .5rem;
    color: var(--text-color);
    cursor: pointer;
    display: inline-block;
    font-size: 16px;
    font-weight: 600;
    padding: calc(.875rem - 1px) calc(1.5rem - 1px);
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    text-align: center;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--primary-color-dark);

}

.button:active {
    transform: translateY(0);
}

.button:disabled {
    cursor: not-allowed;
    color: var(--text-color);
    filter: brightness(0.5);
}

.button:disabled:hover,
.button:disabled:focus {
    transform: translateY(0);
    filter: brightness(0.5);
}

.button:disabled:active {
    transform: translateY(0);
}

.button-green {
    background-color: green !important;
    color: white !important;
}

.button-red {
    background-color: red !important;
    color: white !important;
}

.spinner {
    width: 1rem;
    height: 1rem;
    border: 0.2rem solid;
    margin-right: .5rem;
    border-bottom-color: transparent;
    border-radius: 50%;
    box-sizing: border-box;
    animation: btn-rotation 0.75s linear infinite;
    vertical-align: -0.125em;
    display: inline-block;
}

.spinner.green {
    border: 0.2rem solid green;
    border-bottom-color: transparent;
}

@keyframes btn-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.notification {
    position: relative;
    padding: 15px 15px 15px 15px;
    border-radius: 0.25rem 0.25rem 0.25rem 0.25rem;
    background-color: #f0f4f8;
    color: #333;
    font-size: 14px;
}

.notification.success {
    background-color: var(--success-color-10);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.notification.error {
    background-color: var(--error-color-10);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.notification.warning {
    background-color: var(--primary-color-10);
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.notification .close-btn {
    position: absolute;
    right: 10px;
    margin: auto;
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    cursor: pointer;
    font-weight: bold;
}

.notification .close-btn:hover {
    color: #000;
}

.d-none {
    display: none;
}

.z-index-99 {
    z-index: 99;
}

.z-index-999 {
    z-index: 999;
}

.position-relative {
    position: relative;
}

.footer {
    position: fixed;
    z-index: 9999;
    font-size: 12px;
    left: 0;
    bottom: 0;
    height: 55px;
    width: 100%;
    background: var(--bg-color-light);
    box-shadow: 0 -2px 10px #0e0e0e;
    padding-top: 10px;
}

textarea {
  white-space: pre-wrap !important;
  word-wrap: break-word  !important;
  overflow-wrap: break-word;
}