﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.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;
}

.ai-main-image {
    max-width: 1920px;
    height: auto;
}

.ai-text-image {
    max-width: 990px;
    height: auto;
}


.dl-usage-header-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 200px 400px;
    grid-row-gap: 0.5rem;
    row-gap: 0.5rem;
}

.jan-pos {
    grid-area: jan
}
.feb-pos {
    grid-area: feb
}
.mar-pos {
    grid-area: mar
}
.apr-pos {
    grid-area: apr
}
.may-pos {
    grid-area: may
}
.jun-pos {
    grid-area: jun
}
.jul-pos {
    grid-area: jul
}
.aug-pos {
    grid-area: aug
}
.sep-pos {
    grid-area: sep
}
.oct-pos {
    grid-area: oct
}
.nov-pos {
    grid-area: nov
}
.dec-pos {
    grid-area: dec
}

.dl-usage-grid {
    display: grid;
    grid-template-areas: "jan feb mar apr may jun jul aug sep oct nov dec";
    grid-row-gap: 0.5rem;
    row-gap: 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;
    }

    .dl-usage-grid {
        width: 75%;
    }
}

@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;
    }
}

@media (max-width: 767.98px) {
    .drag-drop-zone {
        width: 560px;
        height: 217px;
    }

    .ai-main-image {
        width: 576px;
        height: auto;
    }

    .ai-text-image {
        width: 495px;
        height: auto;
    }

    .dl-usage-grid {
        width: 100%;
        grid-template-areas:
            "jan feb mar apr may jun"
            "jul aug sep oct nov dec";
    }

}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .drag-drop-zone {
        width: 560px;
        height: 217px;
    }
    .ai-main-image {
        width: 768px;
        height: auto;
    }
    .ai-text-image {
        width: 495px;
        height: auto;
    }
    .dl-usage-grid {
        width: 100%;
        grid-template-columns: repeat(auto-fill, 90px);
        grid-template-areas: "jan feb mar apr may jun" "jul aug sep oct nov dec";
    }

}


@media (min-width: 1200px) and (max-width: 1919.98px) {
    .ai-main-image {
        width: 90%;
        height: auto;
    }
    .ai-text-image {
        width: 742px;
        height: auto;
    }

    .dl-usage-grid {
        grid-template-columns: repeat(auto-fill, 70px);
    }

}

@media (min-width: 1920px) and (max-width: 2239.98px) {
    .ai-main-image {
        width: 90%;
        height: auto;
    }
    .ai-text-image {
        width: 990px;
        height: auto;
    }

    .dl-usage-grid {
        grid-template-columns: repeat(auto-fill, 70px);
    }

}

@media (min-width: 2240px) {
    .ai-main-image {
        width: 1200px;
        height: auto;
    }

    .ai-text-image {
        width: 990px;
        height: auto;
    }
    .dl-usage-grid {
        grid-template-columns: repeat(auto-fill, 70px);
    }

}

