::-webkit-scrollbar {
    width: 0.4em;
}
  
::-webkit-scrollbar-track {
    background-color: #34363d;
}

::-webkit-scrollbar-thumb {
    background-color: #dfdfdf;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a1a1a1;
}

html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: #000;
    color: white;
    --background: #0c0c0c;
    --background-hover: #222222;
    --green: #28f30e;
    --hover: #2571ff;
    --border: #222222;
    --text: #535353;

    font-family: "Karla", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0;
}

nav {
    display: flex;
    padding: 1em 2em;
    border-bottom: 1px solid var(--border);
}

.paths {
    margin: 0 auto;
    display: flex;
    gap: 2em;
}

nav a {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    color: white;
}

nav a:hover {
    color: var(--hover);
}

main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
    margin: 0 auto;
    padding: 1em;
    max-width: 1200px;
}

.card {
    border-radius: .5em;
    padding: 1em;
    background: var(--background);
    border: 1px solid var(--border);
}

.flex-1 {
    display: flex;
    gap: 1em;
}

.red {
    color: #df2121;
    font-weight: 600;
}

.green {
    color: #2cd147;
    font-weight: 600;
}

.options-h {
    display: flex;
    justify-content: end;
}

/*---------------------- Not Found Page ----------------------*/

.not-found {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.not-found h2 {
    font-family: "Rajdhani", sans-serif;
}

/*----------------------------- Buttons -------------------------------*/

.buttons-1 {
    display: flex;
    gap: .3rem;
}

.button-1 {
    outline: none;
    background-color: var(--background);
    border-radius: .3rem;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 0.3rem .5rem;
    cursor: pointer;
}

.button-1:hover {
    background-color: var(--background-hover);
}

.button-1.active {
    background-color: #385cff;
    border: 1px solid #385cff;
    color: #0c0c0c;
}


/*---------------------- Table ----------------------*/

.table-container {
    width: 100%;
    overflow-x: auto;
    background: var(--card-color);
    border-radius: .5em 0.5em 0 0;
}

.table1 {
    font-size: 1em;
    border-spacing: 0;
    border-collapse: collapse;
    width: 100%;
    font-family: "Rajdhani", sans-serif;
    text-align: center;
    color: var(--text);
}

.table1 thead {
    border-bottom: 1px solid #2e2e2e;
}

.table1 th {
    vertical-align: middle;
    padding: .75em;
}

.table1 td {
    padding: .75em;
}

.table1 .title {
    cursor: pointer; 
    text-align: left;
    min-width: 200px;
}

.table1 .date {
    min-width: 140px;
}

.table1 a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
}

.table1 a:hover {
    text-decoration: underline;
    color: var(--hover);
}

.table1 tbody tr:nth-child(even) {
    background-color: #080808;
}

.progress-container {
    bottom: 0;
    width: 100%;
    background-color: #2b2b33;
    direction: rtl;
}

.progress-bar {
    height: 2px;
}

/*---------------------- Footer ----------------------*/

footer {
    display: flex;
    border-top: 1px solid var(--border);
}

footer .main {
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 1150px;
    padding: 1em 0;
}

footer .list {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 300px;
}

footer h1, h2, h3 {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
}

footer p {
    margin: 0;
    font-size: .9em;
    color: #dbdbdb;
}

footer a {
    text-decoration: none;
    color: white;
    font-size: .9em;
}

footer a:hover {
    color: var(--green);
}

/*---------------------------- Tooltip ---------------------------*/

.tooltip {
    background: var(--background);
    display: flex;
    flex-direction: column;
    font-family: 'Karla';
    padding: .5rem;
    border-radius: .3rem;
    border: 1px solid var(--border);
}

.tooltip .time {
    font-family: 'Inter';
    color: #ffffff;
    font-size: .8rem;
    font-weight: 500;
}

.tooltip .row {
    display: flex;
    gap: .5rem;
}

.tooltip .key {
    color: #ffffff;
    font-weight: 600;
}

.tooltip .value {
    color: #c7c7c7;
}

/*----------------------------- Custom select -------------------------------*/

.custom-select-wrapper {
    font-family: 'Karla';
    position: relative;
    user-select: none;
    margin-bottom: .3rem;
    width: 150px;
    border-radius: .3em;
    border: 1px solid var(--border);
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .6em;
    font-size: 0.85em;
    font-weight: 300;
    background: var(--background);
    color: #ffffff;
    height: 2.5em;
    cursor: pointer;
    border-radius: 0.3em;
}

.custom-select__trigger .header {
    display: flex;
    gap: .5em;
    flex-direction: row;
    align-items: center;
}

.custom-select__trigger .header svg {
    align-items: center;
    width: 18px;
    height: 18px;
    fill: #ffffff;
}

.custom-options {
    position: absolute;
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    padding: 0.2em;
    top: 100%;
    margin-top: .2em;
    border-radius: .25em;
    left: 0;
    right: 0;
    background: var(--background);
    border: 1px solid var(--border);
    transition: all 0.25s;
    opacity: 0;
    max-height: 300px;
    visibility: hidden;
    overflow-y: auto;
    pointer-events: none;
    z-index: 2;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    border-radius: 0.1em;
    padding: .6em;
    font-size: 0.8em;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
}

.custom-option:hover {
    cursor: pointer;
    background-color: var(--background-hover);
}

.custom-option.selected {
    color: #ffffff;
    background-color: var(--background-hover);
}

.arrow {
    position: relative;
    height: 8px;
    width: 8px;
}

.arrow::before, .arrow::after {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 0.15rem;
    height: 100%;
    transition: all 0.25s;
}

.arrow::before {
    left: -2.5px;
    transform: rotate(90deg);
    background-color: var(--text);
}

.arrow::after {
    left: 2.5px;
    transform: rotate(90deg);
    background-color: var(--text);
}

.open .arrow::before {
    left: -2.5px;
    transform: rotate(135deg);
}

.open .arrow::after {
    left: 2.5px;
    transform: rotate(45deg);
}