[data-theme="dark"] {
    --dark: #333333;
    --darker: #1A1A1A;
    --light: #EEEEEE;

    --yellow: #ffed52;
    --cyan: #05aaa8;
    --cyan-darker: #057c7a;
    --red: #af0000;
    --red-darker: #990000;
}

:root {
    font-size: 100%;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    display: flex;
    padding: 1rem;
    height: calc(100vh - 2rem);
    background-color: var(--dark);
}

/* SIDEBAR */

aside {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    font-size: 18px;
}

aside img {
    height: 4rem;
}

aside ul {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: .7rem;
}

aside ul li {
    list-style: none;
    display: contents;
}

aside ul li a {
    color: var(--light);
    padding: .9rem 1.5rem;
    border-radius: .6rem;
    display: flex;
    gap: 10px;
}

aside ul li a .icon {
    display: inline-block;
    width: 1.7rem;
    text-align: center;
}

aside ul li.active a {
    background: var(--darker);
}

#sidebar-toggle {
    display: none;
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 2.2rem;
    height: 2.2rem;
    z-index: 9999;
}

/* MAIN CONTENT */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--darker);
    border-radius: 1rem;
    padding: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--light);
}

div#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    row-gap: 2rem;
    padding-top: 3rem;
    overflow-y: auto;
}

.wp-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 7px;
}

/* INPUTS */

input, button, select, textarea {
    border: none;
    padding: .5rem;
    border-radius: .3rem;
}

button {
    background: var(--cyan);
    color: var(--light);
}

button.danger {
    background: var(--red);
}

button:hover {
    background: var(--cyan-darker);
    cursor: pointer;
}

button.danger:hover, button.danger:disabled {
    background: var(--red-darker);
}

button:disabled {
    background: var(--cyan-darker);
    cursor: not-allowed;
}

a {
    text-decoration: none;
    color: var(--cyan);
}

a:hover {
    color: var(--cyan-darker);
}

/* UTIL */

h1, .h1 {
    margin: 0;
}

.card {
    background: var(--dark);
    border-radius: 1rem;
    padding: 1rem;
    color: var(--light);
    display: flex;
    flex-direction: column;
    row-gap: .5rem;
    height: fit-content;
    max-width: stretch;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-label input, .form-label select, .form-label span:first-child {
    flex: 1;
}

.hidden {
    display: none;
}

.columns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* MAIN NAV GRID */
article.grid {
    display: flex;
    grid-gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

article.grid a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: var(--dark);
    color: var(--light);
    width: 15rem;
    height: 15rem;
    border-radius: 1rem;
    font-size: 1.2rem;
}

article.grid a:hover {
    background: var(--cyan-darker);
}

article.grid a .icon i::before {
    font-size: 5rem;
}

/* MOBILE */
@media screen and (max-width: 850px) {
    :root {
        font-size: 95%;
    }

    aside:not(.open) {
        display: none;
    }

    aside.open {
        width: 100%;
        text-align: center;
    }

    aside.open + main {
        display: none;
    }

    #sidebar-toggle {
        display: block;
    }
}

@media screen and (max-width: 600px) {
    :root {
        font-size: 80%;
    }

    body {
        padding: 0;
        height: 100vh;
    }

    main {
        border-radius: 0;
    }
}

@media screen and (max-width: 500px) {
    :root {
        font-size: 60%;
    }
}