@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import './variable.css';

/* Global Styles for Zyndrx */

:root {
    --sidebar-width: 16rem;
    --sidebar-collapsed-width: 5rem;
}

body {
    font-family: var(--font-family-body);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Sidebar Specifics */
#sidebar-container.w-20 .sidebar-text {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Sidebar behavior */
@media (max-width: 768px) {
    #sidebar-container {
        width: 16rem !important;
    }
}

/* Page Transitions */
#app {
    animation: fadeIn 0.3s ease-out;
}

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

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Stats Cards */
.stats-card {
    @apply bg-white p-6 rounded-3xl border border-gray-100 shadow-sm hover:shadow-md transition-all;
}

/* Hide CKEditor Branding */
.ck-powered-by, 
.ck-powered-by-balloon,
.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border] {
    display: none !important;
}
