﻿/*
 * Zylinc Design Guideline Colors
*/

:root {
    --zylinc-dark-blue: #2b3340;
    --zylinc-light-blue: #3d4552;
    --zylinc-orange: rgb(255, 130, 0);
    --zylinc-light-grey: #eaeaea;
}

/*
 * Base Styles
 */

body {
    padding-bottom: 20px;
}

.h1 {
    font-size: 2em;
}

a {
    color: var(--zylinc-orange);
}

.svg-icon {
    width: 20px;
    height: 20px;
}

.draft:before {
    content: "Draft";
    color: var(--zylinc-light-blue);
    font-size: 6rem;
    position: absolute;
    text-transform: uppercase;
    font-weight: bold;
    transform: rotate(-25deg);
    padding-left: 2rem;
    padding-top: 2rem;
    opacity: 0.4;
}

/*
 * Buttons and Links
 */

.btn-primary, .btn-secondary, .btn-danger {
    padding: 16px 30px;
    border: none !important;
}

    .btn-primary,
    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:visited {
        background-color: var(--zylinc-orange) !important;
        color: white;
    }

        .btn-primary:hover {
            background-color: var(--zylinc-orange);
            color: white;
            opacity: 0.8;
        }

    .btn-secondary,
    .btn-secondary:hover,
    .btn-secondary:active,
    .btn-secondary:visited {
        color: var(--zylinc-dark-blue) !important;
        background-color: var(--zylinc-light-grey);
    }


div.sign-in-out a {
    background-color: var(--zylinc-orange);
    border: none;
    color: white;
    padding: 16px 30px;
}

    div.sign-in-out a:hover {
        background-color: var(--zylinc-orange);
        border: none;
        color: white;
        opacity: 0.8;
    }

/*
 * Layout Elements
 */

div.container {
    background-color: white;
    margin-bottom: 1.5rem;
}

div.sign-in-out {
    text-align: center;
    margin-top: 30px;
}

ul.sign-in-out-labels {
    font-size: 0.8em;
    margin-top: 40px;
    margin-left: 16px;
}

.action-buttons a, .action-buttons a:hover {
    padding: 10px 30px
}


/*
 * Table Styles
 */

.table-overview {
    margin-bottom: 1.5rem;
}

table.table-overview:not(.table) {
    /* Preserve styling of tables before the updated template guide */
    /* The built-in bootstrap .table will do the same */
    width: 100%;
}

.table-overview td, .table-overview th {
    vertical-align: top;
}

    .table-overview td:first-child, .table-overview th:first-child {
        width: 30%;
        padding-right: 20px;
        
        /* Ensure that the first column aligns with the design of the box */
        --bs-gutter-x: 1.5rem;
        padding-left: calc(var(--bs-gutter-x)* .5);
    }

    .table-overview td:last-child, .table-overview th:last-child {
        /* Ensure that the first column aligns with the design of the box */
        --bs-gutter-x: 1.5rem;
        padding-right: calc(var(--bs-gutter-x)* .5);
    }

.table-overview-list td:first-child {
    width: 30px;
}

.dataoverview h2 {
    font-size: 1em;
    margin-top: 20px;
    background-color: var(--zylinc-dark-blue);
    color: var(--zylinc-light-grey);
    border-radius: 6px;
    padding: 10px 10px;
}

    .dataoverview h2 a {
        display: inline-block;
        position: relative;
        right: 0;
        float: right;
        margin-left: 1rem;
        margin-right: 0.25rem;
    }

.dataoverview table {
    font-size: 1em;
}

    .dataoverview table td {
        padding: 5px 0px;
    }

.dataoverview .form-switch-readonly .form-check-input, table .form-switch-readonly .form-check-input {
    width: 3rem;
    height: 1rem;
}



/*
 * Sidebar Styles
 */

.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 48px 0 0; /* Adjust for navbar height */
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--zylinc-dark-blue) !important;
    border-right-color: var(--zylinc-light-blue);
    padding-top: 80px;
    color: var(--zylinc-light-grey);
}

.sidebar-alert {
    margin-left: 5%;
    width: 90%;
    font-size: 0.8em;
}

.sidebar-versioninfo {
    margin: 8px;
    font-size: 0.8em;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable content if viewport is shorter than content */
}

.sidebar .nav-link {
    font-weight: 500;
    color: var(--zylinc-light-grey);
}

    .sidebar .nav-link .bi {
        margin-right: 4px;
        color: var(--zylinc-light-grey);
    }

    .sidebar .nav-link:hover {
        margin-right: 4px;
        color: var(--zylinc-orange);
    }

    .sidebar .nav-link.active {
        color: var(--zylinc-orange);
    }

        .sidebar .nav-link:hover .bi,
        .sidebar .nav-link.active .bi {
            color: var(--zylinc-orange);
        }

/*
 * Navbar Styles
 */

.navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    background-color: var(--zylinc-dark-blue) !important; /* Overrides for navbar brand */
    color: var(--zylinc-light-grey);
}

    .navbar-brand:hover {
        color: var(--zylinc-orange);
    }

.navbar .navbar-toggler {
    top: .25rem;
    right: 1rem;
    border-color: var(--zylinc-orange);
    color: var(--zylinc-orange);
}

/*
 * Form Controls
 */

.form-check-input {
    width: 1.6em;
    height: 1.6em;
}

.form-check-label {
    margin-left: 10px;
    padding-top: 6px;
}

input[type="checkbox"]:checked {
    background-color: var(--zylinc-orange) !important;
    border-color: var(--zylinc-orange) !important;
}

input[readonly="readonly"] {
    cursor: default;
    border: none;
}

.easyboxbox pre {
    margin-bottom: 0;
}

.easyboxbox .btn-primary {
    background-color: var(--zylinc-light-blue) !important;
    padding: 2px 10px;
    font-size: 0.8em;
    margin: 0 !important;
}

/*
 * Responsive Adjustments
 */
@media (max-width: 768px) {
    main {
        padding-top: 16px;
    }

    header {
        background-color: var(--zylinc-dark-blue) !important;
        box-shadow: none;
    }

    .navbar-brand {
        box-shadow: none !important;
    }

    .navbar-toggler {
        margin-top: 13px;
    }

    .sidebar {
        top: 68px;
        padding-top: 0px !important;
    }
}

@media (min-width: 992px) {
    .col-lg-2 {
        flex: 0 0 auto;
        width: 250px;
    }

    .offset-lg-2 {
        margin-left: 250px !important;
    }
}
