:root {
    --color-primary-rgb: 59, 130, 246; /* Adjust to match your primary color */
}
/* Hide default scrollbar */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(107, 114, 128, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(107, 114, 128, 0.5);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
}

.dark ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(156, 163, 175, 0.5);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(107, 114, 128, 0.3) transparent;
}

.dark * {
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

/* Add this new class for sidebar height adjustment */
.sidebar-height {
    height: calc(100vh - 4rem - 2.5rem); /* Subtracting header (4rem/64px) and footer (2.5rem/40px) heights */

}



.overflow-y-auto::-webkit-scrollbar-track {
    background: transparent;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.3);
    border-radius: 2px;
}

.dark .overflow-y-auto::-webkit-scrollbar-thumb {
    background-color: rgba(156, 163, 175, 0.4);
}

/* Firefox */
.overflow-y-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(156, 163, 175, 0.3) transparent;
}

.dark .overflow-y-auto {
    scrollbar-color: rgba(156, 163, 175, 0.4) transparent;
}

/* Add new cursor styles */
.clickable {
    cursor: pointer;
}
  /* Custom scrollbar for chat window */
  .overflow-y-auto::-webkit-scrollbar {
    width: 4px;
}

 /* Enhanced typing animation */
 .animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}



.spinner {
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add to @section Styles */
.text-ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.max-w-db {
    max-width: 180px;
}

.max-width-table {
    max-width: 160px;
}

.max-width-column {
    max-width: 140px;
}

.flex-truncate {
    min-width: 0;
    flex: 1;
}

.excluded-item {
    color: #6c757d;
    opacity: 0.7;
}

.excluded-icon {
    margin-right: 4px;
    color: #dc3545;
    font-size: 0.8em;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
}
/* Modal Content */
.modal-content {
    width: 40%; /* Reduced size */
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
/* Progress Bar */
.progress-bar {
    width: 100%;
    background-color: #f0f0f0;
    height: 8px;
    border-radius: 4px;
}

.progress-bar-inner {
    height: 100%;
    background-color: #3498db;
    border-radius: 4px;
}


/*Dropdown Navigation bar*/

.menu-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background 0.2s;
}

.dark .menu-item {
    color: #d1d5db;
}

.menu-item:hover {
    background-color: #f3f4f6;
}

.dark .menu-item:hover {
    background-color: #1f2937;
}
