:root {
    --color-info: #64ABDE;
    --color-success: #059862;
    --color-warning: #EF5523;
    --color-danger: #8D1329;
    
    --sidebar-width: 350px;
    --footer-height: 56px;
    --content-width: calc(100% - var(--sidebar-width));
    --content-height: calc(100% - var(--footer-height));
}

body, html {
    margin:0;
    padding:0;
    height: 100%;
    width: 100%;
    background: #dedede;
}

* {
    box-sizing: border-box;
    font-family: "Poppins";
    line-height: 1.3;
}

/* Content */
aside, main {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
}
main {
    position: relative;
    margin-left: var(--sidebar-width);
    width: var(--content-width);
    height: var(--content-height);
}
footer {
    position: fixed;
    bottom: 0;
    right: 0;
    height: 56px;
    width: var(--content-width);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    color: white;
}
.non-authenticated main,
.non-authenticated footer {
    width: 100%;
    margin: 0;
}
aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--sidebar-width);
    background: black;
    color: white;
}
aside h1 {
    margin-bottom: 0;
}
nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
nav a {
    color: white;
}
.user-data {
    margin-top: auto;
}

/* Pagination */
nav[role="navigation"] svg {
    width: 24px;
    height: 24px;
}
nav[role="navigation"] > div.flex {
    display: flex;
    gap: 20px;
    display: none;
}
nav[role="navigation"] > div.flex * {
    color: black;
}
nav[role="navigation"] .relative.z-0.inline-flex {
    display: flex;
    gap: 10px;
    align-items: center;
}
nav[role="navigation"] .relative.z-0.inline-flex * {
    color: black;
}
[aria-current="page"] {
    border-bottom: 1px solid;
}

/* General classes */
.fixed {
    position: fixed;
}
.absolute {
    position: absolute;
}
.center {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.fixed.center,
.absolute.center {
    background: black;
    color: white;
    padding: 40px;
    border-radius: 20px;
}
.spacer {
    height: 20px;
}

/* Links */
a {
    position: relative;
    outline: none;
    text-decoration: none;
    color: gray;
    width: fit-content;
}

/* Titles */
h1, h2, h3 {
    margin: 0;
    line-height: 1.2;
}
h1 {
    font-size: 1.75em;
    margin-bottom: 20px;
}
h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}
h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
}

/* Forms */
form {
    display:flex;
    flex-direction:column;
    gap:10px;
    width: 100%;
    max-width: 400px;
}
.form-group {
    display: flex;
    flex-direction:column;
    gap:5px;
}

/* Inputs and buttons */
input, textarea, select, button, .button {
    outline: none;
    padding: 5px 12px;
    border-radius: 5px;
    border: 1px solid black;
}
select[multiple] {
    min-height: 150px;
}
textarea {
    resize: vertical;
    min-height: 100px;
    max-height: 350px;
}
button, .button {
    display: block;
    cursor: pointer;
    background: var(--color-info);
    border-color: var(--color-info);
    color: white;
    width: fit-content;
    font-size: 16px;
    transition: 0.25s;
}
button:hover, .button:hover {
    transform: scale(1.05);
}
.button.underlined {
    font-size: 14px;
    padding: 3px 0;
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0;
    color: black;
    background: none;
}
.button.underlined:hover {
    transform: none;
}

/* Messages */
.messages {
    height: 100%;
    width: 300px;
    position: fixed;
    right: 0;
    top: 0;
    padding: 20px;
    z-index: 100;
}
.messages.hide {
    pointer-events: none;
}
.message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.invalid-feedback {
    color: var(--color-warning);
}

/* Indicators */
.info {
    border-color: var(--color-info);
    background: var(--color-info);
}
.success {
    border-color: var(--color-success);
    background: var(--color-success);
}
.warning {
    border-color: var(--color-warning);
    background: var(--color-warning);
}
.danger {
    border-color: var(--color-danger);
    background: var(--color-danger);
}

/* Tables */
table {
    border-radius: 10px;
    border-collapse: collapse;
    overflow: hidden;
    width: 100%;
}
thead {
    background: #000000;
}
tbody {
    background: #3d3d3d;
}
th, td {
    color: white;
    padding: 7px 12px;
    text-align: left;
}
.table-row-actions div {
    display: flex;
    align-items: center;
    gap: 10px;
}
.table-row-actions a {
    display: flex;
}
.tooltip, .tooltip::before {
    position: absolute;
    left: 50%;
    background: black;
}
.tooltip {
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    border-radius: 5px;
    background: black;
    padding: 2px 7px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
}
.tooltip::before {
    content: "";
    width: 5px;
    height: 5px;
    top: calc(100% - 1px);
    border-radius: 0;
    transform: rotate(45deg) translateX(-50%);
}
a:hover .tooltip {
    opacity: 1;
}

.toolbar {
    display: flex;
    gap: 20px;
}

ul {
    padding: 0;
    list-style: none;
}
ul li::before {
    content: "# ";
}

pre {
    background: lightgray;
    padding: 7px 12px;
    border-radius: 10px;
    width: fit-content;
    margin-top: 5px;
}

.item-data {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.item-data section {
    width: calc(100% / 3 - 20px * 2 / 3);
}