:root {
    --primary: #005288;
    --secondary: #AAD04D;
    --navy: #005288;
    --blue: #009CDF;
    --lightblue: #DEF2FB;
    --green: #AAD04D;
    --primary-font: 'vag-regular', sans-serif;
    --primary-font-light: 'vag-light', sans-serif;
    --primary-font-bold: 'vag-bold', sans-serif;
    --bs-table-accent-bg: var(--bs-table-hover-bg);
    --bs-table-hover-bg: rgba(0, 0, 0, 0.0);
}

::selection {
    background-color: rgba(0, 156, 223, 0.4)
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    border-radius: 0px;
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--navy);
    }


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 15px;
}

main {
    min-height: 80vh;
}


/* Navbar */
header {
    padding: 15px;
}

.navbar-brand {
    border-color: transparent !important
}

.navbar-nav {
    background-color: rgba(0, 156, 223, 0.13);
    padding: 9px 25px;
    border-radius: 10px;
}

.nav-link {
    font-family: 'vag-regular';
    border-radius: 10px;
    padding-right: 1.2rem !important;
    padding-left: 1.2rem !important;
}

    .nav-link.active {
        background-color: var(--navy);
        color: white !important;
    }

.nav-item.active .nav-link {
    border-radius: 10px;
    background-color: rgba(0, 156, 223, 0.2) !important;
}

.nav-link:not(.active):hover {
    background-color: rgba(0, 156, 223, 0.2);
    transition: 0.05s ease;
}

.nav-item {
    text-align: center;
    padding-left: 2px !important;
    padding-right: 2px !important;
    border-color: transparent !important;
}

.dropdown-menu {
    background-color: #DEF2FB;
    margin-top: 15px !important;
    border: none;
    padding: 10px 10px;
    border-radius: 10px;
    border-color: transparent !important;
}

.dropdown-item {
    text-align: center;
    padding: 10px 20px;
    border-radius: 10px;
    transition: 0.05s ease;
    color: black !important;
    border-color: transparent !important;
}

    .dropdown-item:hover {
        background-color: rgba(0, 156, 223, 0.3);
    }

    .dropdown-item.active {
        background-color: var(--navy);
        color: white !important;
    }

.navbar .logout {
    padding: 0;
    display: inline-flex;
    height: 34px;
    width: 34px;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
}

@media only screen and (max-width: 768px) {
    .navbar-nav {
        margin-top: 20px;
    }

    .navbar-collapse {
        text-align: center;
    }

    .dropdown-menu {
        margin-top: 0 !important;
        border: 1px solid var(--navy);
    }
}

/* --- */
a[href] {
    text-decoration: none;
    color: var(--green);
    border-bottom: 1px solid transparent;
    transition: 0.1s ease;
}

    a[href]:hover {
        border-color: inherit;
    }

a.link-primary {
    color: var(--green);
}

    a.link-primary:hover {
        color: #89b51e;
    }

a.link-secondary {
    color: var(--navy);
}

    a.link-secondary:hover {
        color: black;
    }

/* Backgrounds */
.bg-navy {
    background-color: var(--primary);
}

.bg-blue {
    background-color: var(--blue);
}

/* Text */
.text-blue, .text-primary {
    color: var(--blue) !important;
}

.text-navy, text-secondary {
    color: var(--navy) !important;
}

.text-green, .text-success {
    color: var(--green) !important;
}

.highlight {
    background: #eee;
    padding: 0 5px;
    font-weight: 600;
}

/* Login */
.login {
    height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 160px;
}

.login-logo {
    height: 90px;
    padding: 20px;
    width: 100%;
    object-fit: contain;
    background: white;
}

.login footer {
    position: absolute;
    bottom: 0;
    width: 100vw;
}

/* Footer */
footer {
    padding: 25px 0;
}

    footer .main-link {
        background-color: var(--primary);
        border-radius: 9px;
        padding: 3px 20px;
        width: 250px;
        display: block;
        margin: auto;
    }

    footer a {
        color: white !important;
    }

/* Inputs */
label {
    font-family: var(--primary-font-light);
}

.login input, .login select, .login .form-control {
    width: 450px;
}

input, select, .form-control {
    min-width: 260px;
    max-width: 100%;
    font-family: var(--primary-font);
    border: 1px solid var(--primary);
    padding: 25px 25px;
}

.form-floating {
    width: -moz-fit-content;
    width: fit-content;
}

    .form-floating > .form-control:focus ~ label, .form-floating > .form-control:not(:placeholder-shown) ~ label, .form-floating > .form-select ~ label {
        color: var(--blue)
    }

select {
    background-image: url(../images/icons/down-arrow.svg);
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: 98% 50%;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
}

    select::-ms-expand {
        display: none;
    }

.form-select {
    border-color: black;
}

/* Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: fit-content;
    transition: 0.4s ease;
    font-family: var(--primary-font-bold);
}

    .checkbox-container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

.checkmark {
    position: absolute;
    background: #fff;
    top: 0;
    left: 0;
    border-radius: 5px;
    -moz-border-radius: 5px;
    border: 1px solid black;
    height: 20px;
    width: 20px;
    transition: 0.4s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #ddd;
    transition: 0.4s ease;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #fff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid var(--blue);
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Buttons */
.btn {
    border: 1px solid var(--navy) !important;
    font-family: var(--primary-font);
    border-radius: 100vw;
    padding: 5px 30px;
    width: -moz-fit-content;
    width: fit-content;
}

.btn-primary {
    background-color: var(--green);
    color: black !important;
}

    .btn-primary:hover {
        background-color: #89b51e
    }

.btn-blue {
    background-color: var(--blue);
    border-color: var(--blue) !important;
    color: white !important;
}

    .btn-blue:hover {
        background-color: var(--lightblue);
        color: black !important;
    }

.btn-danger, .btn-secondary {
    color: white !important;
}


.btn-dark {
    background-color: var(--navy);
    color: white !important;
}

    .btn-dark:hover {
        background-color: black;
    }

.btn-sm {
    padding: 1px;
    aspect-ratio: 1 / 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: none !important;
}

    .btn-sm i {
        font-size: 1rem;
    }

.btn.btn-link:hover {
    background: var(--blue);
}

.btn.btn-link.btn-sm {
    padding: 5px;
    color: black;
    background: var(--lightblue);
    aspect-ratio: 1 / 1;
    /* display: inline-block; */
    height: 32px;
    border: none !important;
    text-decoration: none;
}

    .btn.btn-link.btn-sm:hover {
        background: var(--blue);
    }

/* Breadcrumb */
.bread-crumb a + a:before {
    content: "/";
    pointer-events: none;
    color: black !important;
    padding: 0 6px;
    text-decoration: none !important;
    border-bottom: 1px solid white !important;
    pointer-events: none !important;
}

.bread-crumb a {
    text-decoration: none !important;
}

    .bread-crumb a.active {
        color: grey !important;
        text-decoration: none !important;
    }


/* Tables */
table {
    --border-color: #009CDF;
    --border-radius: 12px;
    border-top: none !important;
    border-color: var(--border-color) !important;
    border-collapse: separate;
    border-spacing: 0;
    vertical-align: middle !important;
}

.table > :not(:last-child) > :last-child > * {
    border: none;
}

tbody {
    border: 1px solid var(--border-color) !important;
}

    table th, tbody td {
        border-right: 1px solid var(--border-color);
        padding: 12px 15px !important;
    }

.table-hover tbody tr {
    transition: 0.2s ease !important;
}

    .table-hover tbody tr:hover {
        background-color: rgba(0, 156, 223, 0.02);
    }

tbody tr:first-child td {
    border-top: 1px solid var(--border-color);
}

tbody td:first-child {
    border-left: 1px solid var(--border-color);
}

tbody tr:first-child td:first-child {
    border-top-left-radius: var(--border-radius);
}

tbody tr:first-child td:last-child {
    border-top-right-radius: var(--border-radius);
}

tbody tr:last-child td:first-child {
    border-bottom-left-radius: var(--border-radius);
}

tbody tr:last-child td:last-child {
    border-bottom-right-radius: var(--border-radius);
}

.table-hover > tbody > tr:hover {
    --bs-table-accent-bg: rgba(0,0,0,0) !important;
    color: var(--bs-table-hover-color);
}

/* Page styling */
.filter-container {
    padding: 15px;
    justify-content: center;
    border: 1px solid var(--green);
    width: -moz-fit-content;
    width: fit-content;
    margin: auto;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.search-box {
    width: 500px;
    max-width: 88dvw;
}

@media only screen and (max-width: 768px) {
    .filter-container {
        display: grid;
        width: 100%;
    }
}

/* Dashboard */
.dashboard-item {
    border: 1px solid #009cdf;
    border-radius: 10px;
    height: 550px;
}

.dashboard-contacts {
    max-height: 550px;
}

.dashboard-posts {
    max-height: 550px;
}

.post-icon {
    height: 45px;
    height: 45px;
    object-fit: contain;
}
.post-icon.sm {
    height: 35px;
    height: 35px;
    object-fit: contain;
}

.dashboard-counter {
    padding: 5px 20px;
    background: var(--lightblue);
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
}

.card {
    border-color: var(--primary);
    border-radius: 17px;
    padding: 20px;
}

    .card:hover {
        background: rgba(1,1,1,0.01)
    }

    .card.task-warning {
        border-color: orange;
    }

    .card.task-success {
        border-color: var(--green);
    }

    .card.task-primary {
        border-color: var(--blue);
    }

.task-status:before {
    content: "";
    height: 16px;
    width: 16px;
    margin-right: 8px;
    background: black;
    border-radius: 100%;
    display: inline-block;
    position: relative;
    top: 3px;
}

.task-status {
    font-weight: bold;
}


    .task-status.task-success {
        color: var(--green);
    }

        .task-status.task-success:before {
            background: var(--green);
        }

    .task-status.task-primary {
        color: var(--blue);
    }

        .task-status.task-primary:before {
            background: var(--blue);
        }

    .task-status.task-warning {
        color: darkorange;
    }

        .task-status.task-warning:before {
            background: darkorange;
        }

    .task-status.task-danger {
        color: #bb2d3b;
    }

        .task-status.task-danger:before {
            background: #bb2d3b;
        }

/* Pills */
.rounded-pill {
    background: var(--lightblue);
    padding: 2px 15px;
    display: inline-block;
}

.tag-item {
    padding: 4px 20px;
    word-break: break-all;
    margin-top: 10px;
    transition: 0.3s ease;
    line-height: 23px;
    --radius: 15px;
    border-radius: var(--radius);
    -moz-border-bottom-left-radius: var(--radius);
    -webkit-border-bottom-left-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    -moz-border-bottom-right-radius: var(--radius);
    -webkit-border-bottom-right-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
    -moz-border-top-right-radius: var(--radius);
    -webkit-border-top-right-radius: var(--radius);
    border-top-right-radius: var(--radius);
    -webkit-box-decoration-break: clone;
    -o-box-decoration-break: clone;
    box-decoration-break: clone;
    word-break: break-word;
    background-color: transparent;
    /* text-transform: uppercase; */
    letter-spacing: 1.4px;
    font-size: 0.8rem;
    font-weight: bold;
    background-color: var(--lightblue);
    color: var(--navy) !important;
    display: inline-block
}

    .tag-item:hover {
        text-decoration: none !important;
        border-bottom: none !important;
        background-color: var(--blue); 
    }
