/* Enterprise CRM Stylesheet */

/* Custom smooth scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Sidebar collapsed state */
#main-sidebar.collapsed {
    width: 4.75rem;
}
#main-sidebar.collapsed .sidebar-text {
    display: none;
}
#main-sidebar.collapsed .sidebar-pill {
    left: 2px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.2s ease-out forwards;
}

/* CKEditor polish */
.ck-editor__editable_inline {
    min-height: 350px !important;
    font-size: 0.925rem !important;
    line-height: 1.6 !important;
    color: #1e293b !important;
}
.ck.ck-toolbar {
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
}
.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused) {
    border: none !important;
}
.ck.ck-editor__main>.ck-editor__editable.ck-focused {
    border: none !important;
    box-shadow: none !important;
}

/* Mobile & Tablet Responsive Enhancements */
.overflow-x-auto {
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    button, a, input, select {
        touch-action: manipulation;
    }
    
    /* Ensure tables have smooth scrolling and visible indicator padding */
    .overflow-x-auto {
        scrollbar-width: thin;
    }
}
