@import "./fonts.css";

:root {
    --fontBright: #fff;
    --fontLight: #ccc;
    --fontDark: #848484;
    --primaryGoldColor: #fbe4c7;
    --secondaryGoldColor: #bc8243;
    --tertiaryGoldColor: #CA965E;
    --primaryGreyColor: #181818;
    --secondaryGreyColor: #24231f;
    --tertiaryGreyColor: #353530;
    --primaryWarning: #94371b;
    --primaryAccepting: #25941b;
    --secondaryAccepting: #17860d;
    --tertiaryAccepting: #36aa2c;
}

body, html, * {
    margin:0;
    padding:0;
    box-sizing: border-box;
    border-radius:0;
    border:0;
    outline: none;
}
body, html {
    display: flex;
    min-height: 100%;
    width: 100%;
    min-width: 730px;
    background-color: #050505;
    background-image: url('../img/bg_logo_repeat.png');
}


::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: #333333;
}

::-webkit-scrollbar-thumb {
    background-color: #a9a9a9;
    border-radius: 5px;
    border: 3px solid #333333;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #808080;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px #000000;
}
button {
    color: #131313;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Open Sans';
    border-radius: 0.5rem;
    border: 2px solid #1b1b1b;
    width: 100%;
    padding: 0.3rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    background: rgb(148,86,27);
    background: linear-gradient(180deg, rgba(148,86,27,1) 0%, rgba(235,187,123,1) 100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: pointer;
}

button:hover {
    background: var(--tertiaryGoldColor);
}

button:active {
    color: var(--secondaryGreyColor);
    background: var(--primaryGoldColor);
}

select {
    display: flex;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    border: 2px solid grey;
    background-color: #131313;
    line-height: 1.5;
    font-family: 'Open Sans';
    text-transform: capitalize;
    width: 100%;
}

input[type=text], input[type=number] {
    display: flex;
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    border: 2px solid grey;
    background-color: #131313;
    line-height: 1.5;
    font-family: 'Open Sans';
    width: 100%;
}

input[type=text]:focus, input[type=number]:focus {
    border: 2px solid #985b1f;
}

input::placeholder {
    color: var(--fontDark);
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="checkbox"] {
    padding: 0;
    flex: unset;
    cursor: pointer;
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    width: 25px;
    height: 25px;
    padding: 0;
    margin: 0;
}

input[type="checkbox"]::before {
    content: "";
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: var(--primaryGoldColor);
    border: 1px solid #000;
}

input[type="checkbox"]:checked::before {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 25px;
    max-height: 25px;
    content: "\2714";
    font-size: 18px;
    color: #fff;
    background-color: var(--secondaryGoldColor);
    border: 1px solid #000;
}
/* -------- Formatting --------- */

h1 {
    display: flex;
    background-color: var(--tertiaryGreyColor);
    color: var(--primaryGoldColor);
    font-weight: unset;
    font-size: 16px;
    padding: 0.25rem;
    border-radius: 0.3rem;
}

h1::before {
    content: "〢";
    color: var(--secondaryGoldColor);
}

h1 input[type="checkbox"] {
    margin-left: auto;
    margin-right: 2px;
    width: 20px;
    height: 20px;
}

h1 input[type="checkbox"]:before {
    width: 20px;
    height: 20px;
}

pre {
    max-height: 240px;
    width: 100%;
    padding: 0.3rem;
    overflow-y: auto;
    white-space: pre-wrap;
    background-color: var(--tertiaryGreyColor);
    color: var(--fontBright);
}

/* ------- GENERAL TABLE ------- */
table {
    display: flex;
    flex-direction: column;
    border-collapse: collapse;
}
thead, tbody {
    display: flex;
    flex-direction: column;
}

tr {
    display: flex;
    border-bottom: 1px solid var(--tertiaryGreyColor);
    padding: 0.25rem;
    column-gap: 5px;
}

th, tr, td {
    flex: 1;
}

th {
    align-items:flex-end;
    font-size: 18px;
    gap: 0.3rem;
    color: var(--secondaryGoldColor);
    line-height: 1;
    user-select: none;
}

td {
    font-size: 14px;
    height: 32px;
}

/* All columns inbetween */
th, td {
    display: flex;
    align-items: center;
    justify-content:flex-start;
    font-weight: unset;
    min-width: 45px;
    /* padding: 0rem 0.3rem; */
    
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th a, th div, th span,
td a, td div, td span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

td a {
    color: var(--fontBright);
    text-decoration: none;
}

/* Last Column */
th:last-child,
td:last-child {
    justify-content: flex-end;
}

/* Last Column - Button */
th:last-child button,
td:last-child button {
    filter: hue-rotate(315deg);
    max-width: 100px;
}

/* -------- GENERAL PAGE STYLING -------- */

.pageHeader {
    background-color: var(--secondaryGreyColor);
    border-radius: 5px;
    padding: 0.5rem;

    font-size: 16px;
    color: var(--primaryGoldColor);
    min-width: 100px;
}

.pageContent {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.5rem;
    padding: 0.5rem;
    flex-direction: column;
    width: 100%;
    background-color: var(--secondaryGreyColor);
    font-size: 14px;
    color: var(--fontLight);
    min-width: 100px;
}

#welcomeMessage, #submitLogout {
    white-space: nowrap;
}

/* -------- Accounts --------- */

.accountsCreateBox {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.3rem;
    flex-direction: column;
    width: 100%;
}

#accountsTable thead tr th {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-items: center;
    text-transform: capitalize;
}

#accountsTable tbody tr td {
    justify-content: center;
}

#accountsTable tbody tr td:first-child {
    justify-content: left;
}


/* ------ Pages ------- */

.pagesCreateBox {
    display:flex;
    gap: 0.5rem;
}

.pagesCreateBox button {
    min-width: 100px;
    width: unset;
}

.sort-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.sort-icons i {
    font-size: 18px;
    height: 11px;
    line-height: 10px;
    color: var(--fontDark);
}

.sort-icons i::before {
}

.sort-icons i:hover {
    color: var(--secondaryGoldColor);
}

.sort-icons i:active {
    color: var(--fontBright);
}

.pagesCreateBox input[type="checkbox"]::before,
.pagesCreateBox input[type="checkbox"]::after,
.pagesCreateBox input[type="checkbox"] {
    min-height: 40px;
    min-width: 40px;
}

#pagesManageBox .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--tertiaryGreyColor);
    padding: 0.25rem;
}

#pagesManageBox .left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 16px;
    text-transform: capitalize;
    color: var(--secondaryGoldColor);
}

#pagesManageBox .right {
    display: flex;
    align-items: center;
    gap: 5px;
}

#pagesManageBox select {
    width: 100px;
    padding: 0.1rem;
    border-radius: 0.1rem;
    font-size: 14px;
}
#pagesManageBox button {
    width: 100px;
    filter: hue-rotate(315deg);
}

/* ------ Permissions ------- */



#permissionsPage thead tr th {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    align-items: center;
    text-transform: capitalize;
}

#permissionsPage th:last-child {
    justify-content: unset;
}

#permissionsPage tbody tr td {
    justify-content: center;
}

#permissionsPage tbody tr td:first-child {
    justify-content: left;
    text-transform: capitalize;
}

#permissionsTable td {
    font-size: 16px;
    color: var(--secondaryGoldColor);
    text-transform: capitalize;
}


/* --------- URL Redirect --------- */

.redirectCreateBox {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.3rem;
    flex-direction: row;
    width: 100%;
}

#redirectsTable thead tr th {
    font-size: 16px;
    font-family: 'Consolas';
}
#redirectsTable thead tr th:last-child,
#redirectsTable tbody tr td:last-child {
    max-width: 103px;
    min-width: 103px;
}
#redirectsTable td {
    width: 100%;
    line-height: 33px;
}

#redirectsTable tbody tr td:nth-child(1) {
    text-transform: lowercase;
}



/* --------- Talents --------- */

.talentsCreateBox {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.3rem;
    flex-direction: row;
    width: 100%;
}

#talentsSearch {
    width: 150px;
    height: 22px;
    font-size: 14px;
    border: unset;
    border-radius: 0.3rem;
    margin-left: auto;
}

#talentsTable thead tr th {
    font-size: 16px;
    font-family: 'Consolas';
}
#talentsTable thead tr th:nth-child(4) {
    color: #6441a5
}
#talentsTable thead tr th:nth-child(5) {
    color: #1da1f2 
}

/* -------- Supported Plugins -------- */

.supportedPluginsCreateBox {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: 0.3rem;
    width: 100%;
}

.supportedPluginsCreateBox div {
    display: flex;
    justify-content: space-between;
    margin: 0rem 0.3rem;
    align-items: center;
    font-size: 16px;
}

.supportedPlugins_header {
    background-color: var(--primaryGreyColor);
}

#supportedPluginsTable .supportedPlugins_header td:first-child {
    font-size: 16px;
    font-weight: bold;
    color: var(--secondaryGoldColor);
}

#supportedPluginsTable tr {
    align-items: center;
    justify-content: space-between;
}

#supportedPluginsTable tr td {
    max-width: fit-content;
    align-content: center;
}

#supportedPluginsTable tr td:first-child {
    text-transform: capitalize;
    min-width: 125px;
    color: var(--fontBright);
}

#supportedPluginsTable thead tr th {
    justify-content: unset !important;
}

/* ---------- l-plugins -------------*/

.version_lplugins span {
    color: var(--fontBright);
    font-size: 20px;
    margin: 0rem 0.3rem;
}
.version_lplugins input {
    width: 100px;
    height: 30px;
}
.version_lplugins button {
    width: 100px;
    line-height: 1;
    font-size: 16px;
    filter: hue-rotate(315deg);
    margin-left: auto;
}

.version_lplugins {
    display: flex;
    white-space: nowrap;
    height: 30px;
    align-items: center;
}

#text_files_dropped {
    max-height: unset;
    height: 300px;
    border-radius: 5px;
}

#drop_zone {
    position: relative;
    cursor: cell;
    height: 300px;
    border-radius: 5px;
    border: 2px dotted var(--tertiaryGoldColor);
    user-select: none;
}

#drop_zone div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: var(--secondaryGreyColor);
}

/* -------- CONTACT PAGE -------- */

.contactBox {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background-color: #ebbb7b;
    padding: 1rem;
    border-radius: 10px;
    color: #000;
    font-family: 'Open Sans';
    background: linear-gradient(0deg, rgba(148,86,27,1) 0%, rgba(235,187,123,1) 100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Adjust the page to show things properly on mobiles too */ 
@media (max-width: 475px) {
    .contactBox {
        justify-content: center;
        width: calc(100% - 20px);
        max-width: 250px;
    }
    .contactBox span {
        width: 100%;
        justify-content: center;
    }
}

.contactBox span {
    display: flex;
    gap: 3px;
    align-items: center;
    word-break: break-all;
}

/* -------- LOGIN PAGE -------- */

.centerWrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.loginLogo {
    width: 100%;
    max-width: 400px;
    background-image: url(../img/logo_shadow_600.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: -100px;
    border-radius: 0.5rem;
    aspect-ratio: 1 / 1;
}

.loginBox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    width: 25%;
    min-width: 400px;
    background-color: #252728;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0px 0px 30px rgb(0,0,0,0.5);
}

.loginBox input {
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 16px;
    /* font-weight: bold; */
    border: 2px solid grey;
    background-color: #131313;
    line-height: 1.5;
    width: 100%;
    font-family: 'Open Sans';
}

.loginBox input:focus {
    border: 2px solid #985b1f;
}

.loginBox button {
    color: #131313;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Open Sans';
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 2px solid #1b1b1b;
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    background: rgb(148,86,27);
    background: linear-gradient(180deg, rgba(148,86,27,1) 0%, rgba(235,187,123,1) 100%); 
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition:  box-shadow 200ms;
}

.loginBox button:hover {
    cursor: pointer;
}

.loginBox button:active {
    background: var(--primaryGoldColor)
}

/* ------------- CRON JOBS ------------- */

#cronTable td, #cronTable th {
    gap: 5px;
}

#cronTable td:first-child, #cronTable th:first-child {
    flex: 4;
}

#cronTable td:nth-child(2), #cronTable th:nth-child(2) {
    flex: 2;
}
#cronTable td:nth-child(3), #cronTable th:nth-child(3) {
    justify-content: center;
    flex: 1;
}

#cronTable input[type="text"] {
    height: 25px;
    border-radius: 0;
}

#cronTable input[type="checkbox"] {
    height: unset;
}
/* ---------- ERROR MESSAGES ----------- */

/* Show message */
/* General permanent styling */
.showMessage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primaryWarning);
    color: var(--fontBright);
    font-size: 18px;
    font-weight: bold;
    font-family: 'Consolas';
    padding: 0.5rem;
    border-radius: 0.3rem;
    transition: 200ms ease-in-out;
    opacity: 0;
}

.loginPage .errorMessage {
    margin-top: 10px;
    min-height: 50px;
    box-shadow: 0px 0px 30px rgb(0,0,0,0.5);
    width: 25%;
    min-width: 400px;
}

.adminHeaderPage .showMessage {
    height: 100%;
    min-width: 200px;
}

/* -------- ADMIN PAGE -------- */
.adminBox {    
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
    min-width: 700px;
    background: var(--primaryGreyColor);

    color: var(--fontDark);
    font-family: 'Open Sans';
}

/* Hacky fix */
@media only screen and (max-width: 1200px) {
    #adminPanel2 {
        display: none;
    }
}

.adminPanel {
    display: flex;
    flex-direction: column;
    /* height: calc(100% - 50px); */
    width: 250px;
    padding: 0.5rem;
    background: var(--secondaryGreyColor);

    box-shadow: #1b1b1b 0px 3px 3px inset;
}

.adminPanel .link:hover {
    color: var(--fontBright);
    background: var(--tertiaryGoldColor);
}

.adminPanel .link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 1px 0px;
    border-radius: 0.3rem;
}

.adminPanel .link i {
    display: flex;
    justify-content: center;
}

.adminHeaderPanel {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: calc(250px - 0.5rem);

    font-family: 'Open Sans';
    color: var(--primaryGoldColor);
}

.adminHeaderPage {
    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 100%;
    width: calc(100% - 250px);
}

.adminPage { /* Wrapper */
    display: flex;
    flex-direction: column;
    height: calc(100% - 50px);
    min-width: 323px;
    gap: 0.5rem;
    padding: 0.5rem;
    flex: 1;
}

.adminHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;

    width: 100%;
    height: 50px;
    background: var(--tertiaryGreyColor);
}

.adminContent {
    width: 100%;
    height: calc(100% - 80px);

    padding: 0.5rem;
    /* background: var(--primaryGreyColor); */
}


.link i {
    width: 20px;
}

.link:hover {
    color: var(--fontLight);
    cursor: pointer;
}

/* ::::::::::::::::::::::::: */
/* ::::: MODALS WINDOW ::::: */
/* ::::::::::::::::::::::::: */

.modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    transition: all 200ms;
    box-sizing: border-box;
    padding: 20px;
}

.modalBox {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--secondaryGreyColor);
    border: 1px solid var(--secondaryGoldColor);
    border-radius: 5px;
    color: white;
    font-family: 'Open Sans';
    flex: 1;
    padding: 10px;
    max-width: 415px;
}

.modalButtons {
    display: flex;
    width: 100%;
    height: 30px;
    border-radius: 0px 0px 2px 2px;
    overflow: hidden;
    align-items: center;
    gap: 10px;
}

.modalMessage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3px;
    text-align: center;
}

.modalBox i {
    font-size: 30px;
    padding-top: 5px;
    color: #E9D502;
}

.modalButtons span {
    display: flex;
    background-color: var(--secondaryGoldColor);
    padding: 2px 10px;
    cursor: pointer;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 100%;
    border-radius: 5px;
}

.modalButtons span:hover {
    background-color: var(--tertiaryGoldColor);
}

.modalButtons span.red {
    background-color: #990000;
}
.modalButtons span.red:hover {
    background-color: #cc0000;
}
.modalButtons span.green {
    background-color: #009900;
}
.modalButtons span.green:hover {
    background-color: #00cc00;
}

/* ---- */

.locked {
    /* pointer-events:none; */
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}