﻿/* Common Styles */
:root {
    /* Colors */
    --brand-red: rgb(237,40,40);
    --brand-gray: rgb(202,202,202);
    --shadow-color-light: rgba(88,88,88,0.2);
    --shadow-color-med: rgba(88,88,88,0.4);
    --light-gray: rgba(236,236,236,1);
    --dark-gray: rgba(109,109,109,1);
    --white: rgb(255, 255, 255);
    --black: rgb(26,31,54);
    /* Fonts */
    --fontFamily: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
    --fontWeightLight: 300;
    --fontWeightNormal: 400;
    --fontWeightBold: 500;
    --fontWeightThick: 800;
    /* Effects */
    --button-shadow: 0px 2px 5px 0px var(--shadow-color-med);
    --button-shadow-hover: 0px 4px 5px 0px var(--shadow-color-med);
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--fontFamily);
    font-weight: var(--fontWeightNormal);
    box-sizing: border-box;
    background-color: var(--white);
    color: var(--black);
}

* {
    box-sizing: border-box;
}

main {
    height: 100%;
}

/* Index ( Login ) Page Styles */
.section--login {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.container--form_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header--one {
    font-size: 30px;
    font-weight: var(--fontWeightNormal);
    color: var(--black);
    margin: 0 0 32px 0;
}

/* Dashboard Page Styles */
.main--dashboard {
    display: grid;
    grid-template: auto 1fr / 300px 1fr;
    height: 100%;
}

.nav--nav_top {
    grid-row: 1 / 2;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--shadow-color-light);
    padding: 0px 16px;
}

.section--dashboard {
    height: 100%;
    width: 100%;
    background-color: var(--light-gray);
}

/* Sidebar Styles */
.container--sidebar {
    grid-row: 2 / -1;
    grid-column: 1 / 2;
    background-color: var(--white);
    display: grid;
    grid-template: 80px 1fr / 1fr;
    padding: 0px;
    justify-items: start;
    align-items: start;
}

.header--sidebar {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    padding: 18px 0px;
}

.image--sidebar_image {
    width: 60px;
    height: 40px;
}

.heading--brand_name {
    font-size: 24px;
    font-weight: var(--fontWeightThick);
    color: var(--brand-red);
    margin: 0 0 0 16px;
}

.heading--sidebar_action {
    margin: 0 16px;
    font-size: 20px;
    font-weight: var(--fontWeightBold);
    color: var(--black);
    align-self: center;
}

.container--sidebar_actions {
    width: 100%;
    display: grid;
    grid-row-gap: 24px;
}


/* Dashboard Main Content Styles */
.container--content_wrapper {
    display: grid;
    grid-template: auto 1fr / 1fr;
    background-color: var(--light-gray);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    grid-row-gap: 8px;
}

.container--main_content {
    display: grid;
    grid-template: 80px 1fr / 1fr;
    background-color: var(--light-gray);
    width: 100%;
    height: 100%;
    margin: 0 auto;
    max-width: 1100px;
}

.nav--main_content_actions {
    height: 80px;
    display: grid;
    grid-template: 1fr / 1fr;
    justify-items: end;
    align-items: center;
    padding: 0 16px;
    background-color: var(--white);
}

.header--main_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
}

.header--list_title {
    font-size: 24px;
    margin: 0;
    font-weight: var(--fontWeightBold);
    color: var(--black);
}

.header--error_title {
    font-size: 24px;
    margin: 0;
    font-weight: var(--fontWeightBold);
    color: var(--black);
}

.header--error_details {
    font-size: 20px;
    margin: 0;
    font-weight: var(--fontWeightBold);
    color: var(--black);
}

.container--list {
    padding: 0 16px 16px 16px;
}

.page-link {
    color: var(--black);
}

.page-item.active .page-link {
    color: var(--white);
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.path--sort_icon {
    fill: var(--dark-gray);
}

#previewImage {
    margin-bottom: 0.5rem;
    max-width: 400px;
    max-height: 100px;
}

#previewImage.previewImageCat {
    max-width: 100px;
}