/*  */
* {
    scrollbar-width: thin;          /* auto | thin | none */
    scrollbar-color: #888 #f1f1f1;  /* thumb | track */
}

#datatable-main_filter {
    display: none !important;
}

select {
    appearance: auto !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    background: none !important;
    padding: normal !important;
}

.disabled-row {
    opacity: 0.6;
    pointer-events: none;
    background-color: #f5f5f5;
}

.disabled-row input,
.disabled-row select,
.disabled-row textarea,
.disabled-row button {
    cursor: not-allowed;
}

.disabled-cell {
    background-color: #f2f2f2;
    /* light gray */
    color: #999;
    /* dimmed text */
    pointer-events: none;
    /* disable clicking */
    opacity: 0.6;
    /* faded look */
}

.brand-title {
    color: #fff;
    font-size: 28px;
}

input[disabled="true"],
textarea[disabled="true"],
.form-select[disabled="true"],
select[disabled="true"] {
    background-color: #f2f2f2 !important;
    color: #888 !important;
    cursor: not-allowed !important;
}

.form-select {
    background-color: #fff !important;
}

.card {
    height: auto !important;
}

/*  */

.user-agent-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

/* 
body {
    background-color: #f5f7fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 20px;
} */

.session-card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    margin-bottom: 25px;
}

.session-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* .card-header {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.card-header h3 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
}
 */
.card-header h3 i {
    margin-right: 10px;
}

/* .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

.form-control:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
} */

/* .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
} */

.session-info {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.session-info p {
    margin-bottom: 5px;
    color: #495057;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    color: #fff;
    background-color: #28a745;
}

.status-inactive {
    color: #fff;
    background-color: #dc3545;
}

.duration-badge {
    background-color: #4cc9f0;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.user-agent-container {
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #3f37c9;
}

/* Activity Log Styles */
.activity-log {
    margin-top: 30px;
}

.activity-item {
    border-left: 4px solid #4361ee;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.activity-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-type {
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.activity-type {
    background-color: rgba(76, 201, 240, 0.2);
    color: #4895ef;
}

/* .activity-login {
            background-color: rgba(76, 201, 240, 0.2);
            color: #4895ef;
        }
        
        .activity-download {
            background-color: rgba(40, 167, 69, 0.2);
            color: #28a745;
        }
        
        .activity-page_view {
            background-color: rgba(108, 117, 125, 0.2);
            color: #6c757d;
        }
        
        .activity-search {
            background-color: rgba(248, 150, 30, 0.2);
            color: #f8961e;
        }
        
        .activity-comment {
            background-color: rgba(67, 97, 238, 0.2);
            color: #4361ee;
        }
        
        .activity-update {
            background-color: rgba(73, 149, 239, 0.2);
            color: #4895ef;
        }
        
        .activity-delete {
            background-color: rgba(249, 65, 68, 0.2);
            color: #f94144;
        }
        
        .activity-logout {
            background-color: rgba(108, 117, 125, 0.2);
            color: #6c757d;
        }
        
        .activity-time {
            color: #6c757d;
            font-size: 0.85rem;
        } */

.activity-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.activity-detail-item {
    display: flex;
    flex-direction: column;
}

.activity-detail-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 3px;
}

.activity-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
}

.activity-url {
    grid-column: 1 / -1;
    word-break: break-all;
}

.activity-json {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    max-height: 120px;
    overflow-y: auto;
}

.formatted-data {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 12px;
}

.data-item {
    display: flex;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e9ecef;
}

.data-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.data-label {
    font-weight: 600;
    min-width: 120px;
    color: #495057;
}

.data-value {
    flex: 1;
    color: #212529;
}

.activity-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.activity-action-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.activity-action-btn:hover {
    background-color: #f8f9fa;
}

.activity-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: #4361ee;
    color: white;
    border-color: #4361ee;
}

.filter-btn:hover:not(.active) {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

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

.status-success {
    background-color: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

@media (max-width: 768px) {
    .activity-details {
        grid-template-columns: 1fr;
    }

    .activity-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .activity-time {
        margin-top: 5px;
    }
}

/*  */
/* comments */
.comment-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nested-comment {
    margin-left: 40px;
    border-left: 3px solid #e9ecef;
    padding-left: 15px;
}

.comment-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
}

.comment-body {
    padding: 15px;
}

.comment-actions {
    padding: 10px 15px;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 8px 8px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.reply-form {
    /* display: none; */
    margin-top: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.comment-date {
    font-size: 0.85rem;
    color: #6c757d;
}

.character-count {
    font-size: 0.8rem;
    color: #6c757d;
    text-align: right;
}

.character-count.warning {
    color: #ffc107;
}

.character-count.danger {
    color: #dc3545;
}

/* comments */
/* 
table.dataTable tbody tr.table-row-deleted,
table.dataTable tbody tr.table-row-deleted td 
{
  background-color: rgb(244 106 106 / 28%) !important;
}

.nav-header .brand-title {
    color: #fff !important;
    max-width: fit-content !important;
} */

/* scroll bar */

.content-section {
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: #888 #f1f1f1;
    /* Firefox */
}

/* For Webkit browsers */
.content-section::-webkit-scrollbar {
    width: 10px;
}

.content-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.content-section::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 5px;
    border: 2px solid #f1f1f1;
}

.content-section::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7e8796 0%, #6a11cb 100%);
}

.chat-contacts {
    overflow-y: auto;
    max-height: 200px !important;
    overflow-x: hidden;
}

.custom-modal .modal-body {
    background-color: var(--bs-body-bg) !important;
}

/*  */
.search-result-item:hover,
.recent-search-item:hover {
    background-color: rgba(1, 163, 255, 0.1) !important;
}

.search-result-item:active,
.recent-search-item:active {
    background-color: rgba(1, 163, 255, 0.2) !important;
    transform: translateY(1px);
}

.search-area-header .dropdown-menu {
    min-width: 350px;
}

.height300 {
    max-height: 300px;
    overflow-y: auto;
}

/* Scrollbar styling */
.height300::-webkit-scrollbar {
    width: 5px;
}

.height300::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.height300::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.height300::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/*  */
.nav-header .brand-title {
    color: #fff !important;
    font-size: 16px;
    width: 100%;
}

/* table.dataTable tbody td {
    font-size: 16px !important;
    color: #000000a8 !important;
}

table.dataTable thead th {
    font-size: 15px !important;
}

.form-label, 
.col-form-label {
    color: #000000a8 !important;
    font-size: 15px !important;
} */
/*  */

/* ============================================
   TABLE BASE STYLES
   ============================================ */
.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

.table-row-deleted {
    background-color: rgba(220, 53, 69, 0.05);
}

.table-row-deleted:hover {
    background-color: rgba(220, 53, 69, 0.08);
}

/* ============================================
   INDEX COLUMN
   ============================================ */
.table-index {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #dee2e6;
}

/* ============================================
   NAME COLUMN
   ============================================ */
.item-name-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-avatar {
    flex-shrink: 0;
}

.item-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
}

.item-avatar-default {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    border: 2px solid #e9ecef;
}

.item-info {
    min-width: 0;
}

.item-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.item-creator {
    display: block;
    color: #6c757d;
    font-size: 0.8rem;
    margin-top: 2px;
}

.item-creator i {
    margin-right: 4px;
    font-size: 0.75rem;
}

/* ============================================
   DESCRIPTION COLUMN
   ============================================ */
.description-cell {
    cursor: default;
    max-width: 200px;
    word-wrap: break-word;
}

.description-text {
    display: inline-block;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.4;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #0d6efd;
    word-wrap: break-word;
    max-width: 200px;
    /* Control width */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* Keep on one line */
}

.description-empty {
    color: #adb5bd;
    font-style: italic;
}

/* ============================================
   MEMBERS/COUNT COLUMN
   ============================================ */
.members-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.members-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #e7f1ff;
    color: #0d6efd;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 1px solid #cfe2ff;
}

.members-badge i {
    font-size: 0.8rem;
}

.active-members-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.active-members-badge i {
    font-size: 6px;
}

/* ============================================
   DATE/TIME COLUMN
   ============================================ */
.date-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-main {
    font-weight: 600;
    color: #212529;
    font-size: 0.875rem;
}

.date-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.date-ago {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #adb5bd;
    font-size: 0.75rem;
    margin-top: 4px;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 3px;
}

.date-ago i {
    font-size: 0.7rem;
}

/* ============================================
   ACTION COLUMN
   ============================================ */
.action-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Base Button Style */
.btn-action {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-action-2 {
    /* width: 40px; */
    /* height: 40px; */
    /* border-radius: 12px; */
    /* border: none; */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    /* color: white; */
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Button Colors with Gradients */
.btn-view {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.btn-edit {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.btn-delete {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.btn-restore {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
}

.btn-ban {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-sync {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

/* Hover Effects */
.btn-action:hover,
.btn-action-2:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-action:active,
.btn-action-2:active {
    transform: translateY(-2px) scale(1.05);
}

/* Ripple Effect */
.btn-action::after,
.btn-action-2::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-action:focus:not(:active)::after,
.btn-action-2:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Tooltip Styling */
[data-bs-toggle="tooltip"] {
    position: relative;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-action {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }

    .action-group {
        gap: 6px;
    }
}




/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .item-name-cell {
        gap: 8px;
    }

    .item-avatar-img,
    .item-avatar-default {
        width: 32px;
        height: 32px;
    }

    .description-text {
        max-width: 150px;
    }

    .members-badge {
        padding: 4px 8px;
        font-size: 0.8rem;
    }
}

/* ============================================
   TYPE COLUMN (Updated for your enum values)
   ============================================ */
.type-cell {
    min-width: 130px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.type-announcements {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

.type-webinars {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.2);
}

.type-workshops {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.2);
}

.type-events {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

.type-other {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* General */
.type-general {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Security Alert */
.type-security_alert {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Market Trend */
.type-market_trend {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* Claims Update */
.type-claims_update {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.2);
}

/* Legal Update */
.type-legal_update {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.2);
}

/* Technical Update */
.type-technical_update {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

/* Guidance */
.type-guidance {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Event */
.type-event {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.type-icon {
    font-size: 0.75rem;
}

/* ============================================
   VOTES COLUMN
   ============================================ */

/* ============================================
   TYPE COLUMN (For your enum values)
   ============================================ */
.type-cell {
    min-width: 130px;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

/* General */
.type-general {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Security Alert */
.type-security_alert {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Market Trend */
.type-market_trend {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* Claims Update */
.type-claims_update {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border: 1px solid rgba(111, 66, 193, 0.2);
}

/* Legal Update */
.type-legal_update {
    background-color: rgba(32, 201, 151, 0.1);
    color: #20c997;
    border: 1px solid rgba(32, 201, 151, 0.2);
}

/* Technical Update */
.type-technical_update {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border: 1px solid rgba(253, 126, 20, 0.2);
}

/* Guidance */
.type-guidance {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

/* Event */
.type-event {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border: 1px solid rgba(13, 202, 240, 0.2);
}

.type-icon {
    font-size: 0.75rem;
}

/* ============================================
   OPTIONS/VOTES COLUMN (For dynamic options table)
   ============================================ */
.votes-cell {
    min-width: 120px;
}

.votes-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.votes-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #212529;
    min-width: 24px;
    text-align: center;
}

.votes-breakdown {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
}

.option-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
}

.option-count {
    font-weight: 600;
    color: #212529;
}

.option-name {
    color: #6c757d;
}

.option-percentage {
    font-size: 0.65rem;
    color: #adb5bd;
    margin-left: 2px;
}

.votes-progress-container {
    width: 80px;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}

.votes-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.votes-multiple {
    display: flex;
    gap: 2px;
    width: 80px;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
}

.option-progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}

/* Different colors for multiple options */
.option-color-1 {
    background-color: #0d6efd;
}

.option-color-2 {
    background-color: #6f42c1;
}

.option-color-3 {
    background-color: #20c997;
}

.option-color-4 {
    background-color: #fd7e14;
}

.option-color-5 {
    background-color: #dc3545;
}

.option-color-6 {
    background-color: #6c757d;
}

.votes-simple {
    display: flex;
    align-items: center;
    gap: 6px;
}

.votes-icon {
    color: #6c757d;
    font-size: 0.875rem;
}

.votes-number {
    font-weight: 600;
    color: #212529;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .type-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .votes-breakdown {
        flex-direction: column;
        gap: 2px;
    }

    .option-badge {
        padding: 1px 4px;
        font-size: 0.65rem;
    }

    .votes-progress-container,
    .votes-multiple {
        width: 60px;
    }
}

/* ============================================
   AUDIENCE COLUMN
   ============================================ */
.audience-display {
    min-width: 120px;
}

.audience-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.audience-primary {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}

.audience-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border-color: rgba(13, 202, 240, 0.2);
}

.audience-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.audience-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

.audience-badge i {
    font-size: 0.75rem;
}

/* ============================================
   STATISTICS COLUMN
   ============================================ */
.statistics-container {
    min-width: 150px;
}

.statistics-bars {
    margin-bottom: 6px;
}

.statistics-progress {
    display: flex;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    background-color: #e9ecef;
}

.progress-segment {
    height: 100%;
    transition: width 0.3s ease;
}

.statistics-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.stat-badge i {
    font-size: 0.7rem;
}

.stat-accepted {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.stat-rejected {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.stat-maybe {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.stat-total {
    background-color: rgba(13, 202, 240, 0.1);
    color: #0dcaf0;
    border-color: rgba(13, 202, 240, 0.2);
}

/* ============================================
   RESPONSE COLUMN
   ============================================ */
.response-display,
.response-empty {
    min-width: 120px;
}

.response-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    border: 1px solid transparent;
}

.response-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.response-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.2);
}

.response-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.2);
}

.response-secondary {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

.response-badge i {
    font-size: 0.75rem;
}

.response-text {
    flex: 1;
}

.response-reason {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 2px 6px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-top: 2px;
}

.response-reason i {
    font-size: 0.7rem;
}

.response-reminder {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fd7e14;
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 2px;
}

.response-reminder i {
    font-size: 0.7rem;
}

@media (max-width: 992px) {
    .statistics-numbers {
        flex-direction: column;
        align-items: flex-start;
    }

    .audience-badge,
    .response-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }

    .date-cell {
        min-width: 80px;
    }
}

/* ============================================
   INTEREST TYPE COLUMN
   ============================================ */
.interest-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.interest-type-demo {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}

.interest-type-pricing {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

.interest-type-partnership {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border-color: rgba(111, 66, 193, 0.2);
}

.interest-type-technical {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border-color: rgba(253, 126, 20, 0.2);
}

.interest-type-other {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

.interest-type-badge i {
    font-size: 0.75rem;
}

/* ============================================
   MODULE COLUMN
   ============================================ */
.module-cell {
    min-width: 100px;
}

.module-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.module-secumetrix {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}

.module-general {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border-color: rgba(108, 117, 125, 0.2);
}

.module-badge i {
    font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .interest-type-badge,
    .module-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================
   EMAIL COLUMN
   ============================================ */
.email-cell {
    min-width: 160px;
}

.email-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.email-icon {
    color: #6c757d;
    font-size: 0.875rem;
}

.email-link {
    color: #0d6efd;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    word-break: break-all;
}

.email-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

.email-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #198754;
    font-size: 0.7rem;
    margin-left: 4px;
}

.email-verified i {
    font-size: 0.6rem;
}

/* Responsive */
@media (max-width: 768px) {
    .email-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .email-link {
        font-size: 0.8rem;
    }
}

/* ============================================
   DOCUMENT TYPE COLUMN (for flyer, checklist, presentation, all)
   ============================================ */
.doc-type-cell {
    min-width: 120px;
}

.doc-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid transparent;
}

/* Flyer */
.doc-type-flyer {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border-color: rgba(13, 110, 253, 0.2);
}

/* Checklist */
.doc-type-checklist {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.2);
}

/* Presentation */
.doc-type-presentation {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border-color: rgba(111, 66, 193, 0.2);
}

/* All */
.doc-type-all {
    background-color: rgba(253, 126, 20, 0.1);
    color: #fd7e14;
    border-color: rgba(253, 126, 20, 0.2);
}

.doc-type-badge i {
    font-size: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .doc-type-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
}

/* ============================================
   FAQ QUESTION & ANSWER COLUMNS (No JS)
   ============================================ */
.question-cell {
    min-width: 200px;
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}

.answer-cell {
    min-width: 300px;
}

.answer-content {
    display: inline-block;
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
    position: relative;
    cursor: default;
}

.answer-content:hover::after {
    content: attr(title);
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #212529;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    z-index: 1000;
    white-space: pre-wrap;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.answer-content-truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    cursor: help;
}

.answer-content-full {
    color: #495057;
    font-size: 0.875rem;
    line-height: 1.5;
    background-color: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 3px solid #0d6efd;
}

/* Responsive */
@media (max-width: 768px) {
    .question-cell {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .answer-cell {
        min-width: 200px;
    }

    .answer-content-truncated {
        -webkit-line-clamp: 3;
        max-height: 4.5em;
    }
}

/* ============================================
   COMPANY COLUMN
   ============================================ */
.company-cell {
    min-width: 150px;
}

.company-name {
    color: #212529;
    font-weight: 500;
    font-size: 0.9rem;
}

.company-name-empty {
    color: #adb5bd;
    font-style: italic;
}

/* ============================================
   PUBLISHED AT COLUMN
   ============================================ */
.published-cell {
    min-width: 120px;
}

.published-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.published-date {
    font-weight: 600;
    color: #212529;
    font-size: 0.875rem;
}

.published-time {
    color: #6c757d;
    font-size: 0.8rem;
}

.published-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 4px;
}

.published-yes {
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.published-no {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
    opacity: 0.6;
}

.published-badge i {
    font-size: 0.7rem;
}

/* Highlight unpublished items */
.row-unpublished td:not(.published-cell) {
    opacity: 0.7;
}

.row-unpublished .item-title {
    color: #6c757d;
}

.row-unpublished .description-text {
    background-color: #f8f9fa;
    border-left-color: #adb5bd;
}

/* Responsive */
@media (max-width: 768px) {
    .published-cell {
        min-width: 100px;
    }

    .published-date {
        font-size: 0.8rem;
    }

    .published-time {
        font-size: 0.75rem;
    }
}

/* ============================================
   ROW-UNPUBLISHED CLASS (Standalone, not affecting entire row)
   ============================================ */
.row-unpublished .item-title {
    color: #6c757d;
    font-style: italic;
}

.row-unpublished .item-avatar-default {
    background: linear-gradient(135deg, #adb5bd 0%, #6c757d 100%);
}

.row-unpublished .description-text {
    background-color: #f8f9fa;
    border-left-color: #adb5bd;
}

.row-unpublished .date-main {
    color: #6c757d;
}

.row-unpublished .published-badge {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.2);
}

/* Only affects specific elements, not the entire row */

.text-black {
    color: #000 !important;
}

select {
    padding: 0.6875rem 1.25rem;
    border-color: #dddddd !important;
    line-height: 1.5;
    color: #495057 !important;
}

.font-10 {
    font-size: 10px !important;
}

.font-11 {
    font-size: 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

/* Default arrow down */
.arrow-icon.fa-chevron-down {
    transition: transform 0.3s ease;
}

/* When menu is open, rotate 180deg to point up */
[aria-expanded="true"] .arrow-icon.fa-chevron-down {
    transform: rotate(180deg);
}

/* sidebar overrigh */
.nav-text {
    width: 110px;
    word-wrap: break-word;
}

.dlabnav .metismenu .has-arrow:after {
    font-size: 15px;
}

[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu>li .has-arrow:after {
    right: 0.5rem;
}

.dlabnav .metismenu ul a:hover,
.dlabnav .metismenu ul a:focus,
.dlabnav .metismenu ul a.mm-active {
    background: var(--bs-body-bg);
}

.dlabnav .metismenu>li:focus>a {
    background: var(--bs-body-bg);
}

.dlabnav .metismenu ul a:hover i,
.dlabnav .metismenu ul a:focus i,
.dlabnav .metismenu ul a.mm-active i {
    color: var(--primary);
}

[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu>ul>a,
[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu>li>a,
[data-sidebar-style="full"][data-layout="vertical"] .dlabnav .metismenu ul a {
    font-size: 10.5px;
}

/* bug fixed */
.input-group>.form-control:focus,
.input-group>.form-select:focus,
.input-group>.form-floating:focus-within {
    z-index: 0;
}

/* new */
.view-groups-section {
    margin: 2rem 0;
}

.view-group-badge {
    /* background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); */
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin: 0.25rem;
    display: inline-flex;
    align-items: center;
    /* box-shadow: 0 3px 10px rgba(46, 204, 113, 0.2); */
}

.view-group-badge i {
    margin-right: 0.5rem;
}

/* Role badge styling */
.role-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    transition: all 0.2s ease-in-out;
}

.badge-subtitle {
    font-size: 0.65rem;
    opacity: 0.8;
    margin-top: 0.1rem;
    font-weight: 500;
}

/* Role-specific colors */
.badge-role-admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 1px solid #5a67d8;
}

.badge-role-group {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: 1px solid #3182ce;
}

.badge-role-group-sub-admin {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: 1px solid #38a169;
}

.badge-role-member {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    border: 1px solid #dd6b20;
}

.badge-role-sub-admin {
    background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
    color: white;
    border: 1px solid #805ad5;
}

.badge-role-default {
    background: linear-gradient(135deg, #a0aec0 0%, #718096 100%);
    color: white;
    border: 1px solid #718096;
}

/* Assessable level badge styling */
.level-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    vertical-align: baseline;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.level-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Level-specific colors with metallic effects */
.badge-level-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
    color: #fff8e1;
    border: 2px solid #cd7f32;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.badge-level-bronze::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.1) 100%);
    transform: rotate(30deg);
}

.badge-level-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    color: #333;
    border: 2px solid #c0c0c0;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.badge-level-silver::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.3) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.3) 100%);
    transform: rotate(30deg);
}

.badge-level-gold {
    background: linear-gradient(135deg, #ffd700 0%, #daa520 100%);
    color: #333;
    border: 2px solid #ffd700;
    font-weight: 800;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.badge-level-gold::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0) 50%,
            rgba(255, 255, 255, 0.4) 100%);
    transform: rotate(30deg);
}

/* Icon styling */
.level-badge i {
    font-size: 0.9em;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .role-badge,
    .level-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    .badge-subtitle {
        font-size: 0.6rem;
    }
}

table.dataTable tbody tr.table-row-deleted {
    background-color: #b0bed9 !important;
}

/*  */
.type-badge-post {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.type-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.type-discussion {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.type-question {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.category-badge {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

/* discusson */

.stats-cell {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 2px;
}

.stat-count {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.solved-badge {
    background-color: #d1fae5;
    color: #065f46;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin-left: 5px;
}

.locked-badge {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin-left: 5px;
}

.pending-badge {
    background-color: #fef3c7;
    color: #92400e;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    display: inline-block;
    margin-left: 5px;
}




.vote-buttons .btn-vote {
    transition: all 0.3s;
}

.vote-buttons .btn-vote.active {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.comment-reply {
    margin-left: 40px;
    border-left: 2px solid #dee2e6;
    padding-left: 15px;
}

.category-badge {
    background-color: "{{ $discussionThread->category->color ?? '#6c757d' }}";
    color: white;
}

/*  */

.btn-outline-purple {
    color: #6f42c1;
    border-color: #6f42c1;
}

.btn-outline-purple:hover {
    background-color: #6f42c1;
    color: white;
}

.btn-outline-teal {
    color: #20c997;
    border-color: #20c997;
}

.btn-outline-teal:hover {
    background-color: #20c997;
    color: white;
}

.btn-outline-orange {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-orange:hover {
    background-color: #fd7e14;
    color: white;
}

/* comments */

.vote-btn.active {
    border-width: 2px;
}

.vote-btn.btn-outline-success.active {
    background-color: #198754;
    color: white;
}

.vote-btn.btn-outline-danger.active {
    background-color: #dc3545;
    color: white;
}

.vote-count {
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-card.bg-light {
    border-color: #dee2e6;
}

.comment-card.bg-light.opacity-75 {
    opacity: 0.75;
}

.score-display .badge {
    font-size: 0.85rem;
    padding: 0.35rem 0.65rem;
}

.mark-answer-btn:hover {
    background-color: #0d6efd;
    color: white;
}

.child-comments {
    border-left: 2px dashed #dee2e6;
    padding-left: 20px;
    margin-left: 10px;
}

.dropdown-menu {
    min-width: 180px;
}

.dropdown-item {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

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

.dropdown-item.text-success:hover {
    background-color: #d1fae5;
}

.dropdown-item.text-warning:hover {
    background-color: #fef3c7;
}

.dropdown-item.text-danger:hover {
    background-color: #fee2e2;
}

/* Enhanced Comment Form Styles */
.comment-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
    padding: 1.5rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.comment-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0d6efd, #6610f2);
    border-radius: 4px 0 0 4px;
}

.comment-form-section.is-approved::before {
    background: #ffc107;
}

.comment-form-section.is-locked::before {
    background: #dc3545;
}


.comment-form-section .card-title {
    color: #212529;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.comment-form-section .card-title i {
    color: #0d6efd;
    font-size: 1.2rem;
}

.comment-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    margin-right: 12px;
}

.comment-form-user-info {
    display: flex;
    align-items: center;
}

.comment-form-user-info h6 {
    margin: 0;
    font-weight: 600;
    color: #212529;
}

.comment-form-user-info small {
    color: #6c757d;
    font-size: 0.85rem;
}

.char-count textarea {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 12px;
    background-color: white;
}

.char-count textarea:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.char-count textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.character-count {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: right;
    margin-top: 5px;
}

.char-counter {
    font-weight: 600;
    color: #0d6efd;
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.comment-form-actions .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-form-actions .btn-primary {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    border: none;
    box-shadow: 0 4px 6px rgba(13, 110, 253, 0.2);
}

.comment-form-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(13, 110, 253, 0.3);
}

.comment-form-actions .btn-primary:active {
    transform: translateY(0);
}

.comment-form-actions .btn-secondary {
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.comment-form-actions .btn-secondary:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.form-tips {
    background-color: #e7f1ff;
    border-left: 4px solid #0d6efd;
    padding: 12px;
    border-radius: 4px;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #495057;
}

.form-tips h6 {
    color: #0d6efd;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-tips ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.form-tips li {
    margin-bottom: 3px;
}

.voting-section {
    padding: 10px 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-form-section {
        padding: 1rem;
    }

    .comment-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .comment-form-actions {
        flex-direction: column;
        gap: 8px;
    }

    .comment-form-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

.comment-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.user-avatar {
    object-fit: cover;
}

.voting-section {
    min-width: 60px;
}

.vote-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vote-btn.active {
    border-width: 2px;
}

.comment-text {
    line-height: 1.6;
    font-size: 15px;
}

/* Status indicators */
.bg-success-subtle {
    background-color: #d1e7dd !important;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .comment-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .comment-header .d-flex>div:last-child {
        margin-top: 10px;
        width: 100%;
    }

    .comment-body .d-flex {
        flex-direction: column;
    }

    .voting-section {
        flex-direction: row !important;
        width: 100%;
        justify-content: center;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #dee2e6;
    }
}

/*  */

.border-best-answer {
    border: 2px dashed #198754;
}

.border-pending-approval {
    border: 2px dashed #ffc107;
}

.btn-sm-custom {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bg-primary-opacity-10 {
    background-color: rgba(var(--bs-primary-rgb), 0.1) !important;
}

.link-primary-color-underline:hover {
    cursor: pointer !important;
    transition: 0.2s !important;
    text-decoration: underline !important;
    color: rgb(13, 110, 253) !important;
}

/********************************************************************/
/***----- Extend in main style -----------start********/
/********************************************************************/


.ps-6 {
    padding-left: 4rem !important;
}

.ps-7 {
    padding-left: 5rem !important;
}

.ps-8 {
    padding-left: 6rem !important;
}

.ps-9 {
    padding-left: 7rem !important;
}

.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-7 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

.py-8 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-9 {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

.font-15 {
    font-size: 15px !important;
}

/********************************************************************/
/***----- Extend in main style -----------end********/
/********************************************************************/


.experts.categories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.experts.categories-list:hover {
    max-height: 200px;
    overflow-y: auto;
}

.experts.category-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    padding: 2px 0;
    white-space: nowrap;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.icon-preview-large {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.icon-preview-large i {
    font-size: 48px;
    color: #0d6efd;
}

.status-active {
    color: #fff;
}

/* Project theme color overrides */
:root,
body {
    --primary: #168C67;
    --primary-hover: #117252;
    --primary-dark: #0b4d38;
    --rgba-primary-1: rgba(22, 140, 103, 0.1);
    --rgba-primary-2: rgba(22, 140, 103, 0.2);
    --rgba-primary-3: rgba(22, 140, 103, 0.3);
    --rgba-primary-4: rgba(22, 140, 103, 0.4);
    --rgba-primary-5: rgba(22, 140, 103, 0.5);
    --rgba-primary-6: rgba(22, 140, 103, 0.6);
    --rgba-primary-7: rgba(22, 140, 103, 0.7);
    --rgba-primary-8: rgba(22, 140, 103, 0.8);
    --rgba-primary-9: rgba(22, 140, 103, 0.9);
    --bs-primary: #168C67;
    --bs-primary-rgb: 22, 140, 103;
    --bs-link-color: #168C67;
    --bs-link-hover-color: #117252;
    --sidebar-bg: #168C67;
    --nav-headbg: #168C67;
    --headerbg: #fff;
}

.nav-header,
.dlabnav {
    background-color: #168C67 !important;
}

.nav-header {
    margin: 0 !important;
    padding: 0 !important;
    left: 0;
}

.nav-header .brand-logo {
    /* padding-left: 0 !important;
    padding-right: 0 !important; */
}


.dlabnav .metismenu > li > a,
.dlabnav .metismenu a,
.dlabnav .metismenu > li a > i,
.dlabnav .metismenu ul a,
.dlabnav .metismenu .has-arrow:after {
    color: #fff !important;
    border-color: #fff !important;
}

.dlabnav .metismenu ul {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

.dlabnav .metismenu > li:hover > a,
.dlabnav .metismenu > li:focus > a,
.dlabnav .metismenu > li.mm-active > a,
.dlabnav .metismenu ul a:hover,
.dlabnav .metismenu ul a:focus,
.dlabnav .metismenu ul a.mm-active {
    background-color: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}

.btn-primary,
.badge-primary,
.bg-primary {
    background-color: #168C67 !important;
    border-color: #168C67 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #117252 !important;
    border-color: #117252 !important;
}

.text-primary,
.link-primary {
    color: #168C67 !important;
}


.badge-active
{
    background-color: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.2);
}

.badge-inactive {
    background-color: rgba(234, 88, 0, 0.1);
    color: #EA5800;
    border: 1px solid rgba(234, 88, 0, 0.2);
}

.badge-enable
{
    background-color: #F1F5F9;
    color: #334155;
}

.badge-disable
{
    background-color: #F1F5F9;
    color: #94A3B8;
}

.header-date-picker-item {
    display: flex;
    align-items: center;
    margin-right: 0.75rem;
}

.header-date-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #ffffff !important;
    border: 1px solid rgba(22, 140, 103, 0.25);
    border-radius: 0.65rem;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    min-width: 145px;
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.08);
}

.header-date-picker .material-icons {
    color: #168C67 !important;
    font-size: 18px;
}

.header-date-input {
    background: transparent !important;
    border: 0 !important;
    color: #1f2937 !important;
    font-size: 0.875rem;
    font-weight: 600;
    width: 100px;
    cursor: pointer;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.header-date-input:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #1f2937 !important;
}


.modal-right-side .modal-dialog {
    width: 500px;
    height: 100vh;
    position: fixed;
    right: 0;
    top: 0;
    overflow-y: scroll;
    overflow-x: hidden;
    z-index: 1;
    transition: all .4s linear;
    padding-top: 0px;
    margin-top: 0px;
    margin-right: 0px;    
}

/* Sort filter styling */
.sort_filter .input-group-text {
    background-color: #f8f9fa;
    border-right: none;
}

.sort_filter .input-group .form-control {
    border-left: none;
}

.sort_filter .input-group .form-control:focus {
    border-color: #dee2e6;
    box-shadow: none;
}

.sort_filter .input-group:focus-within {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    border-radius: 0.375rem;
}

.sort_filter .input-group:focus-within .input-group-text {
    border-color: #86b7fe;
}

.sort_filter .input-group:focus-within .form-control {
    border-color: #86b7fe;
}

.sort_filter .card {
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.sort_filter .card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.sort_filter .btn-outline-primary {
    border-color: #dee2e6;
}

.sort_filter .btn-outline-primary:hover {
    background-color: #0d6ef1;
    border-color: #0d6ef1;
    color: white;
}

.sort_filter .btn-outline-primary.active,
.sort_filter .btn-outline-primary:active {
    background-color: #0d6ef1;
    border-color: #0d6ef1;
    color: white;
}

.sort_filter .badge.bg-warning {
    color: #000;
    font-weight: 500;
}

.sort_filter .status-badge-active { background-color: #d4edda; color: #155724; }
.sort_filter .status-badge-inactive { background-color: #f8d7da; color: #721c24; }
.sort_filter .status-badge-on-leave { background-color: #fff3cd; color: #856404; }
.sort_filter .status-badge-terminated { background-color: #f5c6cb; color: #721c24; }
.sort_filter .status-badge-resigned { background-color: #e2e3e5; color: #383d41; }

.sort_filter .qr-status-generated { background-color: #d4edda; color: #155724; }
.sort_filter .qr-status-pending { background-color: #fff3cd; color: #856404; }

.sort_filter .employee-count-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
}

.dashboard-stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.25rem rgba(22, 140, 103, 0.08);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.75rem 1.5rem rgba(22, 140, 103, 0.12);
}

.dashboard-stat-card .stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--rgba-primary-1);
    color: var(--primary);
    font-size: 1.5rem;
}

.dashboard-stat-card .stat-title {
    color: #6c757d;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.dashboard-stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 0;
}

.dashboard-stat-card .stat-unit {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.dashboard-stat-card .stat-subtitle {
    color: #9ca3af;
    font-size: 0.8rem;
    margin-top: 0.75rem;
}

.nav-label {
    color: #fff !important;
}
.nav-text {
    font-size: 12px !important;
}