/* [Codeline Solutions 2025] https://codelinesolutions.com.br */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

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

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

.dark ::-webkit-scrollbar-track {
    background: #2d3748;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}

/* Transição suave para dark mode */
* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Estilos específicos para o formulário de vendas */
#formModal {
    z-index: 9999;
}

#formModal .form-control {
    transition: all 0.2s ease-in-out;
}

#formModal .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Estilos para a tabela de vendas */
.vendas-table th {
    position: sticky;
    top: 0;
    background-color: #f9fafb;
    z-index: 10;
}

.dark .vendas-table th {
    background-color: #1f2937;
}

/* Estilos para menus dropdown */
.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 200px;
    z-index: 1000;
}

.dropdown-open {
    display: block;
}

.menu-item {
    display: block;
    padding: 8px 16px;
    color: #4a5568;
    text-decoration: none;
    transition: background-color 0.2s;
}

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

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

.dark .menu-item:hover {
    background-color: #4a5568;
}

/* Cloak para Alpine.js */
[x-cloak] {
    display: none !important;
}

/* Estilos para formulários e itens da venda */
.form-control {
    @apply w-full p-2 border border-gray-300 rounded dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white;
}

.form-control[readonly] {
    @apply bg-gray-100 dark:bg-gray-800 cursor-not-allowed text-gray-700 dark:text-gray-300;
}

.item-row {
    @apply p-3 border rounded-lg bg-gray-50 dark:bg-gray-700;
}

.item-row .form-control {
    @apply bg-white dark:bg-gray-600 text-gray-900 dark:text-white border-gray-300 dark:border-gray-500;
}

.item-row .form-control[readonly] {
    @apply bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300;
}

/* Estilos para o sidebar com scroll */
.sidebar-nav {
    @apply flex-1 overflow-y-auto;
}

.sidebar-nav::-webkit-scrollbar {
    width: 8px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.dark .sidebar-nav::-webkit-scrollbar-track {
    background: #4a5568;
}

.dark .sidebar-nav::-webkit-scrollbar-thumb {
    background: #718096;
}

.dark .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}