:root {
    --ms-py: 0.85rem;
    --text-color: rgba(0, 0, 0, 0.7);
    --text-dark: #000;
    --heading: var(--color-one);
    --light-bg: #eff6f3;
    --color-one: #00223c;
    --bg-one: #00223c;
    --color-two: var(--color-light-blue);
    --color-three: #00bf58;
    --color-four: #005025;
    --color-five: #31795a;
    --color-blue: #9fdcf1;
    --color-light-blue: #9fdcf1;
    --color-light-gray: #f0f5f3;
    --border-color-1: #00223c;
}

.dragArea:first-child {
    padding-left: 0px;
}

.dragArea {
    margin-top: 10px;
    min-height: 10px;
    padding-left: 20px;
    padding-bottom: 10px;
}

.dragArea li {
    list-style: none;
    cursor: move;
}

.validation-errors {
    position: fixed;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    background-color: white;
    z-index: 999999;
    border-radius: 5px;
    width: 25rem;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.dark .validation-errors {
    background-color: rgb(31, 41, 55);
}

.validation-errors-user {
    position: fixed;
    top: 2rem;
    right: 2rem;
    box-shadow: 3px 3px 8px 1px #00000063;
    padding: 13px 20px;
    background-color: #ff0000e0;
    z-index: 999999;
    border-radius: 8px;
}

.error-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.error-list p {
    color: white;
    margin-top: 2px;
    margin-bottom: 0;
}

.validation-errors div p {
    margin-top: 1rem;
    color: rgb(255, 0, 0);
}

.slide-right-enter-active,
.slide-right-leave-active {
    transition-duration: 0.4s;
    transition-property: opacity, transform;
    transition-timing-function: ease;
}

.slide-right-enter-from,
.slide-right-leave-to {
    transform: translateX(100%);
    opacity: 0;
}

.ck.ck-editor__main > .ck-editor__editable {
    min-height: 300px;
}

.dark .ck.ck-editor__main > .ck-editor__editable {
    --ck-color-base-background: rgb(30, 41, 59);
    background: var(--ck-color-base-background);
}

.dark .ck.ck-editor__main > .ck-editor__editable:not(.ck-focused) {
    --ck-color-base-border: rgb(103, 123, 142);
    border: 1px solid var(--ck-color-base-border);
}

.dark .ck-reset_all :not(.ck-reset_all-excluded *),
.ck.ck-reset,
.ck.ck-reset_all {
    background: rgb(15, 23, 42);
}

.dark .ck-reset_all :not(.ck-reset_all-excluded *),
.ck.ck-reset_all {
    color: #eff6f3;
}

.ck.ck-label.ck-voice-label {
    display: none;
}

.ai-ck-section .ck.ck-editor__main > .ck-editor__editable {
    min-height: 430px;
    max-height: 500px;
}

.ai-ck-section .ck.ck-toolbar {
    border: none;
}

.ai-ck-section .ck.ck-content {
    border: none;
}

.ai-ck-section .ck.ck-content.ck-focused {
    border: none;
}

.ai-ck-section
    .ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable) {
    border: none;
    box-shadow: none;
}

.ai-ck-section .ck.ck-balloon-panel.ck-balloon-panel_visible .ck.ck-powered-by {
    display: none;
}

.c-input-label {
    display: block;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-one);
    margin-bottom: 10px;
}

.max-h-26-r {
    overflow-y: auto;
    max-height: 26rem;
}

.max-h-22-r {
    overflow-y: auto;
    max-height: 22rem;
}

.company-i-pt-3 {
    padding-top: 3rem;
}

.fade-enter-active,
.fade-leave-active {
    transition-duration: 0.2s;
    transition-property: opacity;
    transition-timing-function: linear;
}

.fade-enter-from,
.fade-leave-to {
    opacity: 0;
}

.c-modal-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.205);
    display: grid;
    place-items: center;
}

.c-modal-content {
    width: 33%;
}

.c-modal-content h6 {
    font-size: 1.5rem;
    font-weight: 600;
}

.c-modal-content p {
    font-size: 1.1rem;
    font-weight: 400;
}

.c-modal-content .exclamation {
    width: 100px;
    height: 100px;
    border-radius: 50px;
    border: 5px solid rgb(248, 191, 142);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.c-modal-content .exclamation span {
    font-size: 3rem;
    color: rgb(248, 191, 142);
}

.c-model-btn-container {
    display: flex;
    justify-content: center;
    column-gap: 0.5rem;
}

@media (max-width: 768px) {
    .c-modal-content {
        width: 90%;
    }
}

.text-fs-sm {
    font-size: 0.85rem;
}

.expertSectionImg {
    height: 400px;
    width: 280px;
    object-fit: cover;
}

.filter-currency {
    position: relative;
    margin-left: 10px;
}

.filter-currency .nice-select {
    min-width: 150px;
    height: 25px;
    line-height: 22px;
    font-size: 11px;
    padding: 0 10px 0 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.filter-currency .nice-select:before {
    right: 10px;
    top: 10%;
}

.filter-currency .nice-select.open:before {
    transform: rotate(180deg);
    top: 16%;
}

.filter-currency .nice-select .list {
    padding: 0;
}

.filter-currency .nice-select .option {
    font-size: 0.6rem;
    line-height: 1.5rem;
}

.payment-container {
    background-color: rgb(235, 255, 255);
}

.payment-container .gateways {
    padding: 0 12px;
}

.job-list-one,
.job-list-two,
.job-list-three {
    position: relative;
    overflow: hidden;
}

.job-list-one.favourite::before,
.job-list-two.favourite::before,
.job-list-three.favourite::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--color-one);
    top: -30px;
    left: -30px;
    transform: rotate(45deg);
}

.job-list-one.favourite::after,
.job-list-two.favourite::after,
.job-list-three.favourite::after {
    content: "\f586";
    font-family: bootstrap-icons !important;
    position: absolute;
    color: #fff;
    font-size: 14px;
    top: 2px;
    left: 7px;
}

.spinner_btn_img {
    height: 25px;
}

.no-data-found-img {
    max-height: 100px;
}

.category-section-img {
    max-height: 100px;
}

section.candidates-profile .cadidate-avatar img.rounded-circle,
.candidate-avatar-rounded img {
    height: 80px;
    width: 80px;
    object-fit: cover;
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(0, 0%, 100%);
    }

    100% {
        background-color: hsl(0, 0%, 95%);
    }
}

.skeleton-line {
    background: rgb(232, 232, 232);
    width: 100%;
    min-height: 0.7rem;
    border-radius: 8px;
}

.emoji-backdrop {
    width: 100vw;
    height: 100vh;
    background: transparent;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

.m-emoji-container {
    position: absolute;
    bottom: 3rem;
    left: 5.5rem;
    z-index: 1001;
}

.paginate-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
}

.paginate-link {
    padding: 5px 12px 7px 12px;
    font-size: 14px;
    border-radius: 5px;
}

.paginate-link-null {
    color: #8e8e8e;
}

.paginate-link-active {
    color: inherit;
    text-decoration: none;
}

.paginate-link-active:hover {
    background-color: #8b5cf6;
    color: white;
}

.paginate-link-active:focus {
    border-color: #6b44c7;
}

.paginate-link-active-bg {
    background-color: var(--color-one);
    color: white;
}

.dark .multiselect-dark {
    --ms-bg: rgba(23, 22, 22, 0.1);
    --ms-tag-bg: rgba(15, 23, 42, 0.6);
    --ms-dropdown-bg: rgb(30, 41, 59);
}

.dark .multiselect-tags-search {
    background-color: rgb(30, 41, 59);
}

.dark .multiselect-dark [type="text"]:focus {
    --tw-ring-color: rgba(23, 22, 22, 0);
    outline: 0px solid var(--tw-ring-color);
}

.ai-template-multiselect {
    --ms-py: 0.5rem;
}

.fs-7 {
    font-size: 0.8rem;
}

.candidate-card-bg {
    border-radius: 20px;
    padding: 20px;
    background: #eff6f3;
}

.review-avatar-img {
    max-height: 60px;
}

.loader-img {
    height: 25px;
}

.main-page-wrapper .header-bg-color {
    background-color: white;
}

/* Companies page - remove background wrapper */
.main-page-wrapper.orange.companies-page {
    background-image: none !important;
    background-color: transparent !important;
}

/* Fix card heights for uniform appearance */
.candidate-profile-card.grid-layout {
    height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
}

.candidate-profile-card.grid-layout .cadidate-avatar {
    flex-shrink: 0;
}

.candidate-profile-card.grid-layout .candidate-name {
    flex-shrink: 0;
}

.candidate-profile-card.grid-layout .candidate-post {
    flex-shrink: 0;
}

.candidate-profile-card.grid-layout .cadidate-skills {
    flex-shrink: 0;
    max-height: 40px;
    overflow: hidden;
}

.candidate-profile-card.grid-layout .row {
    flex-shrink: 0;
}

.candidate-profile-card.grid-layout .pt-25 {
    margin-top: auto;
}

.main-page-wrapper .inner-banner-colors {
    background-color: white;
    color: rgb(11, 19, 15);
}

.main-page-wrapper .inner-breadcrumb-colors {
    background-color: white;
    color: rgb(11, 19, 15);
    padding-bottom: 80px;
}

.main-page-wrapper .inner-banner-one.inner-banner-colors h2,
.main-page-wrapper .inner-banner-one.inner-banner-colors p {
    color: rgb(0, 0, 0);
}

.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors h2,
.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors li,
.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors .post-date {
    color: rgb(0, 0, 0);
}

.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors li a:hover {
    color: rgb(0, 0, 0);
}

.main-page-wrapper .inner-banner-one h2,
.main-page-wrapper .inner-banner-one p {
    color: rgb(0, 0, 0);
}

.main-page-wrapper
    .inner-banner-one.inner-breadcrumb-colors
    .share-buttons
    li
    a {
    background-color: rgb(4, 4, 4);
}

.main-page-wrapper
    .inner-banner-one.inner-breadcrumb-colors
    .candidate-profile-card
    * {
    color: rgb(0 0 0);
}

.main-page-wrapper
    .inner-banner-one.inner-breadcrumb-colors
    .cadidate-skills
    li,
.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors .cv-download-btn {
    background-color: rgba(70, 70, 70, 0.8);
    color: #f8f8f8;
}

.main-page-wrapper .inner-banner-one.inner-breadcrumb-colors .save-btn {
    background-color: rgba(216, 216, 216, 0.8);
}

.main-page-wrapper
    .inner-banner-one.inner-breadcrumb-colors
    .candidate-profile-card
    .candidate-name {
    color: rgb(6, 6, 6);
}

.main-page-wrapper .inner-banner-one .candidate-profile-card .candidate-name {
    color: rgb(255, 255, 255);
}

.w-60px {
    width: 60px;
}

.p-70px {
    padding: 70px 0;
}

.h-25px {
    height: 25px;
}

.select-input-degree {
    padding: 14px 10px;
}

.m-h-40px {
    max-height: 40px;
}

.b-radius-30 {
    border-radius: 30px;
}

.none {
    display: none;
}

/* Theme Settings */
#homepage h6 {
    margin-top: 20px;
    padding: 10px 0;
    text-align: center;
    border-radius: 10px 10px 0 0;
    font-weight: bold;
}

#homepage h6:first-child,
#homepage h6:last-child {
    margin-top: unset;
}

#homepage h6 + div {
    padding: 10px;
    border-radius: 0 0 10px 10px;
}

.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(0, 0%, 100%);
    }

    100% {
        background-color: hsl(0, 0%, 95%);
    }
}

.skeleton-line {
    background: rgb(232, 232, 232);
    width: 100%;
    min-height: 0.7rem;
    border-radius: 8px;
}

.chart-filter-area a {
    border-radius: 15px;
    font-size: 10pt;
    padding: 5px 15px;
}

.chart-filter-area a.active {
    background-color: var(--color-one);
    color: white;
}

.navbar .dropdown-menu:before {
    content: "";
}
.table-responsive.lang table {
    table-layout: fixed !important;
    border-collapse: collapse !important;
}
.table-responsive.lang table td {
    word-wrap: break-word; /* Enable breaking of long words */
    word-break: break-word; /* Compatibility */
    white-space: normal; /* Allow text to wrap */
}

.modal-image-zoom-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh);
    max-height: calc(100vh);
}

/* ============================================
   MODERN MESSAGE LIST STYLES
   ============================================ */

/* Message List Container */
.message-list-modern {
    flex: 1;
    overflow-y: auto;
    min-height: 300px;
}

/* Message Item */
.message-item-modern {
    display: block;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.message-item-modern:hover {
    background-color: #f8f9fa;
}

.message-item-modern.active {
    background-color: #e8f4f8;
    border-left: 3px solid #00223c;
}

.message-item-modern.unread {
    background-color: #f0f7ff;
}

.message-item-modern.unread:hover {
    background-color: #e3f0ff;
}

/* Avatar - Small 40px */
.message-avatar-sm {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.message-avatar-sm img {
    width: 40px !important;
    height: 40px !important;
    object-fit: cover;
}

/* Unread Indicator */
.unread-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background-color: #00223c;
    border: 2px solid #fff;
    border-radius: 50%;
}

/* Message Name */
.message-name {
    font-size: 0.9rem;
    max-width: 150px;
}

/* Message Date */
.message-date {
    font-size: 0.75rem;
}

/* Message Preview */
.message-preview-sm {
    font-size: 0.8rem;
    max-width: 100%;
}

/* ============================================
   MODERN MESSAGE COMPOSE OFFCANVAS
   ============================================ */

.compose-mail-offcanvas-modern {
    width: 400px !important;
    max-width: 90vw;
}

.compose-mail-offcanvas-modern .offcanvas-header {
    background-color: #00223c;
    color: #fff;
}

.compose-mail-offcanvas-modern .offcanvas-header .btn-close {
    filter: brightness(0) invert(1);
}

/* ============================================
   MESSAGE CARD BOX MODERN
   ============================================ */

.card-box-modern {
    min-height: 500px;
}

.message-wrapper-modern {
    min-height: 500px;
}

.message-sidebar-container {
    background-color: #fafafa;
}

.message-sidebar-modern {
    background-color: #fff;
}

/* ============================================
   CHAT CONTAINER MODERN
   ============================================ */

.chat-container-modern {
    height: calc(100vh - 200px);
    min-height: 500px;
}

.chat-card-modern {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Chat Header */
.chat-header-modern {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.chat-avatar-container {
    position: relative;
}

.chat-avatar-lg {
    width: 48px;
    height: 48px;
    border: 2px solid #00223c;
}

.online-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid #fff;
    border-radius: 50%;
}

.chat-user-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #00223c;
}

.chat-view-profile {
    font-size: 0.8rem;
    color: #00223c;
    text-decoration: none;
    transition: color 0.2s;
}

.chat-view-profile:hover {
    color: #00bf58;
    text-decoration: underline;
}

/* Chat Messages Area */
.chat-messages-area {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-y: auto;
    padding: 20px;
}

.messages-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Message Row */
.message-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.message-sent {
    margin-left: auto;
    flex-direction: row-reverse;
}

.message-received {
    margin-right: auto;
}

.message-avatar-sm {
    width: 32px;
    height: 32px;
    min-width: 32px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Message Bubble */
.message-bubble {
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
}

.message-sent .message-bubble {
    background: linear-gradient(135deg, #00223c 0%, #003a5c 100%);
    color: #fff;
    border-bottom-right-radius: 6px;
}

.message-received .message-bubble {
    background: #fff;
    color: #1f2937;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Message Attachments */
.message-attachments {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.message-received .message-attachments {
    border-top-color: #e5e7eb;
}

.attachment-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.2s;
}

.message-sent .attachment-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.message-sent .attachment-badge:hover {
    background: rgba(255, 255, 255, 0.3);
}

.message-received .attachment-badge {
    background: #f3f4f6;
    color: #374151;
}

.message-received .attachment-badge:hover {
    background: #e5e7eb;
}

/* Message Time */
.message-time {
    font-size: 0.7rem;
    margin-top: 6px;
    opacity: 0.7;
    text-align: right;
}

.message-received .message-time {
    color: #6b7280;
}

/* Chat Input Area */
.chat-input-area {
    padding: 16px 20px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.blocked-message {
    padding: 16px;
    background: #fef2f2;
    border-radius: 12px;
    color: #dc2626;
}

/* Attachments Preview */
.attachments-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 8px;
    font-size: 0.85rem;
}

.attachment-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-remove {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: #6b7280;
    transition: color 0.2s;
}

.attachment-remove:hover {
    color: #dc2626;
}

/* Input Row */
.input-row {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.input-wrapper {
    position: relative;
}

.message-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 24px;
    font-size: 0.95rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s;
    min-height: 48px;
    max-height: 120px;
    background: #fafafa;
}

.message-input:focus {
    border-color: #00223c;
    background: #fff;
}

.message-input::placeholder {
    color: #9ca3af;
}

/* Input Actions */
.input-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    color: #4b5563;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #e5e7eb;
    color: #00223c;
}

.send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    background: linear-gradient(135deg, #00223c 0%, #003a5c 100%);
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    transition: all 0.2s;
}

.send-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 34, 60, 0.3);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Emoji Picker Modern */
.emoji-picker-modern {
    position: absolute !important;
    bottom: 100%;
    right: 0;
    margin-bottom: 8px;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    z-index: 1050;
}

/* ============================================
   OFFCANVAS COMPOSE MODAL ENHANCED
   ============================================ */

.compose-mail-offcanvas-modern {
    width: 450px !important;
    max-width: 100vw;
}

.compose-mail-offcanvas-modern .offcanvas-header {
    background: linear-gradient(135deg, #00223c 0%, #003a5c 100%);
    color: #fff;
    padding: 20px 24px;
}

.compose-mail-offcanvas-modern .offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.compose-mail-offcanvas-modern .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.compose-mail-offcanvas-modern .btn-close:hover {
    opacity: 1;
}

.compose-mail-offcanvas-modern .offcanvas-body {
    background: #fafafa;
}

.compose-mail-offcanvas-modern .input-group {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.compose-mail-offcanvas-modern .input-group-text {
    background: transparent;
    padding: 12px 16px;
}

.compose-mail-offcanvas-modern .form-control {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.compose-mail-offcanvas-modern .form-control:focus {
    box-shadow: none;
}

/* ============================================
   RESPONSIVE STYLES FOR MESSAGES
   ============================================ */

@media (max-width: 991.98px) {
    .message-list-modern {
        max-height: none;
        overflow-y: visible;
    }
    
    .card-box-modern {
        min-height: auto;
    }
    
    .message-wrapper-modern {
        min-height: auto;
    }
    
    .chat-container-modern {
        height: calc(100vh - 160px);
        min-height: 400px;
    }
    
    .message-row {
        max-width: 90%;
    }
}

@media (max-width: 575.98px) {
    .message-avatar-sm {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .message-avatar-sm img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .message-name {
        font-size: 0.85rem;
        max-width: 120px;
    }
    
    .message-preview-sm {
        font-size: 0.75rem;
    }
    
    .compose-mail-offcanvas-modern {
        width: 100% !important;
    }
    
    .chat-header-modern {
        padding: 12px 16px;
    }
    
    .chat-messages-area {
        padding: 12px;
    }
    
    .chat-input-area {
        padding: 12px 16px;
    }
    
    .message-bubble {
        padding: 10px 14px;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .action-btn {
        width: 36px;
        height: 36px;
    }
    
    .send-btn {
        width: 44px;
        height: 44px;
    }
    
    .chat-avatar-lg {
        width: 40px;
        height: 40px;
    }
    
    .chat-user-name {
        font-size: 1rem;
    }
}

/* ============================================
   ENHANCED COMPOSE MODAL
   ============================================ */

.compose-modal-enhanced {
    width: 480px !important;
    max-width: 100vw;
}

.compose-modal-enhanced .offcanvas-header {
    background: linear-gradient(135deg, #00223c 0%, #004070 100%);
    padding: 24px;
}

.compose-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.compose-modal-enhanced .offcanvas-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.compose-modal-enhanced .offcanvas-body {
    padding: 24px;
    background: #fafbfc;
}

.compose-section {
    margin-bottom: 20px;
}

.compose-label {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compose-input-wrapper {
    position: relative;
}

.compose-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}

.compose-input:focus {
    outline: none;
    border-color: #00223c;
    box-shadow: 0 0 0 3px rgba(0, 34, 60, 0.1);
}

.compose-textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    min-height: 200px;
    resize: none;
    transition: all 0.2s;
    background: #fff;
    line-height: 1.6;
}

.compose-textarea:focus {
    outline: none;
    border-color: #00223c;
    box-shadow: 0 0 0 3px rgba(0, 34, 60, 0.1);
}

.compose-attachments {
    margin-bottom: 16px;
}

.attachments-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #374151;
}

.attachment-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attachment-remove-btn {
    background: none;
    border: none;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.attachment-remove-btn:hover {
    color: #dc2626;
}

.compose-footer {
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.compose-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.compose-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.compose-action-btn:hover {
    background: #e5e7eb;
    color: #00223c;
}

.compose-send-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #00223c 0%, #004070 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.compose-send-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 34, 60, 0.3);
}

.compose-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.emoji-picker-compose {
    position: absolute !important;
    bottom: 100% !important;
    left: 0 !important;
    margin-bottom: 8px !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    z-index: 1050 !important;
}

/* ============================================
   MESSAGES HEADER ROW
   ============================================ */

.messages-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 28px;
    padding: 0;
    gap: 16px;
}

.messages-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #00223c;
    margin: 0;
}

.messages-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.new-message-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00223c 0%, #004070 100%);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 34, 60, 0.2);
}

.new-message-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 34, 60, 0.3);
}

.conversation-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #e5e7eb;
    color: #00223c;
}

.nav-text {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* ============================================
   MESSAGES CONTAINER MAIN
   ============================================ */

.messages-container-main {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.messages-wrapper-main {
    min-height: 600px;
}

.messages-sidebar-col {
    background: #fafbfc;
    border-right: 1px solid #e5e7eb;
}

.messages-sidebar {
    padding: 0;
}

.sidebar-filters {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.sidebar-search:focus-within {
    border-color: #00223c;
    background: #fff;
}

.sidebar-search i {
    color: #9ca3af;
    font-size: 1rem;
}

.sidebar-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
    color: #1f2937;
}

.sidebar-search input::placeholder {
    color: #9ca3af;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    flex: 1;
    padding: 10px 12px;
    background: #f3f4f6;
    border: none;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-tab:hover {
    background: #e5e7eb;
}

.filter-tab.active {
    background: #00223c;
    color: #fff;
}

.filter-tab.unread-tab.active {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

/* ============================================
   RESPONSIVE FOR NEW STYLES
   ============================================ */

@media (max-width: 991.98px) {
    .messages-container-main {
        border-radius: 16px;
    }
    
    .messages-wrapper-main {
        min-height: auto;
    }
    
    .messages-sidebar-col {
        background: #fff;
        border-right: none;
    }
    
    .sidebar-filters {
        padding: 16px;
    }
}

@media (max-width: 575.98px) {
    .compose-modal-enhanced {
        width: 100% !important;
    }
    
    .compose-modal-enhanced .offcanvas-header {
        padding: 16px;
    }
    
    .compose-modal-enhanced .offcanvas-body {
        padding: 16px;
    }
    
    .compose-textarea {
        min-height: 150px;
    }
    
    .messages-title {
        font-size: 1.5rem;
    }
    
    .new-message-btn {
        width: 44px;
        height: 44px;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .filter-tab {
        font-size: 0.75rem;
        padding: 8px 10px;
    }
    
    .conversation-nav {
        padding: 8px 12px;
    }
}
