/* app.css - Estilos customizados do CRM */

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

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

/* ===== Animações ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-out;
}

/* ===== Cards hover ===== */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.dark .card-hover:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* ===== Sidebar ===== */
#sidebar {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dark #sidebar {
    scrollbar-color: #475569 transparent;
}

/* ===== Botões ===== */
.btn-primary {
    @apply bg-primary-600 text-white px-4 py-2 rounded-lg font-medium hover:bg-primary-700 focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 transition-colors;
}

.dark .btn-primary {
    @apply bg-primary-500 hover:bg-primary-600 focus:ring-offset-gray-800;
}

/* ===== Input focus ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* ===== Transições do tema (exclui SweetAlert2) ===== */
body, nav, aside, main, footer, .dark {
    transition-property: background-color, border-color, color;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

/* ===== SweetAlert2 - fix botões ===== */
.swal2-popup .swal2-styled {
    border: none !important;
}
.swal2-popup .swal2-confirm {
    background-color: #2563eb !important;
    color: #fff !important;
}
.swal2-popup .swal2-cancel {
    background-color: #6b7280 !important;
    color: #fff !important;
}

/* ===== Bell pulse animation ===== */
@keyframes bell-ring {
    0% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(6deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(2deg); }
    60% { transform: rotate(0); }
    100% { transform: rotate(0); }
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.animate-bell {
    animation: bell-ring 1.5s ease-in-out infinite;
    color: #ef4444 !important;
}

#notification-badge {
    animation: badge-pulse 1.5s ease-in-out infinite;
}

/* ===== Print styles ===== */
@media print {
    #sidebar, nav, footer {
        display: none !important;
    }
    main {
        margin-left: 0 !important;
    }
}
