/* Estilos ligeros para replicar la interfaz del sistema de inventarios */
body {
    font-family: 'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
}

.hero-card {
    background: linear-gradient(135deg, #a8d8ea, #ffd8b5, #f7c6d0);
    color: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.low-stock {
    border-color: #f7c6d0;
    box-shadow: 0 8px 24px rgba(255, 99, 132, 0.12);
}

.sidebar-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    color: #4b5563;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    position: relative;
}

.sidebar-icon:hover {
    background-color: #f3f4f6;
    color: #111827;
    transform: translateY(-1px);
}

.sidebar-tooltip {
    position: absolute;
    left: 3.5rem;
    background: #111827;
    color: #ffffff;
    padding: 0.35rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    white-space: nowrap;
    transform-origin: left center;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 20;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    background: #a8d8ea;
    color: #0f172a;
    border: 1px solid #93c5fd;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-primary:hover {
    background: #7cc4e1;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.95rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: #111827;
    background: #fff;
    border: 1px solid #e5e7eb;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.btn-ghost:hover {
    background: #f3f4f6;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

/* Estilos de compatibilidad para pantallas legacy */
.bg-white.rounded-lg.shadow {
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.bg-white.rounded-lg.shadow .bg-white.rounded-lg.shadow {
    box-shadow: none;
}

button.bg-blue-600,
a.bg-blue-600 {
    background: #a8d8ea;
    color: #0f172a;
    border: 1px solid #93c5fd;
}

button.bg-blue-600:hover,
a.bg-blue-600:hover {
    background: #7cc4e1;
}

button.bg-gray-400,
a.bg-gray-400 {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #e5e7eb;
}

button.bg-green-600,
a.bg-green-600 {
    background: #b8e0d2;
    color: #0f172a;
    border: 1px solid #99d5c0;
}

input.border-2.border-blue-300,
select.border-2.border-blue-300,
textarea.border-2.border-blue-300,
input.border.border-gray-300,
select.border.border-gray-300,
textarea.border.border-gray-300 {
    border-radius: 0.75rem;
    border-color: #e5e7eb;
    padding: 0.65rem 0.85rem;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

input.border-2.border-blue-300:focus,
select.border-2.border-blue-300:focus,
textarea.border-2.border-blue-300:focus,
input.border.border-gray-300:focus,
select.border.border-gray-300:focus,
textarea.border.border-gray-300:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.table-shell {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.table-shell table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-shell thead th {
    background: #f9fafb;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
    color: #6b7280;
}

.table-shell th,
.table-shell td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.table-shell tbody tr:hover {
    background: #f8fafc;
}

.input-modern {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.input-modern:focus {
    outline: none;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
