.form-control {
    border-color: #a7bdd4 !important;
}
.select2-container .select2-selection--multiple {
    border: 1px solid #a7bdd4 !important;
}
.badge-success {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}
.badge-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 500;
}
.metismenu li {
    margin-bottom: 10px;
}
#sidebar-menu ul li a {
    padding: 7px 20px !important;
    border-radius: 7px;
    margin: 0 10px;
}
/* #sidebar-menu ul li a i {
    color: var(--bs-sidebar-menu-item-color) !important;
}
#side-menu li a:hover {
    background-color: #f0f4ff;
    color: #1a73e8;
}
#side-menu li.mm-active > a {
    background-color: var(--bs-sidebar-menu-item-active-bg);
    color: #fff;
}

#side-menu li.mm-active > a i {
    color: #fff !important;
} */
/* Modify existing sidebar menu item styles */
/* Base sidebar menu item styles */
#sidebar-menu ul li a {
    color: #282727;
    transition: all 0.2s ease-in-out;
    position: relative;
    padding: 7px 20px !important;
    border-radius: 7px;
    margin: 0 10px;
    background: transparent;
    text-decoration: none;
}

/* Active state styles */
#side-menu li.mm-active > a {
    background-color: #282727;
    color: #ffffff !important;
}

/* Remove hover color flash */
#side-menu li a:hover {
    background-color: #f0f4ff;
    color: #282727 !important;
}

/* Prevent color flash during transitions */
#side-menu li a,
#side-menu li a i,
#side-menu li a span {
    transition: all 0.2s ease-in-out;
}

/* Active state for icons */
#side-menu li.mm-active > a i {
    color: #ffffff !important;
}

/* Container styles */
.metismenu li {
    margin-bottom: 10px;
    position: relative;
}

/* Remove any existing before/after pseudo elements */
#sidebar-menu ul li a:before,
#sidebar-menu ul li a:after {
    display: none;
}

/* Icon base styles */
#sidebar-menu ul li a i {
    display: inline-block;
    min-width: 1.5rem;
    padding-right: 0.5rem;
    color: inherit;
}
#side-menu li.mm-active > a {
    background-color: #282727;
    color: #fff !important;
}
/* Base styles for collapsed sidebar */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a {
    min-height: 0 !important;
    border-radius: 0px;
    margin: 0px;
    color: #282727;
}

/* Fix active state in collapsed mode */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li.mm-active > a {
    background-color: #282727;
    color: #ffffff !important;
}

/* Fix icon visibility in collapsed mode */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a i {
    color: inherit;
}

/* Fix hover state in collapsed mode */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a:hover {
    background-color: #f0f4ff;
    color: #282727 !important;
}

/* Ensure content remains visible during transitions */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a,
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a i {
    transition: all 0.2s ease-in-out;
}

/* Fix tooltip/submenu visibility */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li:hover > a {
    color: #282727;
    background-color: #f0f4ff;
    transition: none;
}

/* Ensure active state is visible in collapsed hover */
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li.mm-active:hover > a {
    background-color: #282727;
    color: #ffffff !important;
}
/* Container styles */
.metismenu li {
    margin-bottom: 10px;
}

/* Ensure content remains visible */
.vertical-menu {
    background: var(--bs-sidebar-bg);
    z-index: 1001;
}
.vertical-collpsed .vertical-menu #sidebar-menu > ul > li > a {
    min-height: 0 !important;
    border-radius: 0px;
    margin: 0px;
}
.page-title-box {
    padding: 0;
    padding-bottom: 1.5rem;
}
.page-title-box .page-title {
    font-size: 20px;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #212529;
    --bs-btn-border-color: #212529;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #343a40;
    --bs-btn-hover-border-color: #343a40;

    --bs-btn-focus-shadow-rgb: 52, 58, 64;
    --bs-btn-active-color: #fff;

    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #000000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.25);

    --bs-btn-disabled-color: #adb5bd;
    --bs-btn-disabled-bg: #495057;
    --bs-btn-disabled-border-color: #495057;
}
.btn-outline-secondary {
    --bs-btn-color: #a3abb4;
}
#editorPopup {
    display: flex;
    flex-direction: column;
    height: 60vh; /* fixed height */
}

#editorPopup form {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

#editorPopup .editor-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

.ck.ck-editor {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ck.ck-editor__main {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.ck-editor__editable_inline {
    height: 100% !important;
    min-height: 200px !important;
    max-height: none !important;
    overflow-y: auto !important;
}

#editorPopup .text-end {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px;
    border-top: 1px solid #dee2e6;
    z-index: 1;
}

/* Custom scrollbar styles */
.ck-editor__editable_inline::-webkit-scrollbar {
    width: 6px;
}

.ck-editor__editable_inline::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ck-editor__editable_inline::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.ck-editor__editable_inline::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* For Firefox */
.ck-editor__editable_inline {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

/* Apply same styles to editor wrapper */
#editorPopup .editor-wrapper::-webkit-scrollbar {
    width: 6px;
}

#editorPopup .editor-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#editorPopup .editor-wrapper::-webkit-scrollbar-thumb {
    background: #e2e1e1;
    border-radius: 3px;
}

#editorPopup .editor-wrapper::-webkit-scrollbar-thumb:hover {
    background: #e2e1e1;
}
.clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* show only 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.navbar-header {
    background-color: #fff;
    border-bottom: 1px solid #e3dbdb;
    height: 50px;
}
.vertical-menu {
    top: 50px;
}

/* Subtle card hover */
.discussion-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.discussion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Pulse effect for "New" badge */
.new-badge {
    position: relative;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}
.table-rep-plugin .fixed-solution .sticky-table-header {
    top: 50px !important;
    background-color: #626ed4;
}
.account-pages .logo-admin {
    border-bottom: 2px solid #5b5fb1;
}
/* Reports */

.report-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 0.8rem 1.5rem rgba(0, 0, 0, 0.15);
}

.report-comment-icon {
    font-size: 24px !important;
}
