﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    width: 100%;
    height: 100%;    
    background-repeat: no-repeat; 
    background-size: cover;
}

app {
    margin: 0;
    width: 100%;
    height: 100%;
}

form {
    margin: 0;
    width: 100%;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(3, 39, 103) 0%, #468ee0 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
    .dialog-container {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.5);
        z-index: 2000;
        display: flex;
        animation: dialog-container-entry 0.2s;
    }

    @keyframes dialog-container-entry {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .dialog {
        background-color: white;
        box-shadow: 0 0 12px rgba(0,0,0,0.6);
        display: flex;
        flex-direction: column;
        z-index: 2000;
        align-self: center;
        margin: auto;
        width: 700px;
        max-height: calc(100% - 3rem);
        animation: dialog-entry 0.4s;
        animation-timing-function: cubic-bezier(0.075, 0.820, 0.165, 1.000);
    }

    @keyframes dialog-entry {
        0% {
            transform: translateY(30px) scale(0.95);
        }

        100% {
            transform: translateX(0px) scale(1.0);
        }
    }

    .dialog-title {
        background-color: #444;
        color: #fff2cc;
        padding: 1.3rem 2rem;
    }

        .dialog-title h2 {
            color: white;
            font-size: 1.4rem;
            margin: 0;
            font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
            text-transform: uppercase;
            line-height: 1.3rem;
        }

    .dialog-body {
        flex-grow: 1;
        padding: 0.5rem 3rem 1rem 0;
    }

    .dialog-buttons {
        height: 4rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        background-color: #eee;
        padding: 0 1rem;
    }

    .dialog-body > div {
        display: flex;
        margin-top: 1rem;
        align-items: center;
    }

    .dialog-body label {
        text-align: right;
        width: 200px;
        margin: 0 1.5rem;
    }

    .dialog-body input, .dialog-body select {
        flex-grow: 1;
        width: unset;
    }

    .dialog-body .size-label {
        min-width: 110px;
        text-align: right;
    }

    .dialog .toppings {
        text-align: center;
        display: block;
        padding-left: 4rem;
    }

    .dialog .topping {
        display: inline-block;
        background-color: #a04343;
        color: white;
        padding: 0.2rem 1rem;
        border-radius: 2rem;
        margin: 0.4rem 0.3rem;
        font-weight: 700;
    }

    .dialog .topping-price {
        font-weight: 100;
        font-size: 0.8rem;
    }

    .dialog .topping-price::before {
            content: 'Q';
    }

    .residencial-cards {
        display: grid;
        grid-template-columns: repeat(auto-fill, 20rem);
        grid-gap: 2rem;
        justify-content: center;
        padding-left: 0;
    }

        .residencial-cards > li {
            height: 10rem;
            position: relative;
            background-size: cover;
            border-radius: 0.5rem;
            list-style-type: none;
            box-shadow: 0 3px 4px rgba(0,0,0,0.4);
            transition: 0.1s ease-out;
        }

            .residencial-cards > li:hover {
                transform: scale(1.02);
            }

    .residencial-info {
        border-radius: 0.5rem;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        position: absolute;
        background: linear-gradient(rgba(0,0,0,0.7) 30%, rgba(0,0,0,0) 80%);
        padding: 1rem 1rem;
        color: #fff2cc;
        cursor: pointer;
        text-shadow: 0 2px 2px rgba(0,0,0,0.5);
        line-height: 1.25rem;
    }

        .residencial-info .title {
            color: white;
            font-size: 1.4rem;
            display: block;
            margin: 0.2rem 0 0.4rem 0;
            font-family: 'Bahnschrift', Arial, Helvetica, sans-serif;
            text-transform: uppercase;
        }

        .residencial-info .price {
            position: absolute;
            bottom: 0.5rem;
            right: 1rem;
            font-size: 1.5rem;
            font-weight: 700;
            padding: 0rem 0.7rem;
            border-radius: 4px;
            background-color: #08af08;
            color: white;
            line-height: 2rem;
        }

    .residencial::before {
        content: 'Q';
        font-weight: 300;
        font-size: 1.2rem;
        margin-right: 0.2rem;
    }

    .user-info {
        margin-left: auto;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
    }

        .user-info img {
            margin-right: 0.7rem;
            width: 2.6rem;
        }

        .user-info .username {
            display: block;
            font-weight: 700;
            line-height: 0.7rem;
            margin-top: 0.5rem;
            color: dodgerblue;
            font-size: 1rem;
        }

        .user-info a {
            color: dodgerblue;
            font-size: 0.8rem;
        }

        .user-info button.sign-out {
            color: dodgerblue;
            font-size: 0.8rem;
            padding: 0;
        }

}

.status--pending {
    border-radius: 0.2rem;
    background-color: red;
    padding: 0.2rem 1rem;
    text-align: center;
    background-color: #fff0c2;
    color: #a68b00;
}

.status--paid {
    border-radius: 0.2rem;
    background-color: red;
    padding: 0.2rem 1rem;
    text-align: center;
    background-color: #c8e6c9;
    color: #388e3c;
}

.status--unpaid {
    border-radius: 0.2rem;
    background-color: red;
    padding: 0.2rem 1rem;
    text-align: center;
    background-color: #ffcdd2;
    color: #c62828;
}

.status--commit {
    border-radius: 0.2rem;
    background-color: blue;
    padding: 0.2rem 1rem;
    text-align: center;
    background-color: #4472C4;
    color: white;
}

.matertable {
    background-color: #2fa4e7;
    color: #fff;
    box-shadow: 0 5px 10px #e1e5ee;
}

.childtable {
    background-color: #d5edfa;
    color: #1c628b;
}

