/* Dataset Manager Global Styles */

/* Ensure body/html don't interfere with fixed positioning */
html, body {
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ticket highlight animation for new tickets */
.new-ticket-highlight {
    background: linear-gradient(90deg, #d1ecf1, #ffffff) !important;
    border-left: 4px solid #17a2b8 !important;
    animation: newTicketFadeIn 3s ease-out;
    transition: all 0.3s ease;
}

@keyframes newTicketFadeIn {
    0% {
        background: linear-gradient(90deg, #bee5eb, #ffffff);
        transform: translateX(-10px);
        box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
    }
    50% {
        background: linear-gradient(90deg, #d1ecf1, #ffffff);
        transform: translateX(0);
        box-shadow: 0 2px 8px rgba(23, 162, 184, 0.2);
    }
    100% {
        background: transparent;
        transform: translateX(0);
        box-shadow: none;
    }
}

/* Enhanced ticket row styles */
.ticket-row {
    transition: all 0.3s ease;
}

.ticket-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Container */
.dataset-manager-container {
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding-top: 110px;
    overflow-x: hidden;
}

/* Header Card (Persistent across all pages) */
.dataset-header-card {
    background: var(--bs-white);
    border-radius: unset;
    padding: 18px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    position: fixed;
    width: 100vw;
    left: 0;
    top: 0;
    right: 0;
    z-index: 100;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    margin-left: 0;
    margin-right: 0;
}

.dataset-title-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

.dataset-title-container > .d-flex {
    gap: 16px;
}

.dataset-title {
    color: var(--bs-primary);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataset-title i {
    color: var(--bs-secondary);
    font-size: 1.3rem;
}

.project-title-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.project-title-container:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.project-title-edit-icon {
    font-size: 0.9em;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    color: var(--bs-primary);
}

.project-title-container:hover .project-title-edit-icon {
    display: inline-block !important;
    opacity: 1;
}

/* ===== USER MENU STYLES ===== */
.user-menu-container {
    /* margin-left: auto; */
}

.user-menu-btn {
    border-radius: 25px;
    padding: 8px 16px;
    border: 2px solid #0d6efd;
    background: transparent;
    color: #0d6efd;
    transition: all 0.3s ease;
    font-weight: 500;
}

.user-menu-btn:hover {
    background: #0d6efd;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
}

.user-menu-btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.user-menu-btn i {
    font-size: 1.1rem;
    margin-right: 8px;
}

.user-menu-list {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 250px;
    margin-top: 8px;
}

.user-menu-list .dropdown-header {
    color: #495057;
    font-weight: 600;
    padding: 12px 20px 8px;
    font-size: 0.95rem;
}

.user-menu-list .dropdown-item {
    padding: 10px 20px;
    color: #495057;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 2px 8px;
}

.user-menu-list .dropdown-item:hover {
    background: #f8f9fa;
    color: #0d6efd;
    transform: translateX(4px);
}

.user-menu-list .dropdown-item.text-danger:hover {
    background: #fff5f5;
    color: #dc3545;
}

.user-menu-list .dropdown-item-text {
    padding: 6px 20px;
    margin: 0;
}

.user-menu-list .dropdown-divider {
    margin: 8px 16px;
}

/* Responsive user menu */
@media (max-width: 768px) {
    .user-menu-btn span {
        display: none;
    }
    
    .user-menu-btn {
        padding: 8px 12px;
    }
    
    .user-menu-list {
        min-width: 200px;
    }
}

/* ===== MOBILE BURGER MENU STYLES ===== */
.mobile-burger-menu-btn {
    background: transparent;
    border: 2px solid var(--bs-primary);
    color: var(--bs-primary);
    width: 44px;
    height: 44px;
    border-radius: var(--bs-border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.mobile-burger-menu-btn:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(213, 74, 87, 0.3);
}

.mobile-burger-menu-btn i {
    font-size: 1.2rem;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bs-white);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-menu-panel.show {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--bs-border-color);
    background: var(--bs-gray-50);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bs-primary);
    display: flex;
    align-items: center;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--bs-gray-600);
    font-size: 1.5rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--bs-border-radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: var(--bs-gray-200);
    color: var(--bs-dark);
}

.mobile-menu-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    min-height: 0;
    display: block;
    visibility: visible;
}

.mobile-menu-section {
    margin-bottom: 32px;
}

.mobile-menu-section:last-child {
    margin-bottom: 0;
}

.mobile-menu-section-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-gray-600);
    margin-bottom: 12px;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--bs-body-color);
    text-decoration: none;
    border-radius: var(--bs-border-radius-sm);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.mobile-menu-link:hover {
    background: var(--bs-gray-100);
    color: var(--bs-primary);
    text-decoration: none;
    transform: translateX(4px);
}

.mobile-menu-link.active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.mobile-menu-link.active:hover {
    background: var(--bs-primbtn-hover-color);
    color: var(--bs-white);
}

.mobile-menu-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.mobile-menu-link.text-danger {
    color: var(--bs-danger);
}

.mobile-menu-link.text-danger:hover {
    background: #fff5f5;
    color: var(--bs-danger);
}

.mobile-menu-user-info {
    padding: 16px;
    background: var(--bs-gray-50);
    border-radius: var(--bs-border-radius-sm);
    margin-bottom: 16px;
}

.mobile-menu-user-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mobile-menu-user-header i {
    font-size: 2rem;
    color: var(--bs-primary);
}

.mobile-menu-user-name {
    font-weight: 600;
    color: var(--bs-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}

.mobile-menu-user-email {
    color: var(--bs-gray-600);
    font-size: 0.85rem;
}

.mobile-menu-user-meta {
    display: flex;
    gap: 8px;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

/* Page Navigation Menu (Global) */
.page-navigation-menu {
    display: flex;
    align-items: center;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.25rem;
}

.page-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-radius: var(--bs-border-radius-sm);
    transition: var(--bs-transition);
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

.page-nav-link:hover {
    background: var(--bs-gray-100);
    color: var(--bs-primary);
    text-decoration: none;
}

.page-nav-link.active {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.page-nav-link.active:hover {
    background: var(--bs-primbtn-hover-color);
    color: var(--bs-white);
}

.page-nav-link i {
    font-size: 1rem;
}

/* System Actions Dropdown (Global) */
.system-actions-dropdown {
    margin-right: 10px;
}

.system-actions-btn {
    border: 1px solid var(--bs-border-color);
    background: var(--bs-white);
    color: var(--bs-body-color);
    padding: 8px 16px;
    border-radius: var(--bs-border-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--bs-transition);
    min-width: 100px;
    justify-content: center;
}

.system-actions-btn:hover {
    background: var(--bs-gray-100);
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.system-actions-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(213, 74, 87, 0.1);
}

.system-actions-label {
    font-weight: 500;
}

.system-actions-dropdown .dropdown-menu {
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 220px;
}

.system-actions-dropdown .dropdown-item {
    padding: 10px 16px;
    border-radius: var(--bs-border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--bs-transition);
}

.system-actions-dropdown .dropdown-item:hover {
    background: var(--bs-gray-100);
    color: var(--bs-primary);
}

.system-actions-dropdown .dropdown-item i {
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.system-actions-dropdown .dropdown-item:hover i {
    color: var(--bs-primary);
}

.system-actions-dropdown .dropdown-divider {
    margin: 8px 0;
    border-color: var(--bs-border-color);
}

/* Project Selector - Bootstrap default only */

/* Config Markers (Global) */
.config-marker {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
}

.config-marker i {
    font-size: 0.8rem;
}

/* Configuration Setup Screen (Global) */
.config-setup-screen {
    background: var(--bs-white);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 3rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.config-setup-container {
    max-width: 600px;
    margin: 0 auto;
}

.config-setup-icon {
    font-size: 4rem;
    color: var(--bs-warning);
    margin-bottom: 1.5rem;
}

.config-setup-icon i {
    display: block;
}

.config-setup-title {
    color: var(--bs-body-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.config-setup-subtitle {
    color: var(--bs-gray-600);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.config-setup-subtitle strong {
    color: var(--bs-primary);
    font-weight: 600;
}

.config-missing-fields {
    background: var(--bs-gray-50);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.config-missing-fields-title {
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-gray-600);
}

.config-missing-field-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--bs-border-color);
}

.config-missing-field-item:last-child {
    border-bottom: none;
}

.config-missing-field-item i {
    color: var(--bs-danger);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.config-missing-field-item span {
    color: var(--bs-body-color);
    font-size: 0.95rem;
}

.config-setup-action {
    margin-top: 2rem;
}

.config-issues-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.config-issue-item {
    background: var(--bs-light-blue);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 1rem;
    text-align: left;
}

.config-issue-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.config-issue-title {
    font-weight: 600;
    color: var(--bs-body-color);
    margin: 0;
}

.config-issue-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--bs-border-radius-sm);
    background: var(--bs-warning);
    color: var(--bs-white);
    font-weight: 500;
}

.config-issue-description {
    color: var(--bs-gray-600);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.config-issue-action {
    display: flex;
    gap: 0.5rem;
}

.config-progress {
    background: var(--bs-gray-200);
    border-radius: var(--bs-border-radius-pill);
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.config-progress-bar {
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-primbtn-hover-color));
    height: 100%;
    border-radius: var(--bs-border-radius-pill);
    transition: width 0.3s ease;
}

/* Global Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-overlay.show {
    display: flex;
    opacity: 1;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    background: var(--bs-white);
    border-radius: var(--bs-border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--bs-border-color);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 10px;
}

.loading-spinner p {
    margin: 0;
    color: var(--bs-body-color);
    font-weight: 500;
}

/* Project Management Modal z-index fix */
/* Bootstrap 5 default: backdrop 1050, modal 1055 */
#projectManagementModal {
    z-index: 1055 !important;
}

#projectManagementModal.modal.show {
    z-index: 1056 !important;
}

#projectManagementModal .modal-dialog {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-backdrop.show {
    z-index: 1050 !important;
}

/* Ensure header doesn't interfere with modals (keep it lower) */
.dataset-header-card {
    z-index: 100;
}

/* Project Dropdown Enhanced Styles */
.project-dropdown-header {
    padding: 12px 16px 8px !important;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--bs-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 4px;
}

.project-dropdown-header i {
    color: var(--bs-primary);
}

#projectSelectorMenuModal {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.project-dropdown-item {
    padding: 0 !important;
    margin: 2px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.project-dropdown-item:hover {
    background-color: var(--bs-primary-bg-subtle) !important;
    border-color: var(--bs-primary-border-subtle);
    transform: translateX(2px);
}

.project-dropdown-item.active {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-dark, #0a58ca) 100%) !important;
    color: white !important;
    border-color: var(--bs-primary);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.project-dropdown-item.active:hover {
    background: linear-gradient(135deg, var(--bs-primary-dark, #0a58ca) 0%, var(--bs-primary) 100%) !important;
    transform: translateX(2px) scale(1.01);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.project-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    width: 100%;
}

.project-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-gray-100);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.project-dropdown-item.active .project-item-icon {
    background: rgba(255, 255, 255, 0.2);
}

.project-dropdown-item:hover .project-item-icon {
    background: var(--bs-primary-bg-subtle);
    transform: scale(1.1);
}

.project-dropdown-item.active:hover .project-item-icon {
    background: rgba(255, 255, 255, 0.3);
}

.project-item-icon i {
    font-size: 1.25rem;
    color: var(--bs-primary);
    transition: all 0.2s ease;
}

.project-dropdown-item.active .project-item-icon i {
    color: white;
}

.project-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bs-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.project-dropdown-item.active .project-item-name {
    color: white;
    font-weight: 700;
}

.project-item-description {
    font-size: 0.8rem;
    color: var(--bs-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.project-dropdown-item.active .project-item-description {
    color: rgba(255, 255, 255, 0.9);
}

.project-item-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: checkmarkAppear 0.3s ease;
}

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

.project-item-check i {
    font-size: 0.875rem;
    color: white;
}

/* Custom scrollbar for project dropdown */
#projectSelectorMenuModal::-webkit-scrollbar {
    width: 6px;
}

#projectSelectorMenuModal::-webkit-scrollbar-track {
    background: var(--bs-gray-100);
    border-radius: 3px;
}

#projectSelectorMenuModal::-webkit-scrollbar-thumb {
    background: var(--bs-gray-400);
    border-radius: 3px;
}

#projectSelectorMenuModal::-webkit-scrollbar-thumb:hover {
    background: var(--bs-gray-500);
}

/* Global Modal Styles */
.dataset-modal .modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 20px 24px;
    background: var(--bs-light-blue);
}

.dataset-modal .modal-title {
    font-weight: 600;
    color: var(--bs-body-color);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dataset-modal .modal-body {
    padding: 24px;
}

.dataset-modal .modal-footer {
    border-top: 1px solid var(--bs-border-color);
    padding: 16px 24px;
    background: var(--bs-gray-100);
}

/* Responsive Design for Global Elements */
@media (max-width: 768px) {
    .dataset-title-container {
        flex-direction: row;
        align-items: center;
        gap: 12px;
    }
    
    .dataset-title-container > .d-flex {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .dataset-header-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .system-actions-label {
        display: none;
    }
    
    .system-actions-dropdown {
        margin-left: 0;
    }
    
    .page-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .config-issues-list {
        grid-template-columns: 1fr;
    }
    
    .config-setup-screen {
        padding: 1.5rem;
    }
    
    .config-setup-icon {
        font-size: 3rem;
    }
    
    .config-setup-title {
        font-size: 1.5rem;
    }
    
    .config-missing-fields {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .dataset-manager-container {
        padding: 10px 15px;
        width: 100%;
    }
    
    .dataset-header-card {
        padding: 16px;
        margin-bottom: 12px;
        border: unset;
        max-width: 100vw;
    }
    
    .dataset-title {
        font-size: 1.3rem;
    }
    
    .page-nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .config-setup-screen {
        padding: 1.5rem 1rem;
    }
    
    .config-setup-icon {
        font-size: 2.5rem;
    }
    
    .config-setup-title {
        font-size: 1.25rem;
    }
    
    .config-setup-subtitle {
        font-size: 0.9rem;
    }
    
    .config-missing-fields {
        padding: 0.75rem;
    }
    
    .config-missing-field-item {
        font-size: 0.9rem;
        padding: 0.5rem 0;
    }
}

.btn {
    padding: 5px 7px;
}
.btn-group-sm > .btn, .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* =============================================== */
/* Ticket Enhancements - Message Preview & Avatars */
/* =============================================== */

/* Subject container with message preview */
.subject-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.subject-text {
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.subject-text:hover {
    color: #007bff;
    text-decoration: underline;
}

.message-preview {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
    cursor: help;
    line-height: 1.3;
    max-width: 300px;
}

.message-preview:hover {
    color: #495057;
}

/* Custom Tooltip Styles */
.custom-tooltip {
    position: absolute;
    background-color: #2c3e50;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 400px;
    word-wrap: break-word;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(-5px);
    /* animation: tooltipFadeIn 0.2s ease-out forwards; */
    pointer-events: none;
}

.custom-tooltip::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #2c3e50;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced User Avatar Styles */
.assigned-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: white;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.avatar-initials {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.assigned-user span {
    font-weight: 500;
    color: #333;
}

.unassigned-indicator {
    color: #6c757d;
    font-style: italic;
    padding: 4px 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-size: 0.9rem;
}

#projectSelectorMenu .active .text-muted {
    color: #fff !important;
}

a.dropdown-item.active {
    color: var(--bs-dropdown-link-active-color);
    text-decoration: none;
    background-color: var(--bs-secondary);
}
a.dropdown-item i{margin-inline-end: 8px;}

/* Qdrant sync progress panel with live log (shared reset modal) */
.qdrant-sync-progress-panel {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.qdrant-sync-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.qdrant-sync-progress-text {
    font-weight: 500;
    color: var(--bs-body-color);
}
.qdrant-sync-log {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    font-family: var(--bs-font-monospace);
    font-size: 0.8rem;
    padding: 0.5rem;
    background: var(--bs-gray-100);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-sm);
}
.qdrant-sync-log-line {
    padding: 0.15rem 0;
    color: var(--bs-success);
}
.qdrant-sync-log-line.qdrant-sync-log-error {
    color: var(--bs-danger);
}