@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

html {
    scroll-behavior: smooth;
    font-size: 62.5%;
}

:root {
    --text-color: #343A40;
    --secondary-text-color: #929AA1;
    --background-color: #FDFDFD;
    --background-color-rgb: 253, 253, 253;
    --secondary-background-color: #F1F1F1;
    --primary-color: #F4C430;
    --accent-color: #D4A017;
    --success-color: #4CAF50;
    --warning-color: #FFA726;
    --error-color: #E53935;
}

/* global stuff */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    text-decoration: none;
    box-sizing: border-box;
    font-family: 'Montserrat', Courier;
}

body {
    background-color: var(--secondary-background-color);
}

h1,
h2,
h3,
h4,
h5,
p {
    color: var(--text-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-error {
    background-color: var(--error-color);
}

.bg-success {
    background-color: var(--success-color);
}

.pointer {
    cursor: pointer;
}

.medium {
    font-weight: 500;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.button {
    display: flex;
    gap: 0.5rem;
}

.button button {
    border: none;
    cursor: pointer;
}

.none {
    display: none !important;
}

.no-scroll {
    overflow-y: hidden;
}

/* sidebar */
.sidebar {
    position: fixed;
    background-color: var(--primary-color);
    height: 100%;
    max-width: 22.4rem;
    overflow-y: auto;
    z-index: 2;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    place-items: center;
    margin-bottom: 2.4rem;
}

.sidebar-content-title {
    padding: 2rem 1rem 0.6rem;
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    place-items: center;
}

.sidebar-content-title img {
    width: 7rem;
}

.sidebar-content-title h4 {
    font-size: 1.3rem;

}

.sidebar-content-line {
    border: 0.15rem solid var(--text-color);
    width: 100%;
}

.sidebar-content-menu {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: max(0%, 100%);
}

.active {
    background-color: var(--accent-color);
}

.sidebar-content-menu-item {
    display: flex;
    flex-direction: row;
    place-items: center;
    gap: 1rem;
    padding: 0.6rem 1.8rem;
    margin: 0 1.8rem;
    border-radius: 0.6rem;
    transition: .5s;
    cursor: pointer;
}

.sidebar-content-menu-item:hover {
    background-color: var(--accent-color);
}

.logout-button {
    background-color: var(--error-color);
    margin-top: 4rem;
}

.logout-button p,
.logout-button svg {
    color: var(--background-color);
}

.logout-button:hover {
    background-color: maroon;
}

.sidebar-content-menu-item svg {
    width: 2.2rem;
    height: 2.2rem;
}

.sidebar-content-menu-item p {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Tablet Media Queries */
@media (min-width: 641px) and (max-width: 1024px) {
    .sidebar {
        max-width: 100%;
    }

    .sidebar-content {
        gap: 1.2rem;
    }

    .sidebar-content-title {
        padding: 1rem 1rem 0rem;
    }

    .sidebar-content-title h4 {
        display: none;
    }

    .sidebar-content-menu-item {
        display: grid;
        place-items: center;
        margin: 0 1.2rem;
    }

    .sidebar-content-menu-item svg {
        width: 2rem;
        height: 2rem;
    }

    .sidebar-content-menu-item p {
        display: none;
    }
}

/* Phone Media Queries */
@media (max-width: 640px) {
    .sidebar {
        max-width: 100%;
        width: 100%;
        transform: translateX(-100%);
        transition: .5s;
    }

    .sidebar-active {
        transform: translateX(0);
    }

    .sidebar-content {
        gap: 0rem;
    }

    .sidebar-content-title {
        padding: 0rem;
    }

    .sidebar-content-title img {
        width: 10rem;
    }

    .sidebar-content-title h4 {
        display: none;
    }

    .sidebar-content-line {
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .sidebar-content-menu-item {
        padding: 1.2rem 1.8rem;
        margin: 0 2.4rem;
        gap: 1.8rem;
    }

    .sidebar-content-menu-item svg {
        width: 3.2rem;
        height: 3.2rem;
    }

    .sidebar-content-menu-item p {
        font-size: 1.8rem;
    }
}

/* sidebar */

/* topbar */
.hamburger-button {
    z-index: 999;
    position: absolute;
    margin: 3.8rem;
    visibility: hidden;
    cursor: pointer;
}

.topbar {
    position: absolute;
    z-index: 1;
    width: 100%;
    min-height: 9rem;
    background-color: var(--background-color);
    box-shadow: rgba(0, 0, 0, 0.24) 0rem 0.3rem 0.8rem;
    display: grid;
    align-items: center;
}

.topbar-content {
    max-width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
    margin: 0 3.8rem;
    padding-left: 22.4rem;
}

.topbar-content-user {
    display: flex;
    flex-direction: row;
    place-items: center;
    gap: 1.2rem;
}

.topbar-content svg {
    width: 3rem;
    height: 3rem;
}

.topbar-content p {
    font-weight: 600;
    font-size: 1.4rem;

}

/* Tablet Media Queries */
@media (min-width: 641px) and (max-width: 1024px) {
    .topbar {
        min-height: 6.6rem;
    }

    .topbar-content {
        max-width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: end;
        align-items: center;
        margin: 0 3.8rem;
        padding-left: 9rem;
    }

    .topbar-content-user {
        display: flex;
        flex-direction: row;
        place-items: center;
        gap: 1.2rem;
    }

    .topbar-content svg {
        width: 2.4rem;
        height: 2.4rem;
    }

    .topbar-content p {
        font-size: 1.2rem;
    }
}

/* Phone Media Queries */
@media (max-width: 640px) {
    .topbar {
        background-color: var(--primary-color);
    }

    .hamburger-button {
        z-index: 999;
        visibility: visible;
    }
}

/* topbar */

/* dashboard */
.dashboard {
    margin-left: 22.4rem;
    padding: 9rem 2rem 2rem 2rem;
}

.dashboard-content {
    margin: 3.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 3.6rem;
}

.welcome {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


.welcome h2 {
    font-size: 2.4rem;
}

.welcome p {
    font-size: 1.8rem;
}

.dashboard-content-home {
    min-height: calc(100vh - 11rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.6rem;
}

.welcome-home {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
    text-align: center;
}

.welcome-home h2 {
    font-size: 4.4rem;
}

.welcome-home p {
    font-size: 2.8rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.card {
    background-color: var(--background-color);
    padding: 1.8rem;
    border-radius: 0.6rem;
    box-shadow: rgba(0, 0, 0, 0.16) 0rem 0.1rem 0.4rem;
    display: flex;
    flex-direction: row;
    place-items: center;
    justify-content: space-between;
}

.column {
    flex-direction: column;
    gap: 7.4rem;
}

.card .result {
    font-size: 3rem;
    font-weight: 600;
}

.card .highlight {
    display: flex;
    flex-direction: row;
    gap: 1.2rem;
    place-items: center;
}

.highlight svg {
    width: 3.6rem;
    height: 3.6rem;
    color: var(--accent-color);
}

.highlight div {
    display: grid;
    gap: 0.2rem;
}

.highlight div h3 {
    font-size: 1.8rem;
}

.highlight div p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
}

/* Tablet Media Queries */
@media (min-width: 641px) and (max-width: 1024px) {
    .dashboard {
        margin-left: 9rem;
        padding: 9rem 1.2rem 2rem 1.2rem;
    }

    .dashboard-content {
        margin: 0.6rem 1.8rem;
        gap: 2.4rem;
    }

    .welcome {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .welcome h2 {
        font-size: 1.8rem;
    }

    .welcome p {
        font-size: 1.2rem;
    }

    .card {
        padding: 1.2rem;
    }

    .card .result {
        font-size: 2.4rem;
    }

    .highlight svg {
        width: 3rem;
        height: 3rem;
    }

    .highlight div h3 {
        font-size: 1.4rem;
    }
}

/* Phone Media Queries */
@media (max-width: 640px) {
    .dashboard {
        margin-left: 0rem;
    }

    .dashboard-content {
        margin: 3.6rem 0rem;
        gap: 2.4rem;
    }
}

/* dashboard */

/* loader */
.loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(var(--background-color-rgb), 0.5);
    transition: opacity 0.75s, visibility 0.75s;
}

.loader--hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: '';
    width: 75px;
    height: 75px;
    border: 15px var(--primary-color) solid;
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: loading 0.75s infinite;
    opacity: 1;
}

@keyframes loading {
    from {
        transform: rotate(0turn)
    }

    to {
        transform: rotate(1turn)
    }
}

/* loader */

/* snackbar */
.snackbar {
    position: fixed;
    width: 100%;
    background-color: var(--primary-color);
    box-shadow: rgba(0, 0, 0, 0.24) 0rem 0.3rem 0.8rem;
    padding: 1.5rem;
    font-size: 1.5rem;
    z-index: 999;
    top: 0;
    left: 0;
}

.snackbar p {
    margin-left: 2rem;
}

/* Phone Media Queris */
@media (max-width: 640px) {
    .snackbar {
        background-color: var(--background-color);
    }
}

/* snackbar */
.snackbar {
    position: fixed;
    top: -60px;
    /* Start off-screen */
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 90%;
    padding: 1.2rem;
    border-radius: 4px;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
    transition: top 0.3s ease-in-out;
}

.snackbar--visible {
    top: 2rem;
    /* Slide in from the top */
}

/* Specific styles for different types */
.snackbar--success {
    background-color: var(--success-color, #4CAF50);
}

.snackbar--error {
    background-color: var(--error-color, #F44336);
}

.snackbar--warning {
    background-color: var(--warning-color, #FF9800);
}

.snackbar--info {
    background-color: var(--info-color, #2196F3);
}

/* snackbar */

/* popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 998;
    transition: all 0.3s ease;
    backdrop-filter: blur(0.4rem);
}

/* Popup */
.popup {
    z-index: 999;
    width: 66rem;
    max-width: 90vw;
    background-color: var(--background-color);
    border-radius: 1.8rem;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    text-align: center;
    padding: 3.8rem;
    color: var(--text-color);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.15), 0 0.8rem 2rem rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Icon container */
.popup-icon {
    width: 9rem;
    height: 9rem;
    margin: 0 auto 3.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.2rem;
    background: var(--primary-color);
    color: white;
}

.popup-icon.error {
    background: var(--error-color);
}

.popup h2 {
    font-weight: 600;
    font-size: 3.2rem;
    margin: 0 0 1.2rem;
    line-height: 1.3;
}

.popup p {
    font-size: 2.2rem;
    line-height: 1.5;
    margin: 0 0 2.4rem;
    color: rgba(var(--text-color), 0.8);
}

.popup .options {
    display: flex;
    gap: 1.2rem;
    flex-direction: column;
}

@media (min-width: 480px) {
    .popup .options {
        flex-direction: row;
    }
}

.popup .options button {
    flex: 1;
    font-size: 2.2rem;
    font-weight: 500;
    padding: 1.8rem 2.4rem;
    border-radius: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popup .options button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.popup .options button:active::before {
    width: 30rem;
    height: 30rem;
}

.popup .options .btn-primary {
    color: white;
    background: var(--primary-color);
}

.popup .options .btn-primary:hover {
    transform: translateY(-2px);
}

.popup .options .btn-secondary {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
    border: 0.2rem solid rgba(0, 0, 0, 0.1);
}

.popup .options .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.popup .options .btn-error {
    color: white;
    background: var(--error-color);
}

.popup .options .btn-error:hover {
    transform: translateY(-2px);
}

/* Close button */
.popup .close-btn {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 4.2rem;
    height: 4.2rem;
    border: none;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.6rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    opacity: 0.6;
}

.popup .close-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.15);
}

/* popup */