/* Optimized CSS - Only Used Styles */
/* Base Styles and Variables */
:root {
    /* Colors */
    --primary-gradient: linear-gradient(45deg, #025792, maroon);
    --primary-color: #025792;
    --secondary-color: maroon;
    --text-color: #495057;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --background-light: #f8f9fa;
    --background-hover: #e9ecef;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Border Radius */
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.375rem;
    --border-radius-lg: 0.5rem;
    --border-radius-xl: 1rem;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 1rem 2rem rgba(0, 0, 0, 0.2);

    /* Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;

    /* Z-index layers */
    --z-index-dropdown: 1000;
    --z-index-sticky: 1020;
    --z-index-fixed: 1030;
    --z-index-modal-backdrop: 1040;
    --z-index-modal: 1050;
    --z-index-popover: 1060;
    --z-index-tooltip: 1070;
    
    /* Navbar heights */
    --navbar-height-default: 80px;
    --navbar-height-scrolled: 40px;
}

/* Reset and Base Styles */
html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    padding-top: var(--navbar-height-default);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #fff;
}

/* Navbar Styles */
.navbar.gradient-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-index-fixed);
    height: var(--navbar-height-default);
    transition: height var(--transition-normal), 
                padding var(--transition-normal),
                box-shadow var(--transition-normal);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar.gradient-header.scrolled {
    height: var(--navbar-height-scrolled);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.navbar .text-white-50 {
    display: block;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled .text-white-50 {
    opacity: 0;
    visibility: hidden;
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

.navbar .d-flex.flex-column {
    transition: all var(--transition-normal);
}

.navbar.scrolled .d-flex.flex-column {
    margin: 1.5rem 3rem !important;
}

.navbar.scrolled .navbar-brand {
    font-size: 1.25rem;
    margin-bottom: 0 !important;
}

@media (max-width: 768px) {
    .navbar.gradient-header,
    .navbar.gradient-header.scrolled {
        height: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .navbar.scrolled .d-flex.flex-column {
        margin: 0.5rem !important;
    }
}

/* Utility Classes */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-header {
    background: var(--primary-gradient);
    color: white;
}

.gradient-header-color {
    background: var(--primary-gradient);
    color: white;
}

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

/* Layout Components */
.main-content {
    flex: 1 0 auto;
    min-height: calc(100vh - 300px);
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
}

.footer {
    flex-shrink: 0;
    background-color: white;
    padding: var(--spacing-md) 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Form Styles */
.form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
}

.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    transition: var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

/* Card Styles */
.card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-body {
    padding: 1.5rem;
}

.card-header {
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #014066, #800000);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-secondary {
    border: 1px solid #6c757d;
    color: #6c757d;
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

.btn-outline-success {
    border: 1px solid var(--success-color);
    color: var(--success-color);
    background-color: transparent;
}

.btn-outline-success:hover {
    background-color: var(--success-color);
    color: white;
}

.btn-outline-danger {
    border: 1px solid var(--danger-color);
    color: var(--danger-color);
    background-color: transparent;
}

.btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

.btn-outline-info {
    border: 1px solid var(--info-color);
    color: var(--info-color);
    background-color: transparent;
}

.btn-outline-info:hover {
    background-color: var(--info-color);
    color: white;
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #157347;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    opacity: 0.5;
    cursor: pointer;
}

.btn-close:hover {
    opacity: 1;
}

/* Modal Styles */
.modal-content {
    border-radius: var(--border-radius-lg);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-header.gradient-header {
    background: var(--primary-gradient);
    color: white;
}

.modal-header.gradient-header .modal-title {
    color: white;
}

.modal-header.gradient-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header.gradient-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

.modal-title {
                font-weight: 600;
    color: var(--text-color);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

/* Fix modal backdrop issues */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-backdrop.show {
    opacity: 0.5;
}

/* Ensure modal is properly removed */
.modal.fade {
    transition: opacity 0.15s linear;
}

.modal.fade:not(.show) {
        opacity: 0;
}

.modal.show {
        opacity: 1;
}

/* Prevent multiple backdrops */
body.modal-open {
    overflow: hidden;
}

/* Ensure backdrop is removed when modal is hidden */
body:not(.modal-open) .modal-backdrop {
    display: none !important;
}

/* Fix z-index issues */
.modal-backdrop {
    z-index: var(--z-index-modal-backdrop);
}

.modal {
    z-index: var(--z-index-modal);
}

/* Task-specific Styles */
.document-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.document-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.document-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--background-light);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
}

.document-header:hover {
    background-color: var(--background-hover);
}

.document-link {
    text-decoration: none !important;
    color: var(--text-color);
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border: none !important;
    background-color: transparent !important;
    transition: var(--transition-fast);
    flex-grow: 1;
    margin-right: 15px;
}

.document-link:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
    color: var(--primary-color);
}

.document-link h6 {
    color: #495057;
    transition: color 0.2s ease;
    margin-bottom: 0;
}

.document-link:hover h6 {
    color: var(--primary-color);
}

.document-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    padding: 5px 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-padding-left: 10px;
    scroll-padding-right: 10px;
}

.task-section {
    margin-bottom: 1.5rem;
    padding: 0 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: white;
}

.task-section h6 {
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
    padding: 3px;
    border-radius: 4px;
}

.task-section h6:hover {
    color: var(--primary-color);
    background-color: rgba(0,0,0,0.05);
}

.task-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.task-item {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    min-height: 20px;
    margin-bottom: 3px;
    line-height: 1.2;
    gap: 0;
    padding: 2px 0;
    transition: var(--transition-fast);
    position: relative;
}

.task-item:hover {
    background-color: var(--background-light);
    border-radius: 4px;
}

.task-label {
    margin-right: 3px;
    font-size: 0.75rem;
    width: 8.5rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    min-height: 16px;
    flex-shrink: 0;
    font-weight: 500;
    color: var(--text-color);
}

/* Ensure all labels in a section have the same width */
.task-section .task-label {
    width: 8.5rem;
}

/* Default section label widths - these will be overridden by JavaScript */
/*
.task-section:nth-child(1) {
    --section-label-width: auto;
}

.task-section:nth-child(2) {
    --section-label-width: auto;
}

.task-section:nth-child(3) {
    --section-label-width: auto;
}

.task-section:nth-child(4) {
    --section-label-width: auto;
}

.task-section:nth-child(5) {
    --section-label-width: auto;
}
*/

/* Special styling for SH Review labels to prevent truncation */
.task-label.sh-review-label {
    width: 8.5rem;
}

/* Reduce label width when only "Due" checkbox is present */
.task-section.single-due-only .task-label {
    width: 5.5rem;
}

/* Reduce label width when only "Submitted" checkbox is present */
.task-section.single-submitted-only .task-label {
    width: 5rem !important;
}

/* Override single-due-only when section has submitted checkbox */
.task-section.has-submitted .task-label {
    width: 8.5rem;
}

.task-date {
    font-size: 0.75rem;
    margin-left: 3px;
    display: none !important;
    line-height: 1.2;
    min-height: 16px;
    align-items: center;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background-color: var(--background-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.task-date.visible {
    display: flex !important;
    align-items: center;
}

/* For checked checkboxes, always display the date */
input[type="checkbox"]:checked + .task-date {
    display: flex !important;
    align-items: center;
}

.task-date.date-complete {
    background-color: #d1e7dd;
    color: #0f5132;
}

.task-date.date-behind {
    background-color: #f8d7da;
    color: #721c24;
}

.task-date.date-due-soon {
    background-color: #cce7ff;
    color: #004085;
}

.task-date.date-not-due {
    background-color: var(--background-light);
    color: var(--text-muted);
}

.task-date.date-questions {
    background-color: #fff3cd;
    color: #664d03;
}

.task-date.date-notes {
    background-color: #e2e3e5;
    color: #41464b;
}

.task-date.date-approved {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* SH Review Due Date Styling - matches task-date styling */
.sh-review-due-date {
    font-size: 0.75rem;
    margin-left: 3px;
    display: flex !important;
    align-items: center;
    line-height: 1.2;
    min-height: 16px;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
    background-color: var(--background-light);
    white-space: nowrap;
    flex-shrink: 0;
}

.sh-review-due-date.date-complete {
    background-color: #d1e7dd;
    color: #0f5132;
}

.sh-review-due-date.date-behind {
    background-color: #f8d7da;
    color: #721c24;
}

.sh-review-due-date.date-due-soon {
    background-color: #cce7ff;
    color: #004085;
}

.sh-review-due-date.date-not-due {
    background-color: var(--background-light);
    color: var(--text-muted);
}

.sh-review-due-date.sent-to-sh {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* Alternative class names used by SH Review dates */
.sh-review-due-date.overdue {
    background-color: #f8d7da;
    color: #721c24;
}

.sh-review-due-date.due-soon {
    background-color: #cce7ff;
    color: #004085;
}

.sh-review-due-date.future {
    background-color: var(--background-light);
    color: var(--text-muted);
}

/* Enhanced form-check-input for tasks */
.form-check-input {
    margin: 0;
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
    margin-right: 6px;
    top: 0;
    transform: translateY(0);
    border-radius: 2px;
    vertical-align: middle;
}

.form-check-input:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* Orange checkbox for Questions */
.questions-pending-checkbox:checked {
    background-color: #fd7e14 !important;
    border-color: #fd7e14 !important;
}

/* Purple checkbox for Notes */
.notes-checkbox:checked {
    background-color: #6f42c1 !important;
    border-color: #6f42c1 !important;
}

/* Green checkbox for SH Review when checked */
.sh-review-checkbox:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* Keep green color even when disabled after being checked */
.sh-review-checkbox:checked:disabled {
    background-color: #198754 !important;
    border-color: #198754 !important;
    opacity: 1 !important;
}

/* Approval checkbox styling */
.approval-checkbox:checked {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

/* Status Styles */
.status-box {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 2px;
}

.status-complete {
    background-color: var(--success-color); /* Green */
}

.status-behind {
    background-color: var(--danger-color); /* Red for Overdue */
}

.status-due-soon {
    background-color: #007bff; /* Blue for Due This Week */
}

.status-not-due {
    background-color: #e9ecef; /* Light gray */
}

.status-questions {
    background-color: #fd7e14; /* Orange for SH Questions */
}

.status-notes {
    background-color: #6f42c1; /* Purple for SH Notes */
}

/* Assigned Consultants Styles */
.assigned-consultants {
    display: flex !important; /* Force display for all user types */
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex-shrink: 0;
    visibility: visible !important; /* Ensure always visible */
    opacity: 1 !important; /* Ensure not transparent */
}



.assigned-consultants .badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    background: linear-gradient(45deg, #025792, maroon) !important;
    color: white;
    border: none;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    display: inline-block !important; /* Force display */
    visibility: visible !important; /* Ensure visible */
}

.assigned-consultants .text-muted {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

.assigned-consultants .bi-person-check {
    font-size: 0.8rem;
}

/* Badge hover effects */
.assigned-consultants .badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Filter Styles */
#filterControls {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.filter-section-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.filter-section-title .bi-building,
.filter-section-title .bi-people {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Filter Columns Layout */
.filter-columns-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.filter-column {
    display: flex;
    flex-direction: column;
}

.companies-column {
    padding-right: 1.5rem;
}

.consultants-column {
    padding-left: 1.5rem;
}

/* Company Toggles */
.company-toggles-compact {
    display: flex;
    flex-direction: column;
}

.company-toggles-scrollable {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    background-color: var(--background-light);
}

.company-toggle-compact {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    background-color: white;
    border: 1px solid #e9ecef;
}

.company-toggle-compact:last-child {
    margin-bottom: 0;
}

.company-toggle-compact:hover {
    background-color: var(--background-hover);
    border-color: var(--primary-color);
}

.company-toggle-compact .form-check {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.company-toggle-compact .form-check-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.2;
}

.company-name-compact {
    color: var(--text-color);
    font-weight: 500;
}

.consultant-count-compact {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 400;
}

.form-check-input.company-toggle-switch {
    width: 2.5rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    margin-top: 0;
    background-color: #e9ecef;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.form-check-input.company-toggle-switch:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input.company-toggle-switch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

/* Consultants Column */
.consultants-list-compact {
    display: flex;
    flex-direction: column;
}

.consultants-scrollable {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.5rem;
    background-color: var(--background-light);
}

.consultant-item-compact {
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
    background-color: white;
    border: 1px solid #e9ecef;
}

.consultant-item-compact:last-child {
    margin-bottom: 0;
}

.consultant-item-compact:hover {
    background-color: var(--background-hover);
    border-color: var(--primary-color);
}

.consultant-item-compact .form-check {
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

.consultant-item-compact .form-check-label {
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
    line-height: 1.2;
}

.consultant-checkbox {
    margin-right: 0.5rem;
    margin-top: 0;
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.consultant-checkbox:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.consultant-checkbox:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

/* Legacy consultant-filter-item support (in case it's used elsewhere) */
.consultant-filter-item {
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    margin-bottom: 0.5rem;
    background-color: white;
    border: 1px solid #e9ecef;
}

.consultant-filter-item:last-child {
    margin-bottom: 0;
}

.consultant-filter-item:hover {
    background-color: var(--background-hover);
    border-color: var(--primary-color);
}

.consultant-filter-item .form-check {
    margin-bottom: 0;
}

.consultant-filter-item .form-check-label {
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 0;
}

/* Filter Actions */
.filter-actions-top {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-actions-top .btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--border-radius-md);
    margin: 0.25rem;
    border-width: 1px;
    border-style: solid;
}

.filter-actions-top .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: white;
}

.filter-actions-top .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.filter-actions-top .btn-outline-info {
    border-color: var(--info-color);
    color: var(--info-color);
    background-color: white;
}

.filter-actions-top .btn-outline-info:hover {
    background-color: var(--info-color);
    color: white;
}

.filter-actions-top .btn-outline-danger {
    border-color: var(--danger-color);
    color: var(--danger-color);
    background-color: white;
}

.filter-actions-top .btn-outline-danger:hover {
    background-color: var(--danger-color);
    color: white;
}

/* Filter Status */
#filterStatus {
    padding: 0.75rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    margin-top: 1rem;
}

#filterStatus .text-muted {
    font-size: 0.875rem;
    margin-bottom: 0;
}

#filterStatus .bi-info-circle {
    color: var(--info-color);
}

/* Responsive Filter Layout */
@media (max-width: 768px) {
    .filter-columns-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .companies-column {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
    }
    
    .consultants-column {
        padding-left: 0;
        padding-top: 1rem;
    }
    
    .company-toggles-scrollable,
    .consultants-scrollable {
        max-height: 200px;
    }
}

/* Animation Keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
    opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
    opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (forced-colors: active) {
    .gradient-text,
    .gradient-header {
        background: none;
        color: ButtonText;
    }
}

/* Dark Mode Support - Temporarily disabled to fix header issue */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #e9ecef;
        --background-light: #343a40;
        --border-color: #495057;
    }
    
    body {
        background-color: #212529;
        color: var(--text-color);
    }
    
    .card {
        background-color: #343a40;
        border-color: var(--border-color);
    }
    
    .form-control,
    .form-select {
        background-color: #495057;
        border-color: var(--border-color);
        color: var(--text-color);
    }
}
*/

/* Search Styles */
#taskSearch {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    transition: var(--transition-fast);
}

#taskSearch:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.25);
}

/* Status Summary Modal Styles */
.modal-fullscreen .modal-content {
    border-radius: 0;
}

.modal-fullscreen .modal-body {
    padding: 1.5rem;
}

.modal-fullscreen .modal-header {
    padding: 1rem 1.5rem;
}

.modal-fullscreen .modal-footer {
    padding: 1rem 1.5rem;
}

/* Status Legend */
.status-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.legend-color {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.legend-color.status-complete {
    background-color: var(--success-color);
}

.legend-color.status-behind {
    background-color: var(--danger-color);
}

.legend-color.status-due-soon {
    background-color: #007bff; /* Blue for Due This Week */
}

.legend-color.status-questions {
    background-color: #fd7e14; /* Orange for SH Questions */
}

.legend-color.status-notes {
    background-color: #6f42c1; /* Purple for SH Notes */
}

.legend-color.status-not-due {
    background-color: #e9ecef;
}

/* Status Summary Table */
.status-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    table-layout: auto;
}

.status-summary-table th,
.status-summary-table td {
    padding: 0.6rem 0.4rem;
    text-align: center;
    border: 1px solid #dee2e6;
    vertical-align: middle;
    word-wrap: break-word;
}

.status-summary-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

/* Sticky header support */
.status-summary-table thead th {
    position: sticky;
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6;
}

/* First row of headers (step names) */
.status-summary-table thead tr:first-child th {
    top: 0;
    z-index: 20;
}

/* Second row of headers (submit, questions, etc.) */
.status-summary-table thead tr:nth-child(2) th {
    top: 38px;
    z-index: 19;
}

.status-summary-table th:first-child,
.status-summary-table td:first-child {
    width: 180px;
    text-align: left;
    padding-left: 0.8rem;
    font-weight: 500;
}

.status-summary-table th:not(:first-child),
.status-summary-table td:not(:first-child) {
    width: 70px;
    min-width: 70px;
}

.status-summary-table tbody tr:hover td {
    background-color: #c4c9cc; /* Very subtle hover effect */
}

.status-summary-table tbody tr.selected td {
    background-color: #c4c9cc !important; /* Same as hover effect */
}

/* Ensure selected state overrides zebra striping */
.table-striped tbody tr.selected td {
    background-color: #c4c9cc !important;
}

.status-summary-table .text-start {
    text-align: left !important;
}

/* Table Responsive Container */
.table-responsive {
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    max-height: 70vh;
    overflow-y: auto;
}

.table-bordered {
    border: 1px solid var(--border-color);
    margin-bottom: 0;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid var(--border-color);
}

.table-light th {
    background-color: var(--background-light);
    border-color: var(--border-color);
}

/* Improve table header styling */
.table-light thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: #495057;
}

.align-middle {
    vertical-align: middle !important;
}

.text-center {
    text-align: center !important;
}

/* Truncated Document Names */
.truncated-doc-name {
    display: inline-block;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.truncated-doc-name:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Status Summary Table Links */
.status-summary-table a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.status-summary-table a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Responsive Status Summary */
@media (max-width: 768px) {
    .status-legend {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legend-item {
        font-size: 0.8rem;
    }
    
    .status-summary-table {
    font-size: 0.75rem;
    }
    
    .status-summary-table th,
    .status-summary-table td {
        padding: 0.25rem;
        min-width: 50px;
    }
    
    .truncated-doc-name {
        max-width: 150px;
        font-size: 0.8rem;
    }
}

/* Tooltip Styles */
.tooltip {
    z-index: var(--z-index-tooltip);
}

.tooltip .tooltip-inner {
    background-color: #333;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
}

/* Accordion Styles */
.accordion-button {
    background-color: white;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 500;
    padding: 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--background-light);
    color: var(--primary-color);
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

.accordion-body {
    padding: 1rem;
}

.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

/* Chevron Styles */
.approved-chevron {
    cursor: pointer;
    transition: var(--transition-fast);
    color: #198754;
        font-size: 0.875rem;
    }
    
.approved-chevron:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.status-chevron {
    transition: var(--transition-fast);
}

.status-chevron.completed {
    color: var(--success-color);
}

.status-chevron.pending {
    color: var(--warning-color);
}

.status-chevron.overdue {
    color: var(--danger-color);
}

/* Task Section Collapsed States */
.task-row.collapsed {
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
        opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.task-section.approved-collapsed {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 40px;
    height: var(--collapsed-height, 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 3px solid #198754;
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
    border-radius: 8px;
    margin: 0 2px;
    position: relative;
    transition: all 0.3s ease;
}

.task-section.approved-collapsed:hover {
    background: linear-gradient(180deg, rgba(25, 135, 84, 0.15) 0%, rgba(25, 135, 84, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.2);
}

.task-section.approved-collapsed h6 {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    font-size: 0.7rem;
    font-weight: 600;
    color: #198754;
    margin: 0;
    padding: 8px 0;
    text-align: center;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-section.approved-collapsed .approved-chevron {
    writing-mode: horizontal-tb;
    text-orientation: upright;
    font-size: 1rem;
    color: #198754;
    margin: 0;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
}

.task-section.approved-collapsed .approved-chevron:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateX(-50%) scale(1.1);
}

/* Hide the task row when in vertical column mode */
.task-section.approved-collapsed .task-row {
    display: none !important;
}

/* Dynamic heights for collapsed sections based on number of checkboxes */
.task-section.approved-collapsed.height-small {
    --collapsed-height: 120px;
}

.task-section.approved-collapsed.height-medium {
    --collapsed-height: 120px;
}

.task-section.approved-collapsed.height-large {
    --collapsed-height: 160px;
}

.task-section.approved-collapsed.height-extra-large {
    --collapsed-height: 200px;
}

/* Ensure expanded view returns to normal layout */
.task-section:not(.approved-collapsed) {
    writing-mode: initial;
    text-orientation: initial;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    margin: 0;
}

.task-section:not(.approved-collapsed) h6 {
    writing-mode: initial;
    text-orientation: initial;
    font-size: 0.85rem;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.task-section:not(.approved-collapsed) .approved-chevron {
    writing-mode: initial;
    text-orientation: initial;
    position: static;
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    transform: none;
    margin-right: 0.25rem;
}

/* Registration Card */
.registration-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.registration-card .card-body {
    padding: 2rem;
}

.registration-card .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
        padding: 0.75rem;
    }
    
.registration-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.25);
}

.registration-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 2rem;
}

.registration-card .btn-primary:hover {
    background: linear-gradient(45deg, #014066, #800000);
}

/* Update Password Card */
.update-password-card {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-xl);
}

.update-password-card .card-body {
    padding: 2rem;
}

.update-password-card .form-control {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 0.75rem;
    transition: var(--transition-fast);
}
    
.update-password-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.25);
}

.update-password-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.75rem 2rem;
    transition: var(--transition-fast);
}

.update-password-card .btn-primary:hover {
    background: linear-gradient(45deg, #014066, #800000);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Password Input Container */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-container .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.1rem;
    z-index: 10;
    padding: 0.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}

.password-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(2, 87, 146, 0.1);
}

.password-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 0.5rem;
    overflow: hidden;
    position: relative;
}

.password-strength-meter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--strength-width, 0%);
    background-color: var(--strength-color, #e9ecef);
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 2px;
}

.password-strength-meter.strength-weak::before {
    --strength-width: 25%;
    --strength-color: var(--danger-color);
}

.password-strength-meter.strength-medium::before {
    --strength-width: 50%;
    --strength-color: #ffc107;
}

.password-strength-meter.strength-good::before {
    --strength-width: 75%;
    --strength-color: #fd7e14;
}

.password-strength-meter.strength-strong::before {
    --strength-width: 100%;
    --strength-color: var(--success-color);
}

/* Password Requirements List */
.requirement-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
    font-size: 0.875rem;
}

.requirement-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.requirement-item i {
    margin-right: 0.5rem;
    font-size: 0.75rem;
    width: 1rem;
    text-align: center;
    transition: var(--transition-fast);
}

/* When requirement is met */
.requirement-item i.requirement-met {
    color: var(--success-color);
}

/* Default state - unmet requirement */
.requirement-item i.bi-circle {
    color: var(--text-muted);
}

/* Met requirement */
.requirement-item i.bi-check-circle-fill {
    color: var(--success-color);
}

/* Update the requirement item text color when met */
.requirement-item:has(i.requirement-met) {
    color: var(--success-color);
}

.requirement-item:has(i.bi-check-circle-fill) {
    color: var(--success-color);
}

/* Fallback for browsers that don't support :has() */
.requirement-item.met {
    color: var(--success-color);
}

.requirement-item.met i {
    color: var(--success-color);
}

/* Password Validation Messages */
.password-validation-message {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.password-validation-message.success {
    color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.password-validation-message.error {
    color: var(--danger-color);
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.password-validation-message:empty {
    display: none;
}

/* Task Control Buttons */
.task-control-buttons .btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    position: relative;
}

.task-control-buttons .btn i {
    font-size: 0.875rem;
    margin-right: 0.375rem;
}

.task-control-buttons .btn-primary {
    background: var(--primary-gradient);
    border: none;
}

.task-control-buttons .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.task-control-buttons .btn-warning {
    background: var(--primary-gradient);
    border: none;
    color: white;
}

.task-control-buttons .btn-warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    color: white;
}

/* Filter Button Active States - Keep text white and add checkmark badges */
.task-control-buttons .btn-warning.active,
.task-control-buttons .btn-primary.active {
    color: white !important;
    background: var(--primary-gradient) !important;
}

/* Checkmark Badge Styles */
.filter-checkmark-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: white;
    border: 3px solid white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 10;
    opacity: 0;
    transform: scale(0.7);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

.filter-checkmark-badge i {
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0; 
    transform: translateY(-0.5px); /* Fine-tune vertical centering */
}

/* Orange checkmark for Items from SH */
.filter-checkmark-badge.orange {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
}

/* Green checkmark for Ready for SH Review */
.filter-checkmark-badge.green {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

/* Show badge when filter is active */
.btn.active .filter-checkmark-badge {
    opacity: 1;
    transform: scale(1);
}

/* Hover effect for active badges */
.btn.active:hover .filter-checkmark-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Task count badge for filter view button */
.task-count-badge {
    position: relative;
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    vertical-align: middle;
    z-index: 5;
}

/* Ensure badges work on mobile */
@media (max-width: 768px) {
    .filter-checkmark-badge {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -8px;
        right: -8px;
        border: 2px solid white;
    }
    
    .filter-checkmark-badge i {
        font-size: 11px;
        transform: translateY(-0.5px);
    }
    
    .task-count-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
}

@media (max-width: 576px) {
    .filter-checkmark-badge {
        width: 18px;
        height: 18px;
        font-size: 11px;
        top: -7px;
        right: -7px;
        border: 2px solid white;
    }
    
    .filter-checkmark-badge i {
        font-size: 10px;
        transform: translateY(-0.5px);
    }
    
    .task-count-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
}

/* Search Highlighting */
.search-highlight {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 1px 2px;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Ensure highlights are visible in different contexts */
.document-link .search-highlight {
    background-color: #fff3cd;
    color: #856404;
}

.consultant-names .search-highlight {
    background-color: #fff3cd;
    color: #856404;
}

/* Animation for new highlights */
@keyframes highlightFade {
    0% {
        background-color: #ffeaa7;
        transform: scale(1.02);
    }
    100% {
        background-color: #fff3cd;
        transform: scale(1);
    }
}

.search-highlight {
    animation: highlightFade 0.3s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .task-section {
        padding: 0.75rem;
        display: block;
    }
    
    .task-row {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .task-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 2px 0;
        margin-bottom: 3px;
    }
    
    .task-label {
        width: auto;
        min-width: auto;
        justify-self: auto;
        padding-right: 0;
        margin-right: 6px;
    }
    
    .task-item .form-check-input,
    .task-row .form-check-input {
        justify-self: auto;
        margin-right: 6px;
    }
    
    .task-date {
        justify-self: auto;
        margin-left: 3px;
    }
    
    .document-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .document-link {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
    
    .assigned-consultants {
        padding: 5px 15px 10px 15px !important;
        justify-content: flex-start;
    }
    
    .assigned-consultants .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    .assigned-consultants .text-muted {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .task-control-buttons .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .task-control-buttons .btn i {
        font-size: 0.8rem;
        margin-right: 0.25rem;
    }
}

@media (max-width: 576px) {
    .task-control-buttons {
        gap: 0.25rem !important;
    }
    
    .task-control-buttons .btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .task-control-buttons .btn i {
        margin-right: 0.2rem;
    }
}

/* Password Field States */
.password-match {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25) !important;
}

.password-mismatch {
    border-color: var(--danger-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Text Utility Classes for Feedback */
.text-success {
    color: var(--success-color) !important;
}

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

.text-warning {
    color: #ffc107 !important;
}

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

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

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

/* Enhanced Form Validation Styles */
.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.form-check-input.is-invalid {
    border-color: var(--danger-color);
}

.form-check-input.is-valid {
    border-color: var(--success-color);
}

/* Invalid Feedback Styling */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--danger-color);
}

.valid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--success-color);
}

/* Update Password Page Responsive Styles */
@media (max-width: 768px) {
    .update-password-card .card-body {
        padding: 1.5rem;
    }
    
    .password-toggle {
        right: 0.5rem;
        font-size: 1rem;
        width: 1.75rem;
        height: 1.75rem;
    }
    
    .requirement-list {
        font-size: 0.8rem;
    }
    
    .requirement-item {
        margin-bottom: 0.375rem;
    }
}

@media (max-width: 576px) {
    .update-password-card .card-body {
        padding: 1rem;
    }
    
    .password-toggle {
        right: 0.5rem;
        font-size: 0.9rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .requirement-list {
        font-size: 0.75rem;
    }
    
    .password-strength-meter {
        height: 3px;
    }
}

/* Ensure all task checkboxes are perfectly aligned */
.task-item .form-check-input,
.task-row .form-check-input {
    margin: 0;
    width: 14px;
    height: 14px;
    position: relative;
    flex-shrink: 0;
    margin-right: 6px;
    top: 0;
    transform: translateY(0);
    border-radius: 2px;
    vertical-align: middle;
    align-self: center;
}

.metric-card {
    transition: transform 0.2s;
}
.metric-card:hover {
    transform: translateY(-2px);
}
.health-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.health-healthy { background-color: #28a745; }
.health-warning { background-color: #ffc107; }
.health-critical { background-color: #dc3545; }
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 20px;
}
.performance-badge {
    font-size: 0.8em;
    padding: 0.25rem 0.5rem;
}
.refresh-indicator {
    opacity: 0;
    transition: opacity 0.3s;
}
.refresh-indicator.active {
    opacity: 1;
}
/* Security: Prevent content injection */
.user-content {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pagination-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.pagination-info {
    font-size: 0.875rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.pagination-size select,
.pagination-jump input {
    font-size: 0.875rem;
}

.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
    padding: 0.375rem 0.75rem;
}

.pagination .page-link:hover {
    color: #0a58ca;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    background-color: #fff;
    border-color: #dee2e6;
}

#paginationLoading {
    background: rgba(248, 249, 250, 0.95);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Last Topic in Set Styles */
.pagination-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.last-topic-info {
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.last-topic-info small {
    font-size: 0.75rem;
    line-height: 1.2;
    color: #6c757d !important;
    font-style: italic;
    opacity: 0.85;
    border-bottom: 1px dotted transparent;
    transition: all 0.2s ease-in-out;
}

.last-topic-info .bi-bookmark {
    font-size: 0.7rem;
    opacity: 0.7;
}

.last-topic-info:hover small {
    opacity: 1;
    color: #495057 !important;
    border-bottom-color: #6c757d;
}

/* Scroll Button Styles */
#scrollToBottomBtn,
#scrollToTopBtn {
    min-width: 36px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

#scrollToBottomBtn:hover,
#scrollToTopBtn:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
    transform: translateY(-1px);
}

#scrollToBottomBtn .bi-arrow-down,
#scrollToTopBtn .bi-arrow-up {
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .pagination-container .d-flex {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-container .pagination {
        justify-content: center;
    }
    
    .pagination-info,
    .pagination-size,
    .pagination-jump {
        text-align: center;
    }
    
    .last-topic-info {
        margin-top: 0.25rem !important;
    }
    
    .last-topic-info small {
        font-size: 0.7rem;
    }
}

/* Terms and Privacy Pages Styling */
.terms-content,
.privacy-content {
    line-height: 1.7;
    color: #2c3e50;
    font-size: 1rem;
}

.terms-content section,
.privacy-content section {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.terms-content section:hover,
.privacy-content section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.terms-content section::before,
.privacy-content section::before {
    display: none;
}

.terms-content h3,
.privacy-content h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.terms-content h3::after,
.privacy-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0px;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.terms-content h3::before,
.privacy-content h3::before {
    content: counter(section-counter);
    counter-increment: section-counter;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.terms-content {
    counter-reset: section-counter;
}

.privacy-content {
    counter-reset: section-counter;
}

.terms-content h4,
.privacy-content h4 {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.terms-content h4::before,
.privacy-content h4::before {
    content: '●';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.terms-content p,
.privacy-content p {
    margin-bottom: 1.25rem;
    text-align: justify;
    text-justify: inter-word;
}

.terms-content ul,
.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.terms-content li,
.privacy-content li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 0.5rem;
}

.terms-content li::marker,
.privacy-content li::marker {
    color: var(--primary-color);
    font-weight: bold;
}

.terms-content strong,
.privacy-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

.terms-content a,
.privacy-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.terms-content a:hover,
.privacy-content a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.terms-content a::after,
.privacy-content a::after {
    content: '↗';
    font-size: 0.8em;
    margin-left: 0.25rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.terms-content a:hover::after,
.privacy-content a:hover::after {
    opacity: 1;
    transform: translateY(-1px);
}

/* Enhanced header styling */
.terms-header,
.privacy-header {
    background: linear-gradient(135deg, rgba(2, 87, 146, 0.05), rgba(128, 0, 0, 0.05));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 2px solid rgba(2, 87, 146, 0.1);
    position: relative;
    overflow: hidden;
}

.terms-header::before,
.privacy-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.terms-header p,
.privacy-header p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Enhanced card styling for terms and privacy */
.terms-content .card,
.privacy-content .card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
}

.terms-content .card-body,
.privacy-content .card-body {
    padding: 2.5rem;
    position: relative;
}



/* Responsive enhancements */
@media (max-width: 768px) {
    .terms-content section,
    .privacy-content section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .terms-content h3,
    .privacy-content h3 {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .terms-content h3::before,
    .privacy-content h3::before {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .terms-header,
    .privacy-header {
        padding: 1.5rem;
    }
    
    .terms-content .card-body,
    .privacy-content .card-body {
        padding: 1.5rem;
    }
    
    .terms-content,
    .privacy-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .terms-content section,
    .privacy-content section {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .terms-content h3,
    .privacy-content h3 {
        font-size: 1.1rem;
    }
    
    .terms-content h4,
    .privacy-content h4 {
        font-size: 1rem;
    }
    
    .terms-header,
    .privacy-header {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .terms-content .card,
    .privacy-content .card {
        border-radius: 12px;
    }
    
    .terms-content .card-body,
    .privacy-content .card-body {
        padding: 1rem;
    }
}

/* Print styles for terms and privacy */
@media print {
    .terms-content section,
    .privacy-content section {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .terms-content section::before,
    .privacy-content section::before,
    .terms-header::before,
    .privacy-header::before {
        display: none;
    }
    
    .terms-content h3::before,
    .privacy-content h3::before {
        background: #333 !important;
        color: white !important;
    }
    
    .terms-content a::after,
    .privacy-content a::after {
        display: none;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .terms-content section,
    .privacy-content section,
    .terms-content a,
    .privacy-content a,
    .terms-header::before,
    .privacy-header::before {
        transition: none !important;
        animation: none !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .terms-content section,
    .privacy-content section {
        border: 2px solid ButtonBorder;
        background: ButtonFace;
    }
    
    .terms-content h3::before,
    .privacy-content h3::before {
        background: ButtonText;
        color: ButtonFace;
    }
    
    .terms-content h3::after,
    .privacy-content h3::after {
        background: ButtonText;
    }
}

/* ============================
   RESET PAGE STYLING
   ============================ */

/* Main reset container */
.reset-container {
    background: linear-gradient(135deg, rgba(2, 87, 146, 0.02), rgba(128, 0, 0, 0.02));
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Reset form card styling */
.reset-form-card {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    position: relative;
}

.reset-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px 20px 0 0;
}

.reset-form-header {
    background: linear-gradient(135deg, rgba(2, 87, 146, 0.05), rgba(128, 0, 0, 0.05));
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.reset-form-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.reset-form-header p {
    color: var(--text-color);
    margin-bottom: 0;
    opacity: 0.8;
    font-size: 0.95rem;
}

.reset-form-body {
    padding: 2rem;
}

/* Form controls styling */
.reset-form-body .form-label {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.reset-form-body .form-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-right: 0.75rem;
}

.reset-form-body .form-select {
    border: 2px solid rgba(2, 87, 146, 0.1);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);

}

.reset-form-body .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.15);
    background: white;
    transform: translateY(-1px);
}

.reset-form-body .form-select:hover {
    border-color: rgba(2, 87, 146, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Submit button styling */
.reset-submit-btn {
    background: linear-gradient(135deg, var(--primary-color), #1a5490);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 87, 146, 0.2);
    position: relative;
    overflow: hidden;
    color: white !important;
    width: 100%;
}

.reset-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.reset-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 87, 146, 0.3);
    background: linear-gradient(135deg, #1a5490, var(--primary-color));
    color: white !important;
}

.reset-submit-btn:hover::before {
    left: 100%;
}

.reset-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(2, 87, 146, 0.2);
}

/* Success message styling */
.reset-success-card {
    background: linear-gradient(145deg, #ffffff, #f0f9ff);
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.reset-success-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 20px 20px 0 0;
}

.reset-success-header {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    padding: 2rem 2rem 1rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.reset-success-header h4 {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reset-success-header h4::before {
    content: '✓';
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.reset-success-body {
    padding: 2rem;
}

.reset-success-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.reset-password-display {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(32, 201, 151, 0.05));
    border: 2px solid rgba(40, 167, 69, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.reset-password-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 0 0 3px 3px;
}

.reset-password-display strong {
    color: #28a745;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* Back to home button */
.reset-back-btn {
    background: linear-gradient(135deg, var(--primary-color), #1a5490);
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(2, 87, 146, 0.2);
    width: 100%;
    justify-content: center;
}

.reset-back-btn:hover {
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 87, 146, 0.3);
    background: linear-gradient(135deg, #1a5490, var(--primary-color));
    text-decoration: none;
}

.reset-back-btn::before {
    content: '←';
    margin-right: 0.5rem;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.reset-back-btn:hover::before {
    transform: translateX(-3px);
}

/* Responsive design */
@media (max-width: 768px) {
    .reset-container {
        padding: 1rem;
        min-height: 50vh;
    }
    
    .reset-form-header,
    .reset-success-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .reset-form-body,
    .reset-success-body {
        padding: 1.5rem;
    }
    
    .reset-form-header h3,
    .reset-success-header h4 {
        font-size: 1.3rem;
    }
    
    .reset-success-header h4::before {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .reset-form-card,
    .reset-success-card {
        margin: 0 10px;
        border-radius: 16px;
    }
    
    .reset-form-header,
    .reset-success-header {
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }
    
    .reset-form-body,
    .reset-success-body {
        padding: 1.25rem;
    }
    
    .reset-submit-btn,
    .reset-back-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation effects */
@keyframes resetSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reset-form-card,
.reset-success-card {
    animation: resetSlideIn 0.6s ease-out;
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .reset-form-card,
    .reset-success-card,
    .reset-submit-btn,
    .reset-back-btn,
    .reset-form-body .form-select {
        animation: none !important;
        transition: none !important;
    }
}

.floating-document-mode-panel {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transition: all 0.3s ease;
    min-width: 280px;
    max-width: 320px;
}

.floating-document-mode-panel.collapsed {
    min-width: auto;
    max-width: 60px;
}

.floating-document-mode-panel .panel-header {
    background: linear-gradient(135deg, #194c87 0%, #c92020 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.floating-document-mode-panel.collapsed .panel-header {
    border-radius: 12px;
    justify-content: center;
    padding: 12px 8px;
}

.floating-document-mode-panel .panel-title {
    font-weight: 600;
    font-size: 0.9rem;
    flex-grow: 1;
    transition: opacity 0.3s ease;
}

.floating-document-mode-panel.collapsed .panel-title {
    display: none;
}

.floating-document-mode-panel .btn-collapse {
    background: none;
    border: none;
    color: white;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.floating-document-mode-panel .btn-collapse:hover {
    background: rgba(255, 255, 255, 0.2);
}

.floating-document-mode-panel.collapsed .btn-collapse i {
    transform: rotate(180deg);
}

.floating-document-mode-panel .panel-content {
    padding: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-document-mode-panel.collapsed .panel-content {
    max-height: 0;
    padding: 0 16px;
}

.floating-document-mode-panel .mode-indicator {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
}

.floating-document-mode-panel .mode-label {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

.floating-document-mode-panel .mode-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #198754;
}

.floating-document-mode-panel .mode-status.approved {
    color: #0d6efd;
}

.floating-document-mode-panel .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.floating-document-mode-panel .form-check-label {
    font-size: 0.9rem;
    cursor: pointer;
}

.floating-document-mode-panel .mode-description {
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-document-mode-panel {
        right: 10px;
        min-width: 260px;
        max-width: 280px;
    }
    
    .floating-document-mode-panel.collapsed {
        max-width: 50px;
    }
}

/* Animation for smooth transitions */
.floating-document-mode-panel * {
    transition: all 0.3s ease;
}

/* Hover effects */
.floating-document-mode-panel:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}



.rte-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(2, 87, 146, 0.25);
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.rte-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: var(--border-radius-sm);
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 14px;
    padding: 0;
}

.rte-button:hover {
    background-color: #e9ecef;
    border-color: var(--border-color);
}

.rte-button:active,
.rte-button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.rte-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(2, 87, 146, 0.25);
}

.rte-separator {
    width: 1px;
    height: 24px;
    background-color: var(--border-color);
    margin: 0 0.25rem;
}



.rte-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
    pointer-events: none;
}

.rte-editor:focus {
    outline: none;
}

.rte-editor.focused {
    background-color: #fafafa;
}

.rte-editor p {
    margin: 0 0 1rem 0;
}

.rte-editor p:last-child {
    margin-bottom: 0;
}

.rte-editor ul,
.rte-editor ol {
    margin: 0 0 1rem 0;
    padding-left: 2rem;
}

.rte-editor li {
    margin-bottom: 0.25rem;
}

.rte-editor strong {
    font-weight: 600;
}

.rte-editor em {
    font-style: italic;
}

.rte-editor u {
    text-decoration: underline;
}

.rte-hidden-input {
    display: none;
}

.rte-save-indicator {
    position: absolute;
    top: -30px;
    right: 0;
    background: var(--success-color);
    color: white;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    z-index: 1000;
    animation: fadeInOut 2s ease-in-out;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(10px); }
    20% { opacity: 1; transform: translateY(0); }
    80% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}

/* RTE Validation States */
.rte-container.is-invalid {
    border-color: var(--danger-color);
}

.rte-container.is-invalid:focus-within {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.rte-editor.is-invalid {
    border-color: var(--danger-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rte-toolbar {
        padding: 0.375rem;
        gap: 0.125rem;
    }
    
    .rte-button {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .rte-editor {
        min-height: 120px;
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .rte-separator {
        height: 20px;
    }
}

@media (max-width: 576px) {
    .rte-toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .rte-button {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .rte-editor {
        min-height: 100px;
        padding: 0.5rem;
    }
}

/* Dark mode support - disabled for RTE to maintain white background */
@media (prefers-color-scheme: dark) {
    .rte-container {
        background: white;
        border-color: #dee2e6;
    }
    
    .rte-toolbar {
        background-color: #f8f9fa;
        border-color: #dee2e6;
    }
    
    .rte-button {
        background: white;
        color: #495057;
        border-color: #dee2e6;
    }
    
    .rte-button:hover {
        background-color: #e9ecef;
    }
    
    .rte-editor {
        background: white !important;
        color: #495057 !important;
    }
    
    .rte-editor.focused {
        background-color: #fafafa !important;
    }
    
    .rte-editor:empty::before {
        color: #6c757d;
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .rte-container {
        border: 2px solid ButtonBorder;
    }
    
    .rte-button {
        border: 1px solid ButtonBorder;
        background: ButtonFace;
        color: ButtonText;
    }
    
    .rte-button:hover,
    .rte-button:active {
        background: Highlight;
        color: HighlightText;
    }
    
    .rte-editor {
        background: Field;
        color: FieldText;
    }
}

/* Print styles */
@media print {
    .rte-toolbar {
        display: none;
    }
    
    .rte-container {
        border: none;
        box-shadow: none;
    }
    
    .rte-editor {
        padding: 0;
        min-height: auto;
        max-height: none;
    }
}

.gradient-subheader-color {
    background: linear-gradient(135deg, #2d3748 70%);
    color: white;
}

/* Gradient Subheader Styles */
.gradient-subheader {
    background: linear-gradient(135deg, #2d3748 70%);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.gradient-subheader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
}

.gradient-subheader .container {
    position: relative;
    z-index: 2;
}

.gradient-subheader h1,
.gradient-subheader h2,
.gradient-subheader h3,
.gradient-subheader h4,
.gradient-subheader h5,
.gradient-subheader h6 {
    color: white;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gradient-subheader p,
.gradient-subheader .lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gradient-subheader .breadcrumb {
    background: transparent;
    margin-bottom: 0;
    padding: 0;
}

.gradient-subheader .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.gradient-subheader .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    content: ">";
}

.gradient-subheader .breadcrumb-item.active {
    color: white;
}

.gradient-subheader .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition-fast);
}

.gradient-subheader .breadcrumb-item a:hover {
    color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Subheader Variants */
.gradient-subheader.compact {
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.gradient-subheader.large {
    padding: calc(var(--spacing-xl) * 1.5) 0;
    margin-bottom: calc(var(--spacing-xl) * 1.5);
}

.gradient-subheader.centered {
    text-align: center;
}

.gradient-subheader.with-shadow {
    box-shadow: var(--shadow-lg);
}

/* Subheader with Action Buttons */
.gradient-subheader .subheader-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.gradient-subheader .btn {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition-fast);
}

.gradient-subheader .btn:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.gradient-subheader .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.gradient-subheader .btn-outline-light:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

/* Subheader Icons */
.gradient-subheader .subheader-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-right: var(--spacing-md);
    font-size: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.gradient-subheader .subheader-icon i {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gradient-subheader {
        padding: var(--spacing-md) 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .gradient-subheader.large {
        padding: var(--spacing-lg) 0;
        margin-bottom: var(--spacing-xl);
    }
    
    .gradient-subheader h1 {
        font-size: 1.75rem;
    }
    
    .gradient-subheader h2 {
        font-size: 1.5rem;
    }
    
    .gradient-subheader .subheader-actions {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-xs);
    }
    
    .gradient-subheader .subheader-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin-right: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .gradient-subheader {
        padding: var(--spacing-sm) 0;
        margin-bottom: var(--spacing-md);
    }
    
    .gradient-subheader h1 {
        font-size: 1.5rem;
    }
    
    .gradient-subheader h2 {
        font-size: 1.25rem;
    }
    
    .gradient-subheader .breadcrumb {
        font-size: 0.875rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .gradient-subheader {
        background: linear-gradient(45deg, #1a4d7a, #5d1a1a);
    }
    
    .gradient-subheader::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%, rgba(255, 255, 255, 0.02) 100%);
    }
}

/* High contrast mode */
@media (forced-colors: active) {
    .gradient-subheader {
        background: ButtonFace;
        color: ButtonText;
        border: 2px solid ButtonBorder;
    }
    
    .gradient-subheader::before {
        display: none;
    }
    
    .gradient-subheader h1,
    .gradient-subheader h2,
    .gradient-subheader h3,
    .gradient-subheader h4,
    .gradient-subheader h5,
    .gradient-subheader h6,
    .gradient-subheader p {
        color: ButtonText;
        text-shadow: none;
    }
    
    .gradient-subheader .btn {
        border-color: ButtonBorder;
        background: ButtonFace;
        color: ButtonText;
    }
}

/* Print styles */
@media print {
    .gradient-subheader {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
        border-bottom: 2px solid #000;
        page-break-inside: avoid;
    }
    
    .gradient-subheader::before {
        display: none;
    }
    
    .gradient-subheader h1,
    .gradient-subheader h2,
    .gradient-subheader h3,
    .gradient-subheader h4,
    .gradient-subheader h5,
    .gradient-subheader h6,
    .gradient-subheader p {
        color: black !important;
        text-shadow: none !important;
    }
    
    .gradient-subheader .btn,
    .gradient-subheader .subheader-actions {
        display: none;
    }
}

.highlight {
    background-color: #fff3cd;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: bold;
}

.roi-timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.roi-timeline-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roi-timeline-content {
    margin-left: 10px;
}

/* Add styles for validation */
.rte-editor.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.rte-editor.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.rte-editor.is-invalid + .invalid-feedback {
    display: block;
}

.rte-editor.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
    padding-right: calc(1.5em + 0.75rem);
}

.rte-editor.is-valid:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}














.accent-1 {
    color: red;
}

.gradient-1 {
    background: linear-gradient(45deg, #025792, maroon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-gradient {
    transition: all 0.3s ease;
}
.hover-gradient:hover {
    background: #025792 !important;
    border-color: transparent !important;
    opacity: 0.9;
}

#responding[data-hidden] * {
    display: none;
}

#confidential[data-hidden] * {
    display: none;
}

#non_confidential[data-hidden] * {
    display: none;
}

#objection[data-hidden] * {
    display: none;
}

.gradient-text {
    background: linear-gradient(45deg, #025792, maroon);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gradient-header {
    background: linear-gradient(45deg, #025792, maroon);
    color: white;
}

.gradient-subheader {
    background: linear-gradient(45deg, #2a3d55, #4e5d6a);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Discovery */

.mode-switch-container {
    background: linear-gradient(45deg, #025792, maroon);
    border: 1px solid rgba(0,0,0,0.1);
}

.mode-btn {
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
}

.mode-btn:hover {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
}

.mode-btn.active {
    color: white;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mode-btn i {
    font-size: 1.1em;
}

/* ROI Accordion Styles */
.roi-accordion-item {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,.075);
    transition: all 0.3s ease;
}

.roi-accordion-item:hover {
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}

.roi-accordion-header {
    padding: 1rem;
    background-color: rgba(248, 249, 250, 0.5);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.roi-accordion-header:hover {
    background-color: rgba(248, 249, 250, 0.9);
}

.roi-accordion-header.active {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.roi-accordion-body {
    padding: 1.5rem;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,.125);
}

.roi-status {
    display: inline-block;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

.roi-status-pending {
    background-color: rgba(108, 117, 125, 0.15);
    color: #6c757d;
}

.roi-status-responded {
    background-color: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.roi-status-overruled {
    background-color: rgba(165, 42, 42, 0.15);
    color: #a52a2a;
}

.roi-status-late {
    background-color: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.roi-status-upcoming {
    background-color: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.roi-status-completed {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}

.roi-detail-panel {
    background-color: #f8f9fa;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.dropzone {
    min-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.dropzone:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.dropzone .dz-message {
    text-align: center;
    margin: 2em 0;
}

.dropzone .dz-preview {
    margin: 0.5rem;
}

.dropzone .dz-preview .dz-image {
    border-radius: 0.25rem;
}

.custom-file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.custom-file-upload.dragover {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.upload-area {
    padding: 2rem;
    text-align: center;
    cursor: pointer;
}

.upload-icon {
    font-size: 2.5rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.upload-text {
    color: #6c757d;
}

.file-list {
    padding: 0 1rem 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: #6c757d;
}

.file-name {
    margin: 0;
    font-size: 0.875rem;
}

.file-size {
    color: #6c757d;
    font-size: 0.75rem;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
}

.remove-file:hover {
    color: #bb2d3b;
}

/* Tracking */

.accordion-button {
    padding-right: 3rem !important;
}
.gradient-header .d-flex {
    padding-right: 3rem !important;
}
.roi-table-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background: white;
}
.roi-table-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg, #025792, maroon);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.roi-table-container .table-responsive {
    position: relative;
    z-index: 1;
}
/* Add styles for filter controls */
.form-select {
    border: 1px solid transparent !important;
    background-color: white;
    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 5 6 6 6-6'/%3e%3c/svg%3e"),
        linear-gradient(white, white), 
        linear-gradient(45deg, #025792, maroon) !important;
        background-repeat: no-repeat, repeat, repeat !important;
    background-position: right 0.75rem center, 0 0, 0 0 !important;
    background-size: 16px 12px, 100% 100%, 100% 100% !important;
    background-origin: content-box, padding-box, border-box !important;
    background-clip: padding-box, padding-box, border-box !important;
}

.form-select:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 0.25rem rgba(0,0,128,0.25);
}

/* Style for the search input group */
.input-group {
    border: 1px solid transparent;
    background-image: linear-gradient(white, white), 
    linear-gradient(45deg, #025792, maroon);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 4px;
}

.input-group-text {
    background: white;
    border: none;
}

.input-group .form-control {
    border: none !important;
    background: white;
}

/* Remove focus effect from search input */
.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

/* Clear filters button */
#clearFilters {
    border: 1px solid transparent;
    background-color: white;
    background-image: linear-gradient(white, white), 
    linear-gradient(45deg, #025792, maroon);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    height: 38px; /* Match the height of form-select */
}

#clearFilters:hover {
    background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95)), 
    linear-gradient(45deg, #025792, maroon);
}

#clearFilters i {
    font-size: 0.75rem;
}

/* Focus states */
.form-select:focus, .form-control:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 0.25rem rgba(0,0,128,0.25);
}

/* Filter Controls Styling */
.filter-group {
    position: relative;
}

/* Base select styling */
.filter-group select {
    border: 1px solid transparent !important;
    background-color: white;
    background-image: linear-gradient(white, white);
    background-origin: border-box;
    background-clip: padding-box;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease-in-out;
}

.filter-group select:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 0.25rem rgba(0,0,128,0.25);
}

/* Remove dropdown arrow for filter select boxes */
.filter-group select[name="category"],
.filter-group select[name="party"],
.filter-group select[name="status"] {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: linear-gradient(white, white) !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 100% 100% !important;
    background-origin: border-box !important;
    background-clip: padding-box !important;
    padding-right: 0.75rem !important;
    width: 100%;
    height: auto;
    min-height: 120px;
}

/* Keep dropdown arrow for sort select */
.filter-group select[name="sort"] {
    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 5 6 6 6-6'/%3e%3c/svg%3e"),
        linear-gradient(white, white);
    background-repeat: no-repeat, repeat;
    background-position: right 0.75rem center, 0 0;
    background-size: 16px 12px, 100% 100%;
    background-origin: content-box, padding-box;
    background-clip: padding-box, padding-box;
}

.filter-group select option {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

.filter-group select option:hover {
    background-color: #f8f9fa;
}

.filter-group select option:checked {
    background-color: #0d6efd;
    color: white;
}

/* Style for the search input group */
.input-group {
    border: 1px solid transparent;
    background-image: linear-gradient(white, white);
    background-origin: border-box;
    background-clip: padding-box;
    border-radius: 0.375rem;
}

.input-group-text {
    background: white;
    border: none;
}

.input-group .form-control {
    border: none !important;
    background: white;
}

/* Remove focus effect from search input */
.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

/* Clear filters button */
#clearFilters {
    border: 1px solid transparent;
    background-color: white;
    background-image: linear-gradient(white, white);
    background-origin: border-box;
    background-clip: padding-box;
    height: 38px; /* Match the height of form-select */
}

#clearFilters:hover {
    background-image: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.95));
}

#clearFilters i {
    font-size: 0.75rem;
}

/* Focus states */
.form-select:focus, .form-control:focus {
    border-color: transparent !important;
    box-shadow: 0 0 0 0.25rem rgba(0,0,128,0.25);
}

/* Gradient text and borders */
.gradient-text {
    background: linear-gradient(45deg, #025792, maroon);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-border {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(45deg, #025792, maroon) border-box;
    border-radius: 0.375rem;
}

.gradient-header {
    background: linear-gradient(45deg, #025792, maroon);
    color: white;
}

/* Apply gradient borders to filter controls */
.filter-group select,
.input-group,
#clearFilters {
    position: relative;
    border: 1px solid transparent;
    background: linear-gradient(white, white) padding-box,
    linear-gradient(45deg, #025792, maroon) border-box;
    border-radius: 0.375rem;
}

/* Apply gradient text to labels */
.form-label {
    /* background: linear-gradient(45deg, #025792, maroon); */
    -webkit-background-clip: text;
    background-clip: text;
    color: black;
    font-weight: 600;
}

/* Remove responsive media queries for index.ejs elements */
@media (max-width: 768px) {
    /* Keep only non-index.ejs related styles */
    .filter-group select[multiple] {
        height: auto;
        max-height: 200px;
    }
}

.nav-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Dashboard */

.dashboard-card {
    transition: transform 0.2s ease-in-out;
    height: auto;
    margin-bottom: 0.75rem;
}
.dashboard-card:hover {
    transform: translateY(-5px);
}
.metric-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}
.metric-card:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.metric-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.chart-container {
    position: relative;
    height: 200px;
}
.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.75rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0d6efd;
}
.timeline-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 8px;
    bottom: -0.75rem;
    width: 2px;
    background: #e9ecef;
}
.timeline-item:last-child::after {
    display: none;
}
.activity-feed {
    max-height: 200px;
    overflow-y: auto;
}
.activity-item {
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
}
.activity-item:hover {
    background: #e9ecef;
}
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-pending {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}
.status-completed {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
}
.status-in-progress {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}
.main-content {
    min-height: calc(100vh - 300px);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}
.footer {
    background-color: white;
    padding: 1rem 0;
    margin-top: auto;
    position: relative;
    z-index: 1;
}
.card-header {
    padding: 0.75rem 1rem;
}
.card-body {
    padding: 1rem;
}
.metric-card .card-body {
    padding: 0.75rem;
}
.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.5rem;
}
.metric-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.metric-description {
    font-size: 0.75rem;
    color: #6c757d;
}

/* Discovery */

.mode-switch-container {
    background: linear-gradient(45deg, #025792, maroon);
    border: 1px solid rgba(0,0,0,0.1);
}

.mode-btn {
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    background: transparent;
    border: none;
}

/* .mode-btn:hover {
    color: white;
    background: rgba(255,255,255,0.1);
} */

.mode-btn.active {
    color: white;
    background: rgba(255,255,255,0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mode-btn i {
    font-size: 1.1em;
}

/* Add padding to ROI list body */
#roiListView .card-body {
    padding: 1.5rem;
}

/* Add margin to ROI accordion items */
.roi-accordion-item {
    margin-bottom: 1.5rem;
}

/* Add padding to ROI accordion body */
.roi-accordion-body {
    padding: 1.5rem;
}

/* Response */

/* File Upload Area Styles */
.file-drop-zone {
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-drop-zone.dragging {
    border-color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.file-icon {
    color: #6c757d;
}

.file-name {
    font-size: 0.875rem;
    color: #212529;
}

.file-size {
    font-size: 0.75rem;
    color: #6c757d;
}

.remove-file {
    color: #dc3545;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.remove-file:hover {
    background-color: rgba(220, 53, 69, 0.1);
}

/* Alert styles in dropzones */
.file-drop-zone .alert {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.file-drop-zone .alert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.file-drop-zone .alert-info {
    background-color: #e8f4f8;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.file-drop-zone .alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.file-drop-zone .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.file-drop-zone .alert i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.file-drop-zone .alert strong {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.file-drop-zone .alert small {
    display: block;
    margin-top: 0.5rem;
    opacity: 0.9;
}

.confidential-drop-zone .alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

/* Checkbox styling */
.form-check-input:checked {
    background-color: #ffc107;
    border-color: #ffc107;
}

.form-check-input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
} 

/* Status Toggle Buttons */
.status-toggle-container {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.status-toggle {
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.status-toggle.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Discovery */

        .watermark {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            color: rgba(0, 0, 0, 0.1);
            font-size: 24px;
            font-weight: bold;
            pointer-events: none;
            z-index: 1;
        }

        .position-relative {
            position: relative;
        }

        .border-dashed {
            border-style: dashed !important;
        }
        
        .file-drop-zone {
            transition: all 0.3s;
            cursor: pointer;
        }
        
        .file-drop-zone.dragover {
            background-color: rgba(13, 110, 253, 0.1);
            border-color: #0d6efd !important;
        }
        
        .file-item {
            display: flex;
            align-items: center;
            padding: 8px 12px;
            margin-bottom: 8px;
            background-color: #f8f9fa;
            border-radius: 4px;
            border: 1px solid #dee2e6;
        }
        
        .file-info {
            display: flex;
            align-items: center;
            flex: 1;
        }
        
        .file-icon {
            font-size: 1.2rem;
            margin-right: 10px;
            color: #6c757d;
        }
        
        .file-name {
            margin: 0 10px 0 0;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .file-size {
            font-size: 0.8rem;
            color: #6c757d;
        }
        
        .remove-file {
            color: #dc3545;
            cursor: pointer;
            margin-left: 10px;
        }

        /* Rich Text Editor Styles */
        .editor-toolbar {
            display: flex;
            flex-wrap: wrap;
            gap: 5px;
            padding: 8px;
            background-color: #f8f9fa;
            border: 1px solid #ced4da;
            border-bottom: none;
            border-top-left-radius: 0.375rem;
            border-top-right-radius: 0.375rem;
        }
        
        .editor-toolbar button {
            width: 32px;
            height: 32px;
            background-color: white;
            border: 1px solid #dee2e6;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .editor-toolbar button:hover {
            background-color: #e9ecef;
        }
        
        .editor-toolbar button.active {
            background-color: #e9ecef;
            box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
        }
        
        .editor-toolbar .separator {
            width: 1px;
            height: 24px;
            background-color: #dee2e6;
            margin: 0 5px;
        }
        
        .editor-content {
            min-height: 150px;
            max-height: 400px;
            overflow-y: auto;
            padding: 12px;
            background-color: white;
            border: 1px solid #ced4da;
            border-radius: 0.375rem;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
            outline: none;
            line-height: 1.5;
            transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        }
        
        .editor-content:focus {
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }
        
        .rich-editor-container {
            margin-bottom: 1.5rem;
        }
        
        .editor-content ul, .editor-content ol {
            padding-left: 2rem;
        }
        
        .editor-content p {
            margin-bottom: 0.5rem;
        }

        /* Navbar */

            /* Navbar active item styling */
            .nav-item-container {
                position: relative;
            }
            
            .nav-item-container.active .nav-icon {
                color: #0d6efd !important;
            }
            
            .nav-item-container.active .nav-text {
                font-weight: 600;
                background: linear-gradient(45deg, #025792, maroon);
                -webkit-background-clip: text;
                background-clip: text;
                -webkit-text-fill-color: transparent;
            }
            
            .nav-item-container.active::after {
                content: '';
                position: absolute;
                bottom: -10px;
                left: 50%;
                transform: translateX(-50%);
                width: 30px;
                height: 3px;
                background: linear-gradient(45deg, #025792, maroon);
                border-radius: 3px;
            }

/* Add these styles at the end of the file */

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1 0 auto;
    padding-bottom: 2rem;
}

footer {
    flex-shrink: 0;
    background-color: white;
    padding: 1rem 0;
    margin-top: auto;
}

/* Update existing footer styles */
footer.w-100 {
    width: 100% !important;
}

footer .container {
    padding-top: 2rem;
    padding-bottom: 1rem;
}

footer hr {
    margin: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
}

/* Success Message Styles */
.success-container {
    max-width: 800px;
    margin: 0 auto;
}

.success-message {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-in-out;
}

.success-message i {
    animation: scaleIn 0.5s ease-in-out;
}

.success-actions {
    margin-top: 2rem;
}

.success-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.success-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover effect for footer links */
.hover-text-primary:hover {
    color: #0d6efd !important;
    transition: color 0.3s ease;
}

/* Registration Form Styles */
.registration-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.registration-card .card-body {
    padding: 2rem;
}

.registration-card .form-control,
.registration-card .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.registration-card .form-control:focus,
.registration-card .form-select:focus {
    border-color: #025792;
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

.registration-card .btn-primary {
    background: linear-gradient(45deg, #025792, maroon);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.registration-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.registration-card .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.registration-card .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Update Password Page Styles */
.update-password-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.update-password-card .card-body {
    padding: 2rem;
}

.update-password-card .form-control {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.update-password-card .form-control:focus {
    border-color: #025792;
    box-shadow: 0 0 0 0.25rem rgba(2, 87, 146, 0.25);
}

.update-password-card .btn-primary {
    background: linear-gradient(45deg, #025792, maroon);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.update-password-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.update-password-card .form-label {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.update-password-card .invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.password-validation-message.text-success {
    color: #198754;
}

.password-validation-message.text-danger {
    color: #dc3545;
}

/* Home Page Styles */
.home-card {
    border-radius: 1rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.home-card .card-body {
    padding: 2rem;
}

.home-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    margin-right: 1.5rem;
}

.home-card-icon i {
    font-size: 1.75rem;
}

.home-card-content {
    flex: 1;
}

.home-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.home-card-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0;
}

.home-navbar {
    background: linear-gradient(45deg, #025792, maroon);
    padding: 1rem;
}

.home-navbar .navbar-brand {
    color: white;
    font-weight: 600;
}

.home-navbar .welcome-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.home-navbar .notifications-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.home-navbar .notifications-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.home-navbar .nav-item-container {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.home-navbar .nav-item-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.home-navbar .nav-icon {
    font-size: 1.5rem;
    color: white;
}

.home-navbar .nav-text {
    font-size: 0.875rem;
    color: white;
    margin-top: 0.25rem;
}

.home-navbar .nav-item-container.active {
    background: rgba(255, 255, 255, 0.2);
}

.home-navbar .nav-item-container.active .nav-icon {
    color: white;
}

.home-navbar .nav-item-container.active .nav-text {
    color: white;
    font-weight: 600;
}

/* Rich Text Editor Styles */
.rich-editor-container {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: white;
    margin-bottom: 1rem;
}

.rich-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.rich-editor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.rich-editor-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.rich-editor-button.active {
    background-color: #e9ecef;
    border-color: #0d6efd;
    color: #0d6efd;
}

.rich-editor-content {
    min-height: 200px;
    max-height: 400px;
    padding: 1rem;
    overflow-y: auto;
    outline: none;
    line-height: 1.5;
}

.rich-editor-content:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.rich-editor-content p {
    margin-bottom: 1rem;
}

.rich-editor-content ul,
.rich-editor-content ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rich-editor-content blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #6c757d;
}

.rich-editor-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.rich-editor-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.rich-editor-content img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.rich-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rich-editor-content th,
.rich-editor-content td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.rich-editor-content th {
    background-color: #f8f9fa;
}

.rich-editor-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 0.25rem;
}

.rich-editor-dropdown {
    position: relative;
    display: inline-block;
}

.rich-editor-dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1;
    border-radius: 0.25rem;
    border: 1px solid #dee2e6;
}

.rich-editor-dropdown-content.show {
    display: block;
}

.rich-editor-dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rich-editor-dropdown-item:hover {
    background-color: #f8f9fa;
}

.rich-editor-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
}

.rich-editor-color-option {
    width: 24px;
    height: 24px;
    border-radius: 0.25rem;
    cursor: pointer;
    border: 1px solid #dee2e6;
}

.rich-editor-color-option:hover {
    transform: scale(1.1);
}

.accordion-button::after,
.accordion-button:not(.collapsed)::after {
    display:none;
}

/* Rich Text Editor Styles */
.rte-container {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    background-color: white;
    margin-bottom: 1rem;
    min-height: 400px;
    min-width: 100%;
    height: auto;
    transition: height 0.1s ease-in-out;
    will-change: height;
    overflow: hidden;
}

.rte-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.rte-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    background-color: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.rte-button:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.rte-button.active {
    background-color: #e9ecef;
    border-color: #0d6efd;
    color: #0d6efd;
}

.rte-separator {
    width: 1px;
    height: 24px;
    background-color: #dee2e6;
    margin: 0 0.25rem;
}



.content-container {
    overflow-y: auto;
    max-height: 353px;
}

.rte-editor:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.rte-editor p {
    margin-bottom: 1rem;
}

.rte-editor ul,
.rte-editor ol {
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rte-editor blockquote {
    border-left: 4px solid #dee2e6;
    padding-left: 1rem;
    margin-left: 0;
    margin-bottom: 1rem;
    color: #6c757d;
}

.rte-editor pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.rte-editor code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: monospace;
}

.rte-editor img {
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
}

.rte-editor table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.rte-editor th,
.rte-editor td {
    border: 1px solid #dee2e6;
    padding: 0.5rem;
}

.rte-editor th {
    background-color: #f8f9fa;
}

/* Response Detail Editor Watermark */
.response-detail-editor {
    position: relative;
}

.response-detail-editor::after {
    content: "PUBLIC";
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 48px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Filter Options Styles */
.filter-options {
    padding-right: 8px;
}

.filter-options::-webkit-scrollbar {
    width: 8px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ROI Table Accordions */
.accordion-toggle {
    transition: background-color 0.2s ease;
}

.accordion-toggle:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.accordion-toggle[aria-expanded="true"] {
    background-color: rgba(0, 0, 0, 0.05);
}

.accordion-toggle .bi-chevron-down {
    transition: transform 0.3s ease;
}

.accordion-toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

.roi-details-container {
    background-color: #f8f9fa;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

/* ROI Timeline */
.roi-timeline {
    position: relative;
    padding-left: 20px;
}

.roi-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background-color: #dee2e6;
    z-index: 1;
}

.roi-timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 30px;
}

.roi-timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -20px;
    top: 0;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.roi-timeline-content {
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.roi-timeline-content .card {
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.roi-timeline-content .card-header {
    padding: 0.75rem 1rem;
    background-color: rgba(0, 0, 0, 0.02);
}

.roi-timeline-content .card-body {
    padding: 1rem;
}

/* Timeline item colors */
.bg-primary {
    background-color: #025792 !important;
}

.bg-success {
    background-color: #28a745 !important;
}

.bg-info {
    background-color: #17a2b8 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

#pageSizeSelector {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: auto; 
    background-image: none !important; 
    background: white !important; 
    padding-right: 0.75rem !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(0, 0, 0, 0);
}

/* Override Bootstrap validation icons for date field */
#new_due_date.is-invalid {
    background-image: none !important;
    padding-right: 0.375rem !important;
}

#new_due_date.is-valid {
    background-image: none !important;
    padding-right: 0.375rem !important;
}

/* Ensure no validation icons appear on date field */
.was-validated #new_due_date.is-invalid {
    background-image: none !important;
    padding-right: 0.375rem !important;
}

.was-validated #new_due_date.is-valid {
    background-image: none !important;
    padding-right: 0.375rem !important;
}

/* Override RTE editor height to prevent vertical expansion */
.rte-editor {
    min-height: 300px !important;
    overflow-y: auto !important;
    padding: 1rem;
    background: white;
    height: 200px;
    line-height: 1.5;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    resize: vertical;
}

.was-validated #new_due_date.is-valid {
    background-image: none !important;
    padding-right: 0.375rem !important;
}

.resize-v {
    resize: vertical;
    will-change: height;
    transition: height 0.3s ease-in-out;
    overflow-y: auto !important;
    min-height: 300px !important;
    max-height: none !important;
    height: 200px;
    font-family: inherit !important;
    font-size: 14px !important;
    width: 100%;
}




