:root {
    /* Wizard palette based on mockups */
    --cpe-blue: #0094e4;
    --cpe-dark-blue: #0066b3;
    --cpe-light-blue: #eaf5fe;
    /* Map bootstrap primary to corporate blue */
    --bs-primary: var(--cpe-blue);

    --header-height: 60px;
    --sidebar-width: 256px;
    --sidebar-collapsed-width: 70px;
    --sidebar-bg: #EFF5FB;
    --primary-color: var(--cpe-blue);
    --primary-light: #e0f7fa;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: rgba(222, 226, 230, 0.4);
    --transition-speed: 0.3s;
    --card-border-radius: 12px;
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --sidebar-shadow: 0px 4px 20px 0px rgba(51, 149, 212, 0.85);
    --help-box-color: #0099dc;
    --breadcrumb-bg: #f5f7fa;
    --content-bg: var(--cpe-light-blue);
    --text-blue: #009ada;
    --text-small: .8rem;
    --bs-table-hover-bg: #0c4a89;
}

.text-primary {
    color: var(--text-blue) !important;
}

.fs-6 {
    font-size: var(--text-small) !important;
}

h1:focus {
    outline: none;
}

/* push body below fixed header */
.pt-header-height {
    padding-top: var(--header-height) !important;
}

/* General layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--content-bg);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-top: var(--header-height);
}

.page-container {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Main content area containing sidebar and page content */
.content-area {
    display: flex;
    flex: 1;
    position: relative;
    margin-top: 0;
}

/* Navbar styling */
.navbar {
    z-index: 1030;
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
    background-color: #fff;
    padding: 0.5rem 1rem;
}

.navbar-brand img {
    max-height: 32px;
}

/* Breadcrumb navigation styling */
.breadcrumb-container {
    background-color: transparent;
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin-bottom: 0;
    width: 100%;
}

/* Remove underlines from breadcrumb links */
.breadcrumb-item a {
    text-decoration: none;
}

.breadcrumb-path {
    color: var(--text-color);
    font-size: 0.8rem;
}

    .breadcrumb-path a {
        color: var(--primary-color);
        text-decoration: none;
        margin-right: 0.25rem;
    }

    .breadcrumb-path span {
        margin-left: 0.25rem;
        font-weight: 500;
    }

/* Main content wrapper containing page content */
.main-content {
    flex: 1;
    width: 100%;
    padding-top: 0;
    position: relative;
}

.page-content {
    padding: 0.5rem 1rem;
}

/* Main content area styling */
.main-content {
    padding-top: 0;
    flex: 1;
    width: 100%;
}

/* Card styling for content */
.card {
    background: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--shadow-sm);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 154, 218, 0.2);
    padding: 1rem 1.25rem;
}

/* Card styling to match Figma design with softer shadows */
.card {
    background: white;
    border-radius: var(--card-border-radius);
    border: none;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: visible;
}

/* Card image styling */
.card-img-top {
    height: 180px;
    object-fit: cover;
}

/* Card title styling */
.card-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Card text styling */
.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Add your custom styles here */

/* MUG Document Upload Card Styling */
.document-upload-card {
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.document-upload-card:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.1);
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-area:hover {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-area.drag-over {
    border-color: #28a745;
    background-color: #d4edda;
    transform: scale(1.02);
}

.upload-area .upload-icon {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.upload-area.drag-over .upload-icon {
    color: #28a745;
}

.upload-area .upload-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

.upload-area.drag-over .upload-text {
    color: #28a745;
    font-weight: 500;
}
.upload-progress {
    margin-top: 1rem;
}

.upload-progress .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Upload area uploading state */
.upload-area.uploading {
    border-color: #28a745;
    background-color: #f8fff9 !important;
    cursor: not-allowed;
}

.upload-area.uploading:hover {
    border-color: #28a745;
    background-color: #f8fff9 !important;
}

/* Secondary cable pull upload area specific styling */
.secondary-cable-pull-upload {
    height: 200px;
    cursor: pointer;
}


.dashboard-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dashboard-description {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.existing-document .file-info {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.existing-document .file-info i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #28a745;
}

.existing-document .file-actions {
    display: flex;
    gap: 0.5rem;
}

.existing-document .file-actions .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.document-upload-card .card-header h6 {
    font-weight: 600;
    color: #495057;
}

.text-truncate {
    max-width: 150px;
}

/* Card button styling */
.card .btn-primary {
    background-color: var(--primary-color);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* ===== Notification Page Styles ===== */

/* Header styles */
.notification-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #0099dc;
}

.notification-count-span {
    color: #6c757d;
    font-size: 1.05rem;
    font-weight: normal;
    margin-left: 0.25rem;
}

/* Description styles */
.description {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Notification Filter Pills */
.notification-pills {
    background: #fff;
    padding: 0.75rem 1rem 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0, 153, 220, 0.08);
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

    .notification-pills .nav-link {
        background: transparent;
        color: var(--text-muted);
        border-radius: 0.5rem;
        padding: 0.5rem 1.5rem;
        text-align: center;
        font-weight: 500;
        font-size: 0.95rem;
        border: none;
        margin: 0;
        transition: background 0.2s, color 0.2s;
    }

        .notification-pills .nav-link.active {
            background: var(--primary-light);
            color: var(--primary-color);
            box-shadow: none;
        }

        .notification-pills .nav-link:hover:not(.active) {
            background: var(--primary-light);
            color: var(--primary-color);
        }

/* Notification List/Cards */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.notification-card {
    display: flex;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--card-border-radius);
    box-shadow: var(--card-shadow);
    padding: 1rem 1.5rem;
    transition: box-shadow 0.2s, background 0.2s;
    border: none;
    min-height: 80px;
    position: relative;
}

    .notification-card.read {
        background: #f2f2f2;
    }

        .notification-card.read .notification-title-text,
        .notification-card.read .notification-meta,
        .notification-card.read .view-status {
            color: #8a8a8a !important;
        }

.notification-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    margin-top: 0.15rem;
}

    .notification-icon i {
        font-size: 1.25rem;
        color: var(--primary-color);
    }

    .notification-icon img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

.notification-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.notification-title-text {
    font-weight: 600;
    font-size: 1.02rem;
    color: #345880;
    margin-bottom: 0.25rem;
}

.notification-meta {
    font-size: 0.92rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.notification-date {
    color: #8a8a8a;
    margin-left: 0.4rem;
}

.view-status {
    color: #0099dc;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.25rem;
}

    .view-status:hover {
        text-decoration: underline;
        color: #0077cc;
    }

@media (max-width: 700px) {
    .notification-pills {
        padding: 0.5rem;
        gap: 0.25rem;
    }

        .notification-pills .nav-link {
            font-size: 0.85rem;
            padding: 0.4rem 1rem;
        }

    .notification-card {
        padding: 0.85rem;
    }
}

/* Dashboard container styling */
.dashboard-container {
    padding: 0.5rem 1rem;
}

/* Dashboard header styling */
.dashboard-header {
    margin-bottom: 2rem;
}

/* Dashboard title styling */
.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Dashboard description styling */
.dashboard-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Create project button styling */
.create-project-btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-radius: 4px;
}

/* Portal cards specific styling */
.portal-card {
    margin-bottom: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
    border-radius: 20px;
    background-color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(205, 228, 255, 0.3), 0 4px 15px rgba(19, 93, 158, 0.1);
}

    /* Blue glow effect for cards */
    .portal-card::after {
        content: '';
        position: absolute;
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
        background: transparent;
        border-radius: 23px;
        z-index: -1;
        pointer-events: none;
        box-shadow: 0 0 15px 1px rgba(0, 136, 255, 0.15);
    }

    /* Darkens just the button on hover for better interaction */
    .portal-card .view-projects-btn:hover {
        background-color: #0077cc; /* Darker blue */
    }

/* Notification dot for Font Awesome icons */
.notification-dot {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid #fff;
    z-index: 2;
    display: inline-block;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: transform 0.15s cubic-bezier(.4,1.3,.6,1), box-shadow 0.15s;
}

    .notification-dot:hover {
        transform: scale(1.25);
        box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    }


/* Modal Styling - Generic for all modals */
.modal .modal-content {
    border-radius: 8px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal .modal-header {
    border-bottom: none;
    padding: 1.25rem 1.5rem 0.5rem;
}

.modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-color);
}

.modal .modal-body {
    padding: 0.5rem 1.5rem 1.5rem;
}

.modal .form-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.modal .form-control,
.modal .form-select {
    background-color: #f8f9fa;
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    height: auto;
}

    .modal .form-control::placeholder {
        color: #adb5bd;
    }

.modal .modal-footer {
    border-top: none;
    padding: 0 1.5rem 1.5rem;
}

.modal .btn-outline-primary {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-weight: 500;
    padding: 0.6rem 1rem;
}

    .modal .btn-outline-primary:hover {
        color: white;
        background-color: var(--primary-color);
    }

.modal .btn-primary {
    background-color: var(--primary-color);
    border: none;
    font-weight: 500;
    padding: 0.6rem 1rem;
}

.modal .btn-close {
    opacity: 0.7;
}

/* Dropdown styling */
.form-select {
    background-color: #f8f9fa;
    border: 1px solid #e0f7fa;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    height: auto;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
}

    .form-select:focus {
        box-shadow: 0 0 0 0.25rem rgba(0, 153, 220, 0.25);
        outline: none;
        border-color: var(--primary-color);
    }

/* Custom dropdown styling */
.dropdown-menu {
    padding: 0;
    border: 1px solid #e0f7fa;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    z-index: 2100 !important;
    position: absolute !important;
}

/* Ensure Bootstrap dropdown menus have proper z-index */
.dropdown .dropdown-menu {
    z-index: 2100 !important;
}

/* Fix table container overflow to allow dropdowns to show properly */
.table-responsive {
    overflow: visible !important;
}

.card {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

/* Fix dropdown menu positioning to prevent cutoff */
.dropdown-menu {
    position: absolute !important;
    z-index: 9999 !important;
    will-change: transform;
}

/* Force all table dropdowns to use dropup to avoid clipping */
.table .dropdown .dropdown-menu {
    position: absolute !important;
    top: auto !important;
    bottom: 100% !important;
    left: auto !important;
    right: 0 !important;
    transform: translate3d(0px, -2px, 0px) !important;
    margin-bottom: 2px;
}

/* Ensure all containers allow dropdowns to overflow */
.dashboard-container,
.card,
.card-body,
.card-header,
.table-responsive,
.table {
    overflow: visible !important;
    position: static !important;
}

/* Ensure dropdown parent has relative positioning */
.table .dropdown {
    position: relative !important;
}

/* Select and option styling */
select.form-select {
    color: var(--text-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

    /* Force option styling across browsers */
    select.form-select option {
        padding: 0.75rem 1rem;
        background-color: #e8f4f8 !important;
        color: var(--text-color) !important;
    }

        /* Style for hovered/focused option */
        select.form-select option:hover,
        select.form-select option:focus {
            background-color: #c8e6f5 !important;
            color: var(--text-color) !important;
            box-shadow: 0 0 10px 100px #c8e6f5 inset !important;
        }

        /* Style for selected option */
        select.form-select option:checked {
            background-color: #c8e6f5 !important;
            color: var(--text-color) !important;
            box-shadow: 0 0 10px 100px #c8e6f5 inset !important;
        }

        /* For Firefox */
        select.form-select option:hover,
        select.form-select option:focus,
        select.form-select option:active {
            background-color: #c8e6f5 !important;
            box-shadow: 0 0 10px 100px #c8e6f5 inset !important;
        }

    /* For WebKit browsers */
    select.form-select::-webkit-scrollbar {
        width: 8px;
    }

    select.form-select::-webkit-scrollbar-track {
        background: #e8f4f8;
    }

    select.form-select::-webkit-scrollbar-thumb {
        background-color: #c8e6f5;
        border-radius: 4px;
    }

/* Custom select dropdown items - this requires JavaScript to fully implement */
/* For now, we'll style the native elements as close as possible */
.custom-select-dropdown {
    position: absolute;
    width: 100%;
    z-index: 1000;
    background-color: #e8f4f8;
    border-radius: 6px;
    border: 1px solid #c8e6f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
}

    .custom-select-dropdown.show {
        display: block;
    }

.custom-select-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 153, 220, 0.1);
    background-color: #e8f4f8;
}

    .custom-select-item:hover,
    .custom-select-item.selected {
        background-color: #c8e6f5;
    }

/* Project Creation Layout Styling */
.project-creation-container .full-width {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/**
 * Background imagery container styling
 * Contains the people-bubbles image that appears on the right side of the project creation page
 */
.project-creation-container .background-imagery {
    height: 100%;
    position: relative;
    pointer-events: none; /* Allow clicking through the background */
}

/**
 * CSS Background implementation for people-bubbles
 * Uses background-image property aligned to the bottom right of the viewport
 */
.people-bubbles-background {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/backgrounds/people-bubbles.png');
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: auto;
}

.project-creation-container .project-page-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
}

.project-content-area {
    display: flex;
    flex: 1;
    position: relative;
    margin-top: 0;
}

/**
 * Responsive adjustments for smaller screens
 * Ensures proper display on mobile devices
 */
@media (max-width: 992px) {
    .project-creation-container .background-imagery {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        right: 0;
        z-index: 0;
    }

    /**
     * Responsive styling for the people-bubbles background
     * Makes the background more subtle on smaller screens
     */
    .people-bubbles-background {
        opacity: 0.15; /* Make background more faded on mobile */
        background-position: bottom right;
    }

    .project-creation-container .project-page-content {
        width: 100%;
        max-width: 100%;
        position: relative;
        z-index: 1;
    }
}

/* Project creation form styles */
.project-creation-form {
    width: 100%;
    margin: 0;
    padding-top: 1rem;
}

    .project-creation-form h2 {
        font-weight: 600;
        color: var(--text-color);
        margin-bottom: 2rem;
        font-size: 1.5rem;
    }

/* Project steps styling to match the screenshot */
.project-steps {
    width: 100%;
    margin: 2rem 0 2.5rem;
    position: relative;
}

.project-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

    .project-step .step-number {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        margin-bottom: 8px;
        background-color: #f0f0f0;
        color: var(--text-muted);
    }

    .project-step.active .step-number {
        background-color: var(--primary-color);
        color: white;
    }

    .project-step .step-text {
        font-size: 0.85rem;
        color: var(--text-color);
        text-align: center;
        font-weight: 500;
    }

.step-line {
    flex: 1;
    height: 2px;
    background-color: #e0e0e0;
    position: relative;
    top: -16px;
    z-index: 1;
    max-width: 100px;
}

.project-step.completed + .step-line {
    background-color: var(--primary-color);
}

/* Form field styling */
.project-creation-form .form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.project-creation-form .form-control,
.project-creation-form .form-select {
    padding: 0.75rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.project-creation-form textarea.form-control {
    min-height: 100px;
}

/* Portal card body styling */
.portal-card .card-body {
    padding: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

/* Portal image container */
.portal-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #5289b5;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Portal image styling */
.portal-image {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 20px;
}

/* Portal content area */
.portal-content {
    padding: 1.25rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* Portal title styling */
.portal-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #0C4A89;
    text-transform: uppercase;
}

/* Portal description styling */
.portal-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* View projects button styling */
.view-projects-btn {
    background-color: #0094ff;
    border: none;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    color: white;
    display: inline-block;
    text-align: center;
}

    .view-projects-btn:hover {
        background-color: #0077cc;
        color: white;
    }

/* Card lift effect on hover */
.portal-card:hover {
    transform: translateY(-8px);
}

/* Sidebar container and styling */
/* Sidebar container with proper spacing */
.sidebar-container {
    padding-left: 1.5rem;
    padding-top: .5rem;
    padding-bottom: 1rem;
    position: relative;
    z-index: 900;
    height: calc(95vh - var(--header-height));
}

.sidebar {
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--sidebar-bg);
    transition: width var(--transition-speed) ease;
    border-radius: var(--card-border-radius);
    box-shadow: var(--sidebar-shadow);
    overflow: visible;
    border: 1px solid rgba(222, 226, 230, 0.4);
    backdrop-filter: blur(5px);
}

.sidebar-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: visible;
}

.sidebar-extras {
    margin-top: auto;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar menu items */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 0 0;
    overflow-y: visible;
    flex: 1;
}

.sidebar-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s ease;
}

    .sidebar-item:hover {
        color: var(--primary-color);
        text-decoration: none;
        background-color: rgba(0, 0, 0, 0.02);
    }

    .sidebar-item.active {
        color: var(--primary-color);
        background-color: rgba(0, 136, 204, 0.05);
    }

.sidebar.collapsed .sidebar-item {
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem 0;
}

.icon-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1rem;
}

.sidebar.collapsed .icon-container {
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.sidebar-item i {
    font-size: 1.25rem;
}

.sidebar-item .nav-text {
    font-size: 0.9rem;
    line-height: 1.2;
    display: block;
}

.sidebar.collapsed .nav-text {
    display: none;
}

/* Sidebar label above icons */
.sidebar-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Sidebar collapse/expand button - positioned at top */
.sidebar-collapse-btn {
    background-color: rgba(0,153,220,0.3);
    border: 0.5px solid rgba(0,153,220,0.32);
    color: var(--text-muted);
    cursor: pointer;
    position: absolute;
    top: 0.75rem;
    right: -12px;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    transition: all 0.2s ease;
}

    .sidebar-collapse-btn i {
        color: #0099DC !important;
    }

    .sidebar-collapse-btn:hover {
        color: var(--primary-color);
    }

.sidebar.collapsed .sidebar-collapse-btn i {
    transform: rotate(180deg);
}

/* Account section */
.account-section {
    padding: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
}

.account-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.5rem;
}

.sidebar.collapsed .account-label {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile offcanvas styling */
.offcanvas {
    top: var(--header-height);
    height: calc(100% - var(--header-height));
    border-right: 1px solid var(--border-color);
    background-color: var(--sidebar-bg);
    z-index: 1050;
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

    .offcanvas-header h5 {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-muted);
        margin: 0;
    }

.mobile-sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.mobile-sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .mobile-sidebar-item i {
        font-size: 1.25rem;
        margin-right: 1rem;
        width: 1.5rem;
        text-align: center;
        color: var(--text-muted);
    }

    .mobile-sidebar-item.active {
        background-color: rgba(0, 136, 204, 0.05);
        color: var(--primary-color);
    }

        .mobile-sidebar-item.active i {
            color: var(--primary-color);
        }

.mobile-need-help-box {
    background-color: var(--help-box-color);
    border-radius: var(--card-border-radius);
    padding: 1rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-account-section {
    padding-top: 1rem;
}

    .mobile-account-section .account-label {
        font-size: 0.75rem;
        text-align: center;
        margin: 0.5rem 0;
    }

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1rem;
}

    .offcanvas-header h5 {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin: 0;
    }

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mobile-sidebar-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

    .mobile-sidebar-item i {
        font-size: 1.1rem;
        min-width: 24px;
        margin-right: 0.75rem;
        text-align: center;
    }

    .mobile-sidebar-item.active {
        background-color: rgba(0, 136, 204, 0.1);
        color: var(--primary-color);
        font-weight: 500;
    }

.mobile-account-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Card and container styling */
.container-xl,
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--sidebar-shadow);
    border: none;
}

/* Button styling to match design */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-primary:hover {
        background-color: #0077b3;
        border-color: #0077b3;
    }

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

    .btn-outline-primary:hover {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* Need Help box styling */
.need-help-box {
    background-color: var(--help-box-color);
    border-radius: var(--card-border-radius);
    padding: 1rem;
    color: white;
    margin: 1rem;
    text-align: left;
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
}

.sidebar.collapsed .need-help-box {
    flex-direction: column;
    padding: 0.75rem 0.5rem;
    margin: 0.5rem;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.sidebar.collapsed .help-content,
.sidebar.collapsed .documentation-btn {
    display: none;
}

.need-help-box i {
    font-size: 2rem;
    margin-right: 1rem;
}

.sidebar.collapsed .need-help-box i {
    margin-right: 0;
    margin-bottom: 0.5rem;
}

.need-help-box .help-content {
    flex: 1;
}

.need-help-box .help-text {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.need-help-box p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.documentation-btn {
    background-color: white;
    color: var(--help-box-color);
    border: none;
    width: 100%;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.need-help-box .documentation-btn {
    flex-basis: 100%;
    margin-top: 0.5rem;
}

.documentation-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--help-box-color);
    text-decoration: none;
}

.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

    .help-icon i {
        font-size: 1.5rem;
        color: white;
    }

.help-text {
    text-align: center;
    margin-bottom: 0.75rem;
}

.help-title {
    font-weight: 600;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.help-text p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.documentation-btn {
    background-color: white;
    color: #00a3e0;
    border: none;
    width: 100%;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.5rem;
    letter-spacing: 0.5px;
}

    .documentation-btn:hover {
        background-color: rgba(255, 255, 255, 0.9);
        color: #00a3e0;
    }

.mobile-need-help-box {
    background-color: #00a3e0;
    border-radius: 8px;
    padding: 1rem;
    color: white;
}

/* Pending Review badge styling */
.badge-review-pending {
    background-color: #fff7e4 !important;
    color: #ffc530 !important;
}

/* Approved Review badge styling */
.badge-review-approved {
    background-color: #d0e9e4 !important;
}

/* In Progress or Requested More Information badge styling */
.badge-status-info {
    background-color: #e4e8fd !important;
    color: #677ff2 !important;
}

/* Completed status badge styling */
.badge-status-complete {
    background-color: #def2e8 !important;
    color: #2aa969 !important;
}

/* Table row hover styling */
.table-responsive .table .table-hover > tbody > tr:hover {
    background-color: #eff5fb !important;
}

/* Transfer Switch list enhancements */
.request-table {
    border: none;
    border-radius: var(--card-border-radius);
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.request-table thead {
    background-color: #f5f7fa;
}
.request-table thead th {
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
}
.request-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.request-table tbody tr:last-child {
    border-bottom: none;
}
.request-table td {
    vertical-align: middle;
    padding: 1rem;
}
.request-table .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
}
.request-table .btn-outline-primary {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Styling for WizardLayout component */

/* Background behind the wizard */
.wizard-bg {
    background-color: var(--cpe-light-blue, var(--content-bg));
}

/* ────────────────────────────
   Step tracker across the top
   ──────────────────────────── */
.wizard-step-circle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid var(--cpe-blue, var(--primary-color));
    color: var(--cpe-blue, var(--primary-color));
    font-weight: 600;
    font-size: 0.9rem;
}

    .wizard-step-circle.active,
    .wizard-step-circle.completed {
        background: var(--cpe-blue, var(--primary-color));
        color: #fff;
    }

.wizard-step-line {
    flex: 1 1 60px;
    height: 2px;
    background: var(--cpe-blue, var(--primary-color));
    opacity: 0.5;
}

/* ────────────────────────────
   Sidebar
   ──────────────────────────── */
.sidebar-column {
    min-height: 100%;
}

.wizard-sidebar-list li {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.2s;
}

    .wizard-sidebar-list li.active,
    .wizard-sidebar-list li:hover {
        border-left-color: var(--cpe-blue, var(--primary-color));
        background: rgba(0, 148, 228, 0.05);
        font-weight: 600;
    }

    .wizard-sidebar-list li.completed {
        color: var(--cpe-blue, var(--primary-color));
    }

.wizard-sidebar-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--cpe-blue, var(--primary-color));
    text-align: center;
    font-size: 0.7rem;
    line-height: 18px;
    color: var(--cpe-blue, var(--primary-color));
}

tbody, td, tfoot, th, thead, tr {
    border-style: none;
}

/* ────────────────────────────
   Content card
   ──────────────────────────── */
.wizard-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--sidebar-shadow);
    border: none;
    padding: .5em;
    margin-left: 0;
    margin-right: 500px;
}

.wizard-bg{background-color:var(--cpe-light-blue,var(--content-bg));}

/* New wizard step navigation styles */
.wizard-nav-arrow {
    padding: 0.5rem;
    border: none;
    background: none;
    transition: all 0.2s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-nav-arrow:hover {
    background-color: rgba(0, 148, 228, 0.1);
    transform: scale(1.1);
}

.wizard-nav-arrow-spacer {
    width: 40px;
    height: 40px;
}

.wizard-step-item {
    min-width: 0;
    flex-shrink: 0;
}

.wizard-step-label {
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.wizard-step-description {
    font-size: 0.75rem;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.wizard-steps-container {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 148, 228, 0.1);
}

/* Task list */
.wizard-task-list li{font-size:.875rem;}
.wizard-task-badge{display:inline-block;width:12px;height:12px;border-radius:50%;border:1px solid var(--cpe-blue,var(--primary-color));}

@media (max-width: 768px) {
    .wizard-step-label {
        max-width: 100px;
        font-size: 0.8rem;
    }
    
    .wizard-step-description {
        max-width: 100px;
        font-size: 0.7rem;
    }
    
    .wizard-step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .wizard-nav-arrow {
        width: 32px;
        height: 32px;
    }
    
    .wizard-nav-arrow-spacer {
        width: 32px;
        height: 32px;
    }
}

/* Card */

/* Wizard layout background - image removed */
.wizard-bg {
    background-color: var(--cpe-light-blue, var(--content-bg));
}

#teconsent
{
  position: fixed !important;
  bottom: 40px !important; 
  right: 20px !important;
  left: auto !important;
  top: auto !important;
  padding: 10px !important;
  z-index: 9998 !important;
  margin: 0 !important;
  transform: none !important;
}

/* Typeahead (Service Center) */
.typeahead-container {
    position: relative;
    z-index: 2050;
    overflow: visible;
}

.typeahead-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 2051;
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border-radius: 0 0 6px 6px;
}

.typeahead-item,
.typeahead-container .list-group-item.typeahead-item {
    cursor: pointer;
}

/* Ensure the inline clear (x) button always shows a hand cursor */
.typeahead-container .btn-link {
    cursor: pointer;
}

.typeahead-item:hover {
    background-color: var(--primary-light, #e0f7fa);
}

.typeahead-item.active {
    background-color: var(--primary-light, #e0f7fa);
}

.typeahead-loading {
    position: absolute;
    left: 0;
}

/* Contact Us Modal Styling */

/* Cancel button hover effect */
.cancel-button:hover {
    background-color: var(--cpe-blue) !important;
    color: white !important;
    border-color: var(--cpe-blue) !important;
}

/* Custom dropdown arrow styling - can be used for future select elements */
.custom-select {
    background-color: #f8f9fa;
    border: none;
}

/* Selected option highlight in dropdowns */
.dropdown-item.active, 
.dropdown-item:active {
    background-color: #e0f7fa;
    color: var(--text-color);
}

/* Modal content styling enhancements */
.modal-content {
    border: none;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 154, 218, 0.25);
    border-color: transparent;
}

/* Trust Arc Cookie Preferences Styling */

/* Move TrustArc Cookie Preferences button up to make room for legal footer */
div[id*="consent"], 
div[class*="truste"], 
div[class*="cookie"], 
.truste_box_overlay,
#truste-consent-button,
.truste-button {
    z-index: 10000 !important;
}

/* Ensure legal footer stays below Cookie Preferences */
#legal-footer {
    z-index: 9997 !important;
}

/* Only add spacing to the very last scrollable content to prevent overlap */
body::after {
    content: "";
    display: block;
    height: 80px;
}

/* ===== MUG Actions Dropdown Styling ===== */

/* General hover effect for buttons with hover-blue-bg class */
.hover-blue-bg:hover {
    background-color: var(--bs-primary);
    color: white;
}

/* Actions dropdown button hover effect using project primary colors */
.dropdown-toggle:hover {
    background-color: var(--cpe-blue) !important;
    border-color: var(--cpe-blue) !important;
    color: white !important;
}

.dropdown-toggle:focus {
    background-color: var(--cpe-dark-blue) !important;
    border-color: var(--cpe-dark-blue) !important;
    color: white !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 148, 228, 0.25) !important;
}

.dropdown-toggle:active {
    background-color: var(--cpe-dark-blue) !important;
    border-color: var(--cpe-dark-blue) !important;
    color: white !important;
}

/* ────────────────────────────
   Utility Classes
   ──────────────────────────── */
.min-height-300 {
    min-height: 300px;
}

.max-width-600 {
    max-width: 600px;
}

.cursor-pointer {
    cursor: pointer;
}

/* Character Counter Styles */
.character-counter {
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.character-counter.text-muted {
    color: #6c757d !important;
}

.character-counter.text-warning {
    color: #ffc107 !important;
    font-weight: 500;
}

.character-counter.text-danger {
    color: #dc3545 !important;
    font-weight: 600;
}

/* Ensure the textarea respects maxlength */
textarea[maxlength] {
    resize: vertical;
}

/* Visual feedback when approaching limit */
textarea[maxlength]:focus {
    transition: border-color 0.2s ease;
}

.form-control:has(+ div .text-warning) {
    border-color: #ffc107 !important;
}

.form-control:has(+ div .text-danger) {
    border-color: #dc3545 !important;
}

/* ╔════════════════════════════════════════════════╗
   ║     Portal Messaging Component Styles         ║
   ╚════════════════════════════════════════════════╝ */

/* Messaging Button */
.messaging-button-container {
    margin-bottom: 1rem;
}

.btn-messaging {
    background-color: var(--primary-color, #0094e4);
    border-color: var(--primary-color, #0094e4);
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-messaging:hover {
    background-color: #0077b3;
    border-color: #0077b3;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 148, 228, 0.3);
}

.btn-messaging:active {
    transform: translateY(0);
}

.btn-messaging i {
    margin-right: 0.5rem;
}

/* Modal Customization */
.portal-messaging-modal .modal-dialog {
    max-width: 900px;
}

.portal-messaging-modal .modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.portal-messaging-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-color, #0094e4) 0%, #0077b3 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.portal-messaging-modal .modal-title {
    font-weight: 600;
    font-size: 1.25rem;
}

.portal-messaging-modal .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.portal-messaging-modal .btn-close:hover {
    opacity: 1;
}

.portal-messaging-modal .modal-body {
    padding: 2rem 1.5rem;
}

/* Section Tabs */
.messaging-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.messaging-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.messaging-tabs .nav-link:hover {
    color: var(--primary-color, #0094e4);
    border-bottom-color: rgba(0, 148, 228, 0.3);
}

.messaging-tabs .nav-link.active {
    color: var(--primary-color, #0094e4);
    border-bottom-color: var(--primary-color, #0094e4);
    background-color: transparent;
}

/* New Message Section */
.new-message-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
}

.new-message-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.new-message-section .form-control,
.new-message-section .form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.625rem 0.875rem;
    transition: all 0.3s ease;
}

.new-message-section .form-control:focus,
.new-message-section .form-select:focus {
    border-color: var(--primary-color, #0094e4);
    box-shadow: 0 0 0 0.2rem rgba(0, 148, 228, 0.15);
}

/* File Upload Drag and Drop */
.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    background-color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-color, #0094e4);
    background-color: rgba(0, 148, 228, 0.02);
}

.file-upload-area.drag-over {
    border-color: var(--primary-color, #0094e4);
    background-color: rgba(0, 148, 228, 0.08);
    border-style: solid;
}

.file-upload-area.processing {
    border-color: var(--primary-color, #0094e4);
    background-color: rgba(0, 148, 228, 0.05);
    border-style: solid;
    cursor: not-allowed;
    opacity: 0.9;
}

.file-upload-area.processing:hover {
    background-color: rgba(0, 148, 228, 0.05);
}

.file-upload-area.disabled {
    border-color: #cbd5e0;
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.file-upload-area.disabled:hover {
    border-color: #cbd5e0;
    background-color: #f8f9fa;
}

.file-upload-area.disabled .file-upload-icon {
    color: #adb5bd;
}

.file-upload-area.disabled:hover .file-upload-icon {
    transform: none;
    color: #adb5bd;
}

.file-upload-icon {
    font-size: 3rem;
    color: #cbd5e0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.file-upload-area:hover .file-upload-icon,
.file-upload-area.drag-over .file-upload-icon {
    color: var(--primary-color, #0094e4);
    transform: scale(1.1);
}

.file-upload-area.processing .file-upload-icon {
    color: var(--primary-color, #0094e4);
}

.file-upload-area.processing .spinner-border {
    width: 3rem;
    height: 3rem;
}

.file-upload-text {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.file-upload-hint {
    color: #adb5bd;
    font-size: 0.85rem;
}

.file-upload-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

/* Attached Files List */
.attached-files-list {
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.attached-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.attached-file-item:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.attached-file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: var(--primary-color, #0094e4);
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.8rem;
    color: #6c757d;
}

.btn-remove-file {
    background: none;
    border: none;
    color: #dc3545;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-remove-file:hover {
    background-color: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

/* Message List Section */
.message-list-section {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.message-list-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.message-list-empty i {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

/* Message Card */
.message-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.message-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.message-card.has-attachments {
    border-left: 4px solid var(--primary-color, #0094e4);
}

.message-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.message-subject {
    font-weight: 600;
    font-size: 1.1rem;
    color: #212529;
    margin: 0;
    flex: 1;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.message-from {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-weight: 500;
}

.message-from i {
    color: var(--primary-color, #0094e4);
}

.message-from span {
    color: #495057;
}

.message-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.message-date i {
    color: #adb5bd;
}

.message-body {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-attachments {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

.attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #e7f3ff;
    color: var(--primary-color, #0094e4);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 148, 228, 0.2);
    transition: all 0.3s ease;
}

.attachment-badge:hover {
    background-color: var(--primary-color, #0094e4);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 148, 228, 0.3);
    cursor: pointer;
}

.attachment-badge i {
    font-size: 0.9rem;
}

/* Action Buttons */
.message-actions-container {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-send-message {
    background-color: var(--primary-color, #0094e4);
    border-color: var(--primary-color, #0094e4);
    color: white;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-send-message:hover:not(:disabled) {
    background-color: #0077b3;
    border-color: #0077b3;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 148, 228, 0.3);
}

.btn-send-message:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-cancel {
    background-color: transparent;
    border-color: #6c757d;
    color: #6c757d;
    padding: 0.625rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Loading States */
.loading-messages {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-messages .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
    color: var(--primary-color, #0094e4);
}

.loading-messages p {
    margin-top: 1rem;
    color: #6c757d;
}

/* Portal Messaging Scrollbar Styling */
.message-list-section::-webkit-scrollbar,
.attached-files-list::-webkit-scrollbar {
    width: 8px;
}

.message-list-section::-webkit-scrollbar-track,
.attached-files-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.message-list-section::-webkit-scrollbar-thumb,
.attached-files-list::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

.message-list-section::-webkit-scrollbar-thumb:hover,
.attached-files-list::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Portal Messaging Responsive Design */
@media (max-width: 768px) {
    .portal-messaging-modal .modal-dialog {
        max-width: 100%;
        margin: 0.5rem;
    }

    .messaging-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .message-meta {
        width: 100%;
        justify-content: space-between;
    }

    .message-actions-container {
        flex-direction: column-reverse;
    }

    .message-actions-container button {
        width: 100%;
    }
}

/* Portal Messaging Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-card {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.attached-file-item {
    animation: slideIn 0.3s ease-out;
}