/**
 * Estilos Customizados - Monitoramento WMS Konnen
 */

/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/* Navbar customização */
.navbar.is-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand .title {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.navbar-item img {
    background: white;
    padding: 5px;
    border-radius: 8px;
}

/* Cards de estatísticas */
.box {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.box .level {
    margin-bottom: 0;
}

.box .heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #7a7a7a;
    margin-bottom: 0.5rem;
}

.box .title {
    font-weight: 700;
    color: #363636;
}

/* Tabs customização */
.tabs {
    margin-bottom: 1.5rem;
}

.tabs.is-boxed li.is-active a {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.tabs.is-boxed a {
    border: 2px solid #dbdbdb;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
}

.tabs.is-boxed a:hover {
    background-color: #f5f5f5;
    border-color: #b5b5b5;
}

/* Tabelas */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    color: #363636;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #dbdbdb;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa !important;
}

.table td {
    vertical-align: middle;
}

/* Tags */
.tag {
    font-weight: 600;
    border-radius: 6px;
    padding: 0.5em 0.75em;
}

/* Botões */
.button {
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.button.is-light {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.is-light:hover {
    background-color: white;
}

/* Modal */
.modal-card {
    border-radius: 12px;
    overflow: hidden;
}

.modal-card-head {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-card-title {
    color: white;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

.card-header-title {
    color: white;
    font-weight: 600;
}

.card-content table th {
    width: 200px;
    font-weight: 600;
    color: #363636;
}

/* Ícones de status */
.icon.has-text-success {
    color: #48c774 !important;
}

.icon.has-text-danger {
    color: #f14668 !important;
}

/* Notificações */
.notification.is-danger.is-light {
    background-color: #feecf0;
    color: #cc0f35;
    border-left: 4px solid #f14668;
    border-radius: 6px;
}

/* Paginação */
.pagination-link,
.pagination-previous,
.pagination-next {
    border-radius: 6px;
}

.pagination-link.is-current {
    background-color: #667eea;
    border-color: #667eea;
}

/* Tooltip */
.tooltip {
    max-width: 300px;
}

/* Loading */
.is-loading::after {
    border-color: transparent transparent #667eea #667eea !important;
}

/* Responsividade */
@media screen and (max-width: 768px) {
    .navbar-brand .title {
        font-size: 1.2rem;
    }
    
    .box .title {
        font-size: 1.5rem;
    }
    
    .columns.is-multiline {
        margin-bottom: 1rem !important;
    }
    
    .column {
        padding: 0.5rem;
    }
}

@media screen and (max-width: 1024px) {
    .table {
        font-size: 0.9rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
    }
}

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

.box,
.card {
    animation: fadeIn 0.3s ease;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Cores de fundo customizadas */
.has-background-info-light {
    background-color: #eff5fb !important;
}

.has-background-success-light {
    background-color: #effaf3 !important;
}

.has-background-warning-light {
    background-color: #fffbeb !important;
}

.has-background-danger-light {
    background-color: #feecf0 !important;
}

/* Ajustes de espaçamento */
.section {
    padding: 2rem 1.5rem;
}

.mb-5 {
    margin-bottom: 2rem !important;
}

/* Empty state */
.table .has-text-centered {
    padding: 3rem 1rem;
    color: #7a7a7a;
    font-size: 1.1rem;
}

.table .has-text-centered::before {
    content: "📦";
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}
