:root {
    --primary: #2C3639;
    --dark-primary: #152125;
    --secondary: #3F4E4F;
    --accent1: #A27B5C;
    --dark-accent1: #72553c;
    --accent2: #DCD7C9;

    --transition1s: all 0.1s ease;
    --transition2s: all 0.2s ease;
    --transition3s: all 0.3s ease;
    --transition4s: all 0.4s ease;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
}

/* JPL BRAND */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent1 {
    background-color: var(--accent1) !important;
}

.bg-accent2 {
    background-color: var(--accent2) !important;
}

.text-primary {
    color: var(--primary) !important;
    transition: var(--transition4s);
}

.text-primary:hover,
.text-primary:focus {
    color: var(--dark-primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-accent1 {
    color: var(--accent1) !important;
}

.text-accent2 {
    color: var(--accent2) !important;
}

.btn-accent1 {
    background-color: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
}

.btn-accent1:hover,
.btn-accent1:active {
    background-color: var(--dark-accent1) !important;
    border-color: var(--accent1) !important;
    color: var(--accent2) !important;
}

.btn-accent1:disabled {
    background-color: var(--accent1);
    border-color: var(--accent1);
    color: #fff;
    cursor: not-allowed;
}

.form-control:focus {
    box-shadow: 0 0 8px var(--secondary);
    border-color: var(--secondary);
}

.text-justify {
    text-align: justify;
}


/* HAMBURGER */
.hamburger {
    border: none;
    outline: none;
    outline: none;
    background: none;
    display: none;

    position: relative;
    width: 25px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.hamburger::after,
.hamburger::before,
.hamburger .bar {
    content: '';
    display: block;
    width: 100%;
    height: 4px;
    background-color: var(--accent2);
    border-radius: 5px;
    margin: 6px 0;
    transition: 0.8s ease;
}

.hamburger.is-active::before {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.is-active::after {
    transform: rotate(45deg) translate(-8px, -10px);
}

.hamburger.is-active .bar {
    opacity: 0;
}

/* mobile-nav */
.mobile-nav {
    display: none;
    background-color: var(--primary);
    z-index: 2;
    top: -100%;
    font-size: 20px;
    font-weight: 500;
    list-style: none;
    padding: 0 20px;

    transition: var(--transition4s);
}

.mobile-nav.is-active {
    top: 53.5px !important;
}

.mobile-nav ul li {
    margin: 10px;
}

.mobile-nav ul li a {
    display: block;
    text-decoration: none;
    color: var(--accent2);
}

.mobile-nav ul li.active a {
    text-decoration: underline;
}


/* CAROUSEL */
#bg-slider {
    padding: 0;
}

.carousel-item {
    background-repeat: no-repeat;
    background-position: right center;
    background-size: cover;
}

/* FORM */
.validation-form {
    height: 100vh;
    min-width: 360px !important;
    background-color: rgba(220, 215, 201, 0.716);
    backdrop-filter: blur(15px) saturate(168%);

    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
}

.validation-form .logo-container {
    width: 130px;
    height: 130px;
    overflow: hidden;
    object-fit: cover;
}

.validation-form .card-title {
    color: var(--primary) !important;
}

.validation-form .form-wrapper {
    height: 100vh;
    overflow-y: auto;
}


/* SIDEBAR */
.sidebar-container {
    height: 100%;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 -5px 10px #5c5c5c;
    z-index: 3;
}

.sidebar .sidebar-logo {
    margin-bottom: 20px;
}

.sidebar .sidebar-logo img {
    width: 40px;
}

.sidebar ul {
    margin: 0;
}

.sidebar .icons li {
    position: relative;
    font-size: 22px;
    transition: var(--transition4s);
}

.sidebar .icons li a {
    transition: var(--transition4s);
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.sidebar .icons li:not(:first-child) {
    margin-top: 15px;
}

.sidebar .icons li:hover,
.sidebar .icons li.active {
    background-color: var(--accent2);
    border-radius: 5px;
}

.sidebar .icons li:hover a,
.sidebar .icons li.active a {
    color: var(--primary) !important;
}

.sidebar-label {
    --bs-popover-max-width: 200px;
    --bs-popover-body-padding-x: 10px;
    --bs-popover-body-padding-y: 10px;
    background-color: var(--accent1) !important;
}

.sidebar-label .popover-arrow::after {
    border-right-color: var(--accent1) !important;
}

.sidebar-label .popover-body {
    color: #fff;
}


/* INBOX */
.inbox {
    margin-left: 60px;
}

.inbox .page-title {
    font-size: 25px;
}

.inbox .message-container {
    height: calc(100vh - 53.5px);
    overflow-y: auto;
}

.inbox .message-container .profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.inbox .message-container .username {
    font-weight: 600;
    font-size: 22px;
    max-width: 50%;
}

.inbox .message-container .last-message {
    max-width: 70%;
}

.inbox .message {
    cursor: pointer;
}

.inbox .message-box:hover {
    background-color: var(--accent2);
}

.inbox .message-box:hover .message {
    background-color: var(--accent2);
}

.ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.inbox .btn-delete {
    flex-shrink: 0;
}



/* CONVERSATION */
.convo-wrapper {
    display: flex;
}

.convo-wrapper .inbox-section {
    width: 40%;
    max-width: 530px;
}

.convo-wrapper .convo-section {
    flex-grow: 1;
    box-shadow: 0 0 10px #5c5c5c;
}

.convo-wrapper .convo-section .name-container {
    box-shadow: 0 0 10px #5c5c5c;
}

.convo-wrapper .convo-section .name-container .pic-container {
    flex-shrink: 0;
    width: 37px;
    height: 37px;
    border-radius: 50%;
    overflow: hidden;
}

.convo-wrapper .convo-section .convo-messages {
    height: calc(100vh - 56px - 50px);
    overflow-y: auto;
}

.convo-wrapper .convo-section .convo-messages .message-details {
    border-radius: 8px;
    width: fit-content;
    max-width: 70%;

    position: relative;
}

.convo-wrapper .convo-section .convo-messages .message-details:last-child {
    margin-top: 8px;
}

.convo-wrapper .convo-section .convo-messages .message-details:not(:first-child) {
    margin-bottom: 5px;
}

.convo-wrapper .convo-section .convo-messages .message-details.left {
    background-color: var(--primary);
    color: #fff;
    border-bottom-left-radius: 0;
    margin-right: auto;
}

.convo-wrapper .convo-section .convo-messages .message-details.right {
    background-color: #fff;
    color: var(--dark-primary);
    border-bottom-right-radius: 0;
    margin-left: auto;
}

/* .convo-wrapper .convo-section .convo-messages .message-details .date-time-sent {
    position: absolute;
    background-color: #5c5c5c;
    font-size: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 185px;
    text-align: center;
    display: none;
}

.convo-wrapper .convo-section .convo-messages .message-details:hover .date-time-sent {
    display: block;
}

.convo-wrapper .convo-section .convo-messages .message-details.left .date-time-sent {
    left: 103%;
}

.convo-wrapper .convo-section .convo-messages .message-details.right .date-time-sent {
    right: 103%;
} */

.convo-wrapper .convo-section .form-container .message-input {
    flex-grow: 1;
    resize: none;
    height: 42px;
}

.convo-wrapper .convo-section .form-container .message-input:focus {
    border-color: var(--dark-primary) !important;
}

.convo-wrapper .convo-section .form-container .btn-send {
    flex-shrink: 0;
}

.date-time-sent {
    --bs-popover-max-width: 200px;
    --bs-popover-body-padding-x: 5px;
    --bs-popover-body-padding-y: 5px;
}

/* USERS */
.users {
    margin-left: 60px;
}

.users .page-title {
    font-size: 25px;
}

.users .users-wrapper {
    height: calc(100vh - 53.5px);
    overflow-y: auto;
}

.users .user-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.users .user-box {
    cursor: pointer;
}

.users .user-box:hover {
    background-color: var(--accent2);
}

.users .user-info h4 {
    font-size: 20px;
}



/* MEDIA SCREENS */
@media (max-width: 768px) {

    /* conversation */
    .convo-wrapper .inbox-section {
        display: none;
    }

    .convo-wrapper .convo-section {
        margin-left: 60px;
    }
}

@media (max-width: 576px) {
    .hamburger {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .sidebar {
        display: none;
    }

    /* inbox */
    .inbox {
        margin-left: 0;
    }

    /* conversation */
    .convo-wrapper .convo-section {
        margin-left: 0;
    }

    .convo-wrapper .back-btn {
        display: block !important;
    }

    /* users */
    .users {
        margin-left: 0;
    }
}