*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #050505;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #111111;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 3px;
}

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

* {
    scrollbar-width: thin;
    scrollbar-color: #333333 #111111;
}

::selection {
    background: rgba(0, 112, 243, 0.3);
    color: #ffffff;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #111111 inset;
    transition: background-color 5000s ease-in-out 0s;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none;
}

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

#dashboard-view:not(.hidden),
#team-view:not(.hidden),
#settings-view:not(.hidden) {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

#sidebar.open {
    transform: translateX(0);
}

#sidebar-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.z-60 {
    z-index: 60;
}

.z-70 {
    z-index: 70;
}

#add-lead-modal.flex,
#edit-lead-modal.flex {
    animation: fadeIn 0.2s ease-out;
}

#add-lead-modal.flex > div:last-child,
#edit-lead-modal.flex > div:last-child {
    animation: slideUp 0.25s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 0.7s linear infinite;
}

.hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .p-4 {
        padding: 1rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .sm\:col-span-2 {
        grid-column: span 2 / span 2;
    }
}
