﻿:root {
    --white: #fff;
    --primary-text: #212529;
    --light-text: #74788d;
    --blue: #5d78ff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    height: 100%;
    font-size: 13px;
}

body {
    margin: 0;
    font-family: Poppins, Helvetica, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: var(--primary-text);
    text-align: left;
    background-color: var(--white);
    height: 100%;
}

.app {
    display: grid;
    height: 100%;
    grid-template-columns: 250px 1fr;
}

.main {
    background-color: #f2f3f8;
    display: flex;
    flex-direction: column;
}

/*********************************
 * Blazor
 ********************************/
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/*********************************
 * Toasters
 ********************************/
#toast-container > div {
    opacity: 1;
}

/*********************************
 * Links
 ********************************/
.link {
    text-decoration: none;
    display: inline-block;
    position: relative;
    color: var(--light-text);
}

    .link:hover {
        opacity: 1;
        color: var(--blue);
        text-decoration: none;
    }

.link--white {
    opacity: 0.8;
    color: var(--white);
}

    .link--white:hover {
        color: var(--white);
    }

.link--blue {
    opacity: 0.8;
    color: var(--blue);
}

.link::after {
    display: block;
    content: '';
    position: absolute;
    bottom: 0;
    top: 1rem;
    left: 0;
    width: 0%;
    transition: width 0.4s ease;
}

.link:hover:after {
    width: 100%;
    opacity: 0.4;
    border-bottom: 1px solid var(--blue);
}

.link--white:hover:after {
    border-bottom: 1px solid var(--white);
}

/*********************************
 * Actions links
 ********************************/
.action-link {
    color: var(--light-text);
    cursor: pointer;
}

    .action-link:hover {
        color: var(--primary-text);
    }

/*********************************
 * Icons
 ********************************/
.icon-svg:hover {
    filter: brightness(.8);
}

/*********************************
 * Inputs
 ********************************/
.form-field {
    display: block;
    width: 100%;
    height: calc(1.5em + 1.3rem + 2px);
    padding: 0.65rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--light-text);
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #e2e5ec;
    border-radius: 4px;
    font-family: Poppins, Helvetica, sans-serif;
}

.form-check {
    padding-top: 0.75rem;
}

textarea.form-field {
    height: 120px;
}

.form-field-date {
    width: 100%;
}

    .form-field-date .ui-calendar {
        padding: 0.65rem 1rem;
        height: auto;
        border: 1px solid #e2e5ec;
        box-shadow: none;
    }

    .form-field-date input {
        color: var(--light-text);
    }

.login-content .form-field {
    border: none;
    height: 50px;
    margin-top: 1.25rem;
    background-color: rgba(247, 247, 249, 0.7);
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.input-group {
    display: flex;
}

    .input-group > .form-field:not(:last-child) {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
    }

.input-group-append {
    padding: 0.65rem 1rem;
    background-color: #e9e9e9;
    border: 1px solid #e2e5ec;
    border-radius: 0 4px 4px 0;
    text-decoration: none;
    color: var(--light-text);
}

    .input-group-append:hover {
        background-color: #d9d9d9;
        cursor: pointer;
        text-decoration: none;
        color: var(--light-text);
    }

.required:after {
    content: "*";
    color: red;
}

/*********************************
 * Forms
 ********************************/
.validation-message {
    color: red;
    padding-top: 5px;
    font-size: 0.95rem;
}

.confirmation-message {
    padding-top: 5px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 16px;
}

.form-actions {
    margin-top: 16px;
    display: flex;
    float: right;
}

    .form-actions button {
        margin-left: 8px;
    }

.grid-col-2 {
    grid-area: span 1 / span 2;
}

.grid-col-3 {
    grid-area: span 1 / span 3;
}

.grid-col-4 {
    grid-area: span 1 / span 4;
}

.grid-col-6 {
    grid-area: span 1 / span 6;
}

.grid-col-8 {
    grid-area: span 1 / span 8;
}

.grid-col-12 {
    grid-area: span 1 / span 12;
}

@media (max-width: 1024px) {
    .grid-col-4,
    .grid-col-6,
    .grid-col-8,
    .grid-col-12 {
        grid-area: span 1 / span 12;
    }
}

/*********************************
 * Buttons
 ********************************/
.btn {
    font-family: Poppins, Helvetica, sans-serif;
    cursor: pointer;
    height: 40px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.25rem;
    border: none;
    min-width: 100px;
}

.btn-primary {
    color: var(--white);
    background-color: #5867dd;
    border-color: #5867dd;
}

    .btn-primary:hover {
        background-color: #384ad7;
        border-color: #2e40d4;
    }

.btn-secondary {
    color: #595d6e;
    background-color: #e9e9e9;
}

    .btn-secondary:hover {
        background-color: #d9d9d9;
    }

.btn-elevate {
    box-shadow: 0px 4px 16px 0px rgba(88, 103, 221, 0.15);
}

    .btn-elevate:hover {
        box-shadow: 0px 9px 16px 0px rgba(88, 103, 221, 0.25) !important;
    }

/*********************************
 * Login
 ********************************/
.login-main {
    display: grid;
    height: 100%;
    grid-template-columns: 1fr 600px;
    width: 100%;
}

.login-side {
    background-image: url(../images/bg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    padding: 3rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.login-logo img {
    width: 64px;
}

.login-fluid {
    flex: 1 0 auto;
    align-items: center;
    display: flex;
}

.login-title {
    font-size: 2rem;
    font-weight: 500;
}

.login-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin: 2.5rem 0 3.5rem 0;
    opacity: 0.9;
}

.login-info {
    display: flex;
    justify-content: space-between;
}

    .login-info .link:not(:last-child) {
        margin-right: 2rem;
    }

.login-content {
    flex: 1 auto;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.login-form {
    width: 400px;
    margin: auto;
}

.login-head {
    font-size: 1rem;
    font-weight: 500;
    text-align: right;
    color: var(--light-text);
}

.login-signin {
    text-align: center;
    margin: 4rem 0;
}

    .login-signin h3 {
        font-size: 2rem;
        color: var(--light-text);
        font-weight: 500;
    }

.login-actions {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-footer {
    padding-top: 4rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .login-main {
        grid-template-columns: auto;
        grid-template-rows: auto;
    }
}

@media (max-width: 512px) {
    .login-form {
        width: 100%;
    }
}

/*********************************
 * Sidebar
 ********************************/
.sidebar {
    background-color: #1e1e2d;
    color: var(--white);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    background-color: #1a1a27;
    height: 65px;
    padding: 0 20px;
    font-size: 2em;
    font-weight: 400;
    display: flex;
    align-items: center;
}

.sidebar-title {
    flex-grow: 1;
}

.sidebar-toggler {
    display: none;
    cursor: pointer;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: 15px;
}

.sidebar-menu li a {
    text-decoration: none;
    padding: 10px 25px;
    color: white;
    opacity: 0.8;
    display: flex;
    align-items: center;
}

    .sidebar-menu li a:hover,
    .sidebar-menu li a.active {
        opacity: 1;
        background-color: #1a1a27;
        transition: opacity 0.4s ease;
        transition: background-color 0.4s ease;
    }

.sidebar-menu .menu-icon {
    font-size: 1.6rem;
    padding-right: 16px;
    display: flex;
}

    .sidebar-menu .menu-icon g [fill] {
        transition: fill 0.4s ease;
        fill: #898bB4;
    }

.sidebar-menu li a:hover > .menu-icon g [fill],
.sidebar-menu li a.active > .menu-icon g [fill] {
    fill: #5d78ff;
}

.sidebar-menu .menu-section {
    text-transform: capitalize;
    color: #6c6e8f;
    padding: 25px 25px 10px 25px;
}

.sidebar-menu .logout {
    display: none;
    margin-top: 24px;
}

/*********************************
 * Header
 ********************************/
.header {
    background-color: white;
    height: 65px;
    border-bottom: 1px solid #eff0f6;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.header-title {
    flex-grow: 1;
    font-size: 1.6rem;
    font-weight: 400;
    color: #434349;
}

.header-item {
    padding: 10px;
}

    .header-item span {
        color: #959cb6;
    }

        .header-item span span {
            color: #6c7293;
            font-weight: 600;
        }

.header-menu span {
    padding: 10px;
    border-radius: 4px;
    display: flex;
    transition: background-color 0.4s ease;
}

    .header-menu span g [fill] {
        fill: #5d78ff;
    }

    .header-menu span:hover {
        background-color: rgba(77,89,149,.06);
        cursor: pointer;
    }

/*********************************
 * Content
 ********************************/
.content {
    flex-grow: 1;
    padding: 24px;
}

    .content h3 {
        font-size: 1.6em;
        font-weight: 400;
        margin: 0;
        margin-bottom: 16px;
    }

/*********************************
 * Footer
 ********************************/
.footer {
    height: 65px;
    background-color: white;
    padding: 0 30px;
    display: flex;
    align-items: center;
}

.footer-about {
    flex-grow: 1;
}

.footer-link {
    padding-left: 20px;
}

/*********************************
 * Panel
 ********************************/
.panel {
    display: flex;
    flex-direction: column;
    background-color: white;
    box-shadow: 0 0 13px 0 rgba(82,63,105,.05);
    border-radius: 4px;
}

.panel-header {
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 1px solid #ebedf2;
}

.panel-body {
    padding: 16px;
}

/*********************************
 * Table
 ********************************/
.table {
    width: 100%;
    border-spacing: 0;
}

    .table th,
    .table td {
        padding: 10px;
        border-bottom: 1px solid #f0f3ff;
    }

    .table tbody tr:hover {
        background-color: rgba(77,89,149,.06);
    }

    .table tr .show-hover {
        visibility: hidden;
    }

    .table tr:hover .show-hover {
        visibility: visible;
    }

.table-empty {
    padding: 1rem 0;
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

    .pagination ul {
        display: flex;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .pagination li {
        margin-right: 3px;
    }

.page-link {
    height: 2.25rem;
    min-width: 2.25rem;
    padding: .5rem;
    border-radius: 3px;
    font-size: 1rem;
    font-weight: 500;
    display: block;
    text-align: center;
    color: #93a2dd;
    transition: all 0.3s;
}

    .page-link.disabled {
        opacity: .3;
    }

    .page-link:hover:not(.disabled),
    .page-link.active {
        background-color: #5d78ff;
        color: #fff;
        cursor: pointer;
    }

/*********************************
 * Modal
 ********************************/
.modal {
    background-color: white;
}

.modal-header {
    display: flex;
    padding: 12px 20px;
    border-bottom: 1px solid #f0f3ff;
    align-items: center;
}

    .modal-header i {
        font-size: 1.4em;
    }

.modal-title {
    flex-grow: 1;
    font-size: 1.2em;
    font-weight: 500;
}

.modal-body {
    padding: 25px 20px;
}

.modal-footer {
    padding: 0 20px 12px 20px;
    float: right;
}

/*********************************
 * Utils
 ********************************/
.float-right {
    float: right;
}

.cursor-pointer {
    cursor: pointer;
}

.mb-1 {
    margin-bottom: 0.5em;
}

.mb-2 {
    margin-bottom: 1em;
}

.mb-3 {
    margin-bottom: 2em;
}

/*********************************
 * Map
 ********************************/
.map {
    width: 100%;
    height: 320px;
}

/*********************************
 * Mobile
 ********************************/
@media (max-width: 1024px) {
    .app {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .app {
        display: flex;
        flex-direction: column;
    }

    .main {
        flex-grow: 1;
    }

    .content {
        padding: 12px;
    }

    .header {
        display: none;
    }

    .sidebar-menu.collapse {
        display: none;
    }

    .hide-mobile {
        display: none;
    }

    .sidebar-toggler {
        display: block;
    }

    .sidebar-menu .logout {
        display: list-item;
    }
}

/*********************************
 * Utils
 ********************************/
.image-selector {
    width: 100%;
}

    .image-selector img {
        width: 100%;
        display: block;
        height: 270px;
        border-radius: 10px;
        cursor: pointer;
        object-fit: contain;
        border-width: 4px;
        border-color: grey;
        border-style: dashed;
        margin-bottom: 1rem;
    }

    .image-selector input {
        display: none;
    }
