/* ==========================================================================
   CF BOT SYSTEM - CUSTOM CSS & TAILWIND COMPLIANT STYLES
   Location: themes/default/css/cfbot.css
   ========================================================================== */

/* 1. Reset Base & Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e2e8f0;
}

html {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

/* 2. Anti-FOUC (Chống giật vỡ khung chữ khi load trang) */
body {
    margin: 0;
    background-color: #f4f6f8;
    color: #1e293b;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

body.ready {
    opacity: 1 !important;
}
body:not(.ready) {
    opacity: 0;
    pointer-events: none;
}

/* 3. Lucide Icons Size Lock (Cố định kích thước Icon tránh nảy khung) */
i[data-lucide] {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    shrink: 0;
}
i[data-lucide="list-tree"] { width: 1.5rem; height: 1.5rem; }
i[data-lucide="sliders"] { width: 1.25rem; height: 1.25rem; }

/* 4. Utilities & Custom Components */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Base Form Inputs */
input[type="text"],
input[type="number"],
select {
    display: block;
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: #334155;
    transition: all 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Utility Animations */
@keyframes pulse {
    50% { opacity: .5; }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}