/* OSINFO DATALAKE - Contas Transparentes */

:root {
    --color-primary: #2563eb;
    --color-secondary: #64748b;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
}

/* Loading animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth fade in for loaded content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsividade geral */
@media (max-width: 640px) {
    /* Container */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    /* Tabelas - fonte menor em mobile */
    table {
        font-size: 0.75rem;
    }

    th, td {
        padding: 0.5rem !important;
    }

    /* Scroll horizontal suave */
    .overflow-x-auto {
        -webkit-overflow-scrolling: touch;
    }

    /* Otimizar inputs em mobile */
    input[type="number"],
    input[type="text"],
    select {
        font-size: 16px !important; /* Evita zoom no iOS */
    }
}

@media (min-width: 640px) and (max-width: 768px) {
    /* Tablet - ajustes intermediários */
    table {
        font-size: 0.8125rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    /* Desktop pequeno - ajustes intermediários */
    table {
        font-size: 0.875rem;
    }
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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

/* Hide scrollbar para navegação móvel (mantém scroll funcional) */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE e Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari e Opera */
}

/* Melhorias de toque em mobile */
@media (hover: none) and (pointer: coarse) {
    /* Aumentar área de toque de botões pequenos */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }

    /* Tabs de navegação com área de toque adequada */
    nav button {
        min-height: 48px;
    }
}

/* Prevenir quebra de layout em telas muito pequenas */
@media (max-width: 320px) {
    body {
        min-width: 320px;
    }
}

/* Ajustes para orientação paisagem em mobile */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduzir padding vertical em modais */
    .fixed.inset-0 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}
