/* Shared */
:root {
    --backgroundtransition: 300ms;
    --border: #EFEFEF;
    --darkgrey: #707070;
    --grey: #E2E2E2;
    --heliosblue: #091826;
    --heliosdarkpurple: #004A89;
    --heliosdarkpurplehover: #0459A3;
    --heliospurple: #0E8AD4;
    --heliospurplehover: #3CB0F2;
    --lightgrey: #FAFAFA;
    --lightshadow: 0px 10px 20px rgba(0, 0, 0, 0.02);
    --mediumgrey: #ADADAD;
    --red: #F95657;
    --strongshadow: 0px 7px 7px rgba(0, 0, 0, 0.1);
    --white: #FFFFFF;
}

body {
    background: var(--white);
    font-family: "Bilo";
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    padding: 0;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


button, .button {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--heliospurple);
    border-radius: 0.2rem;
    color: var(--heliospurple);
    cursor: pointer;
    display: flex;
    font-family: "Bilo";
    font-size: 11px;
    font-weight: 600;
    gap: 5px;
    height: 30px;
    padding: 1px 6px;
    text-align: left;
    text-transform: uppercase;
    transition: all 200ms;
    transition-property: background, border-color;
    width: 100%;
}

button:hover, .button:hover {
    background: var(--heliospurplehover);
    border: 1px solid var(--heliospurplehover);
    color: var(--white);
    transition-property: background, border-color;
}

@font-face {
    font-display: block;
    font-family: 'icomoon';
    font-style: normal;
    font-weight: normal;
    src:  url(../assets/fonts/icomoon.ttf);
}

[class^="icon-"], [class*=" icon-"] {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    font-family: 'icomoon' !important;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    text-transform: none;
}

.checkbox {
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 5%;
    vertical-align: middle;
    border: 0.5px solid var(--mediumgrey);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    cursor: pointer;
    position: relative;
}

.checkbox:checked {
    background-color: var(--heliospurple);
    border-color: var(--heliospurple);
}
.checkbox:checked::after {
    content: "\e910";
    font-family: "icomoon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
}

.icon-add:before {
    content: "\e900";
}

.icon-admin:before {
    content: "\e901";
}

.icon-camera:before {
    content: "\e902";
}

.icon-colour:before {
    content: "\e903";
}

.icon-date:before {
    content: "\e904";
}

.icon-deal:before {
    content: "\e905";
}

.icon-delete:before {
    content: "\e906";
}

.icon-edit:before {
    content: "\e907";
}

.icon-engine:before {
    content: "\e908";
}

.icon-fuel:before {
    content: "\e909";
}

.icon-logout:before {
    content: "\e90a";
}

.icon-mileage:before {
    content: "\e90b";
}

.icon-owners:before {
    content: "\e90c";
}

.icon-seats:before {
    content: "\e90d";
}

.icon-star:before {
    content: "\e90e";
}

.icon-starfill:before {
    content: "\e90f";
}

.icon-tick:before {
    content: "\e910";
}

.icon-transmission:before {
    content: "\e911";
}

.icon-user:before {
    content: "\e912";
}
.icon-vehicle:before {
    content: "\e913";
}

h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}
h2 {
    font-size: 27px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}
h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}
h4 {
    display: inline;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
}
.pad_1 {
    padding: 15px;
}
.secondary_button {
    background: var(--heliospurple);
    color: white;
}
.secondary_button:hover {
    background: var(--heliospurplehover);
}
.subtitle {
    color: var(--mediumgrey);
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
}
.direction {
    text-transform: uppercase;
    font-weight: 200;
}
/* Container */
.app_container {
    display: flex;
    height: 100vh;
    width: 100vw;
}
.app_flex_left {
    min-width: 60px;
    transition: min-width 200ms;
}
.app_flex_left.open {
    min-width: 214px;
    transition: min-width 200ms;
}
.app_flex_right {
    background: var(--lightgrey);
    flex: auto;
    overflow-x: scroll;
    position: relative;
    z-index: 1;
    -webkit-animation: fadein 1s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 1s; /* Firefox < 16 */
    -ms-animation: fadein 1s; /* Internet Explorer */
    -o-animation: fadein 1s; /* Opera < 12.1 */
    animation: fadein 1s;
}
.console_topbar {
    align-items: center;
    background: var(--white);
    box-shadow: var(--lightshadow);
    display: flex;
    height: 46px;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.topbar_right {
    align-items: center;
    display: flex;
    gap: 16px;
}
.topbar_menu_dropdown {
    background: var(--white);
    box-shadow: var(--strongshadow);
    display: none;
    position: absolute;
    right: 0px;
    top: 76px;
    z-index: 3;
}
.topbar_menu_dropdown ul, .topbar_menu_dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
}
.topbar_menu_dropdown ul li a {
    align-items: center;
    color: var(--heliosblue);
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 10px;
    padding: 20px 50px 20px 20px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--backgroundtransition);
}
.topbar_menu_dropdown ul li a:hover {
    background: var(--grey);
    transition: background var(--backgroundtransition);
}
.topbar_menu_dropdown ul li a span:first-child {
    font-size: 15px;
}
.topbar_menu {
    text-decoration: none;
}
.topbar_menu div {
    background-color: var(--mediumgrey);
    border: none;
    border-radius: 20px;
    padding: 2px;
    display: inline-block;
    margin: 2px 0px;
}
.console_main {
    display: flex;
    position: relative;
    width: 100%;
}
/* Main Menu */
.console_menu {
    background: var(--heliosblue);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.console_logo {
    display: block;
    padding: 20px 13px;
    width: 100%;
}
.console_logo .logo_icon {
    height: 34px;
    width: 34px;
}
.console_logo .logo_text {
    height: 34px;
}
.console_nav {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.console_nav li a {
    align-items: center;
    background: transparent;
    border-radius: 0.2rem;
    color: var(--white);
    cursor: pointer;
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 0.5rem;
    padding: 0.5rem 0.6rem;
    position: relative;
    text-decoration: none;
    transition: background 200ms ease-in-out;
}
.console_nav li a:hover {
    background: var(--heliospurple);
}
.console_nav li a.active{
    background: var(--heliospurple);
}
.console_nav a span:first-child {
    font-size: 25px;
}
.nav_label {
    display: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
}
.nav_label.open {
    display: block;
}
.console_nav_spacer {
    border-bottom: 1px solid var(--darkgrey);
    margin: 0.5rem;
}
/* Administration View */
.view_menu {
    width: 280px;
}
.view_menu .tab {
    align-items: center;
    background: var(--lightgrey);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    display: flex;
    height: 80px;
    justify-content: space-between;
    padding: 0px 20px 0 34px;
    transition: background var(--backgroundtransition);
}
.view_menu .tab:hover {
    cursor: pointer;
}
.view_menu .tab:not(.active):hover {
    background: var(--grey);
    transition: background var(--backgroundtransition);
}
.arrow_right {
    border-bottom: 1px solid var(--mediumgrey);
    border-right: 1px solid var(--mediumgrey);
    height: 11px;
    rotate: -45deg;
    width: 11px;
}
.arrow_down {
    border-bottom: 1px solid var(--heliospurple);
    border-right: 1px solid var(--heliospurple);
    height: 6px;
    rotate: +45deg;
    width: 6px;
    margin-bottom: 3px;
}

.view_menu .active {
    background: var(--grey);
}
.view_container {
    width: 100%;
}
.view {
    display: none;
}
.view.active {
    display: block;
}
.username span {
    font-size: 20px;
    text-transform: uppercase;
}
.username span:first-child {
    font-weight: 700;
}
.username span:last-child {
    font-weight: 400;
}
/* Listing Table */
.listing_table {
    border-collapse: collapse;
    width: 100%;
}
.listing_table tr td:last-child {
    width: 170px;
}
.listing_table tr {
    border: 1px solid var(--border);
}
.listing_table td, .listing_table th {
    border-collapse: collapse;
    padding: 20px;
}
.listing_table th {
    font-weight: 300;
    height: 60px;
    text-align: left;
    text-transform: uppercase;
}
.listing_table td {
    background: white;
    font-weight: 300;
    height: 80px;
}
.listing_vehicle span:first-child {
    font-weight: 400;
}
.listing_vehicle span:last-child {
    font-weight: 400;
}
/* User Table */
.user_table {
    border-collapse: collapse;
    width: 100%;
}
.user_table tr td:last-child {
    width: 170px;
}
.user_table tr {
    border: 1px solid var(--border);
}
.user_table td, .user_table th {
    border-collapse: collapse;
    padding: 0 20px;
}
.user_table th {
    font-weight: 300;
    height: 60px;
    text-align: left;
    text-transform: uppercase;
}
.user_table td {
    background: white;
    font-weight: 300;
    height: 80px;
}
.user_table .role_icons {
    display: flex;
    font-size: 24px;
    gap: 10px;
}
/* TEST */
.menu_toggle {
    align-items: center;
    display: flex;
    height: 45px;
    justify-content: flex-start;
    margin: 0.5rem 0.5rem 0.5rem 1rem;
    position: relative;
    transition-duration: 300ms;
}
.menu_toggle .icon {
    background-color: var(--white);
    border-radius: 4px;
    height: 4px;
    position: absolute;
    transform: scale(0.7);
    transition-duration: 300ms;
    width: 30px;
}
.menu_toggle .icon:before {
    background-color: var(--white);
    border-radius: 4px;
    content: "";
    height: 4px;
    position: absolute;
    top: -10px;
    transition-duration: 300ms;
    width: 30px;
}
.menu_toggle .icon:after {
    background-color: var(--white);
    border-radius: 4px;
    content: "";
    height: 4px;
    position: absolute;
    top: 10px;
    transition-duration: 300ms;
    width: 30px;
}
.menu_toggle.open .icon {
    background: transparent;
    transition-duration: 300ms;
}
.menu_toggle.open .icon:before {
    transform: rotateZ(45deg) scaleX(1.25) translate(6.5px, 6.5px);
}
.menu_toggle.open .icon:after {
    transform: rotateZ(-45deg) scaleX(1.25) translate(6px, -6px);
}
.menu_toggle:hover {
    cursor: pointer;
}
/* Edit User */
.edit_user {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--white);
    border: 1px solid var(--border);
}
.edit_user > div {
    margin: 20px;
}
.user_details {
    flex-grow: 1;
}
.user_details_form, .user_access_form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 21px;
    margin: 30px 0;
}
.user_access_form {
    grid-template-columns: repeat(4, 1fr);
}
.user_access_form label {
    display: flex;
    align-items: center;
    gap: 20px;
}
.form_container {
    width: 100%;
}
.form_container .delete {
    display: flex;
    align-items: center;
    gap: 20px;
}
.form_title {
    margin-bottom: 10px;
}
.form_input input, .form_input select {
    padding: 4px 6px;
    margin: 0;
    border: 0.5px solid var(--mediumgrey);
    font-family: Bilo;
    font-size: 16px;
    font-weight: 300;
    transition: outline 300ms;
    outline: 1px solid rgba(255, 255, 255, 0);
}
.form_input input {
    width: calc(100% - 12px);
}
input:focus-visible {
    outline: 1px solid var(--heliospurple);
    transition: outline 300ms;
}

.form_input select {
    width: 100%;
}
.vertical_buttons {
    width: 170px;
    gap: 10px;
    display: flex;
    flex-direction: column;
}
/* Vehicle Summary */
.vehicle_title {
    align-items: center;
    display: flex;
    gap: 10px;
}
.vehicle_summary_image{
    height: 72px;
    width: 72px;
    object-fit: cover;
    border-radius: 50%;
}
.vehicle_title_details {
    display: flex;
    flex-direction: column;
}
.vehicle_title_details span {
    font-size: 20px;
    text-transform: uppercase;
}
.vehicle_title_details span:first-child {
    font-weight: 400;
}
.vehicle_title_details span:last-child {
    font-weight: 700;
}
.vehicle_summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-size: 20px;
    width: 700px;
}
.vehicle_summary > div {
    padding: 0 15px;
}
.summary_title {
    align-items: center;
    display: flex;
    gap: 5px;
}
.summary_title span:first-child {
    font-size: 20px;
}
.summary_detail {
    margin-left: 25px;
    text-transform: uppercase;
}
.vehicle_summary > div:not(:nth-child(4n-3)) {
    border-left: 1px solid var(--grey);
}
.listing_tools {
    height: 100%;
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.listing_alert {
    color: var(--red);
}
.listing_published_dropdown {
    background: var(--white);
    box-shadow: var(--strongshadow);
    display: none;
    position: absolute;
    right: 0px;
    top: 30px;
    width: 100%;
    z-index: 3;
}
.listing_published_dropdown ul, .listing_published_dropdown li {
    list-style: none;
    margin: 0;
    padding: 0;
    text-decoration: none;
}
.listing_published_dropdown ul li a {
    align-items: center;
    color: var(--heliosblue);
    display: flex;
    font-weight: 600;
    gap: 10px;
    padding: 8px 6px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background var(--backgroundtransition);
}
.listing_published_dropdown ul li a:hover {
    background: var(--grey);
    transition: background var(--backgroundtransition);
}
.listing_published {
    justify-content: space-between;
    position: relative;
}
/* Vehicle Listing */
.sidebar_layout {
    display: flex;
    gap: 10px;
    margin: 20px;
}
.vehicle_details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px
}
.vehicle_details_card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
}
.vehicle_details_form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 21px;
    margin: 30px 0;
}
.vehicle_options_form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 21px;
    margin: 30px 0;
}

.options_delete {
    font-size: 26px;
    color: var(--mediumgrey);
    display: block;
    cursor: pointer;
}
.sidebar_columns {
    display: flex;
    gap: 20px;
    width: 100%;
    height: 100%;
}
.vehicle_details_sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 300px;
}
.vehicle_details_sidebar .vertical_buttons {
    width: 100%;
}
.sidebar_card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    text-transform: uppercase;
}
.sidebar_card h3 {
    display: inline;
}
.visibility {
    display: flex;
    gap: 4px;
    align-items: center;
}
.published {
    border: 1.2px solid var(--heliospurple);
    border-radius: 20px;
    color: var(--heliospurple);
    font-size: 14px;
    padding: 2px;
}
.horizontal_divider {
    border-bottom: 1px solid var(--border);
    margin: 20px 0;
}
.horizontal_spacer {
    margin: 20px 0;
}
.listing_status {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 10px;

}
.listing_status div span:last-child {
    font-weight: 500;
}
.price_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.price_form h4 {
    font-size: 14px;
}
.card_title {
    align-items: center;
    display: flex;
    justify-content: space-between;
}
#add_photo {
    cursor: pointer;
}
.photo_gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.thumbnail {
    position: relative;
}
.thumbnail_delete {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
}
.thumbnail_image {
    display: block;
    height: 150px;
    width: 100%;
    object-fit: cover;
}
.thumbnail.featured::before {
    position: absolute;
    content: 'Featured Photo';
    color: var(--darkgrey);
    font-size: 12px;
    font-weight: 600;
    margin: 5px 0;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.5);
    padding: 8px;
}
.photo_edit {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}
.add_photo {
    display: flex;
    height: 150px;
    width: 100%;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border);
}
.add_photo img {
    height: 80px;
    object-fit: cover;
}
.sidebar_card input[type="checkbox"] {
    display: block;
    position: relative;
    appearance: none;
    width: 35px;
    height: 22px;
    background: var(--grey);
    border-radius: 50px;
    cursor: pointer;
    transition: 0.2s;
}
.sidebar_card input:checked[type="checkbox"] {
    background: var(--heliospurple);
}
.sidebar_card input[type="checkbox"]::after {
    position: absolute;
    content: "";
    width: 18px;
    height: 18px;
    top: 2px;
    left: 2px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
    transition: 0.2s;
}
.sidebar_card input:checked[type="checkbox"]::after {
    left: calc(50% - 2px);
    background: var(--white);
}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    justify-content: flex-end;
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.8); /* Black w/ opacity */
}
  
  /* Modal Content/Box */
.modal_content {
    position: relative;
    background-color: #fefefe;
     /* 15% from the top and centered */
    padding: 80px;
    width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.modal_content button {
      width: 30%;
}
  
  /* The Close Button */
.close {
    color: #aaa;
    display: block;
    font-size: 28px;
    text-align: right;
    line-height: 9px;
}
.modal_content div {
      width: 100%;
}
  
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Leads */

.lead_summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    font-size: 20px;
    width: 700px;
}
.lead_summary > div {
    padding: 0 15px;
}
.lead_summary > div:not(:nth-child(3n-2)) {
    border-left: 1px solid var(--grey);
}

/* Opportunity */

.opportunity_summary {
    background: var(--white);
    box-shadow: var(--lightshadow);
    display: flex;
    padding: 20px;
    justify-content: space-between;
}

.opportunity_table {
    width: 100%;
}

.opportunity_table tr td {
    padding: 4px 0;
    width: 50%;
}

.opportunity_table th {
    font-weight: 500;
    text-align: left;
}

.opportunity_table tr td:first-child, .opportunity_table th {
    text-transform: uppercase;
}

.opportunity_table tr td:last-child {
    font-weight: 500;
    text-transform: initial;
}

.opportunity_columns {
    align-items: flex-start;
    display: flex;
    gap: 20px
}