

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Layout Principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Navegação */
.main-navigation {
    background: #2B8FBF;
    color: white;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 40px;
}

/* Header Statistics */
.header-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 20px;
}

.header-stats-container, .header-servers-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-stats-timeframe {
    align-self: flex-start;
}



/* Aviso do Servidor */
.server-notice {
    background-color: #fff8e1;
    border-left: 4px solid #ffb300;
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.notice-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.notice-icon {
    font-size: 20px;
    margin-right: 15px;
}

.notice-message {
    font-size: 14px;
    color: #333;
}

.notice-message strong {
    color: #f57c00;
}

/* Link do Item para Divine Pride - mantém aparência do texto normal */
a.item-link,
a.item-link:link,
a.item-link:visited,
a.item-link:hover,
a.item-link:active,
a.item-link:focus {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    background: none !important;
}

/* Seletor ainda mais específico */
.item-title a.item-link,
.item-title a.item-link:link,
.item-title a.item-link:visited,
.item-title a.item-link:hover,
.item-title a.item-link:active,
.item-title a.item-link:focus {
    color: inherit !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    background: none !important;
}

.header-stats-timeframe {
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    font-style: italic;
    text-align: right;
}

.header-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header-stat-card {
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: center;
    min-width: 70px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.header-stat-card:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.header-stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #F1C40F;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.header-stat-label {
    font-size: 10px;
    color: white;
    font-weight: 500;
    margin-top: 2px;
    opacity: 0.9;
}

.nav-brand h1 {
    font-size: 1.8em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.brand-logo {
    height: 200px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
    position: relative;
    z-index: 9999;
}

.brand-logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-menu li a {
    display: block;
    padding: 20px 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    background: rgba(255,255,255,0.1);
    border-bottom-color: #F1C40F;
}

/* Breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 30px;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 10px;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin-left: 10px;
    color: #7f8c8d;
    font-weight: bold;
}

.breadcrumb-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #2980b9;
}

.breadcrumb-item.active {
    color: #7f8c8d;
    font-weight: 500;
}

/* Seções de Conteúdo */
.content-section {
    padding: 30px;
}

.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-size: 2em;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    display: inline-block;
}

.search-main-subtitle {
    font-size: 1em;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;

}
.search-main-title {
    font-size: 2em;
    color: #2c3e50;
    font-weight: 600;
    padding-bottom: 10px;
    margin-top: -30px;
}

/* Localização clicável */
.clickable-location {
    cursor: pointer !important;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 2px 6px;
}



.clickable-location:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(52, 152, 219, 0.3);
}

/* Links de ordenação nas colunas da tabela */
.sort-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
    cursor: pointer;
}

.sort-link:hover {
    color: #3498db;
    text-decoration: none;
}

.sort-link:active {
    color: #2980b9;
}

/* Indicadores de ordenação */
.items-table th {
    position: relative;
    user-select: none;
    min-width: 120px;
}

.items-table th .sort-link {
    width: 100%;
    justify-content: space-between;
}

/* Animações para notificações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Estatísticas */
.stats-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stats-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
    font-weight: 600;
}

.stats-timeframe {
    font-size: 12px;
    color: #7f8c8d;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

/* Formulário de Busca */
.search-section {
    padding: 30px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.search-form {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    flex: 1;
    display: flex;
    gap: 15px;
    min-width: 300px;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: 2px solid #ddd;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.4);
}

/* Cabeçalho dos Resultados */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #f8f9fa;
    flex-wrap: wrap;
    gap: 15px;
}

.results-title {
    font-size: 1.3em;
    color: #2c3e50;
    font-weight: 600;
}

.clear-filter {
    padding: 10px 20px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Grid de Itens */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards de Itens */
.item-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.item-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.item-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
    padding-bottom: 15px;
}

.item-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    line-height: 1.4;
}

.item-id {
    font-size: 12px;
    color: #7f8c8d;
    font-weight: 500;
}

.item-price-section {
    margin-bottom: 20px;
}

.item-price {
    font-size: 1.5em;
    color: #27ae60;
    font-weight: bold;
    margin-bottom: 8px;
}

.item-quantity {
    font-size: 14px;
    color: #7f8c8d;
}

.item-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
}

.detail-value {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.vendor-info {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #3498db;
}

.vendor-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 15px;
}

.vendor-location {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 8px;
}

.item-timestamp {
    color: #7f8c8d;
    font-size: 12px;
    margin-bottom: 15px;
}

.vendor-actions {
    text-align: center;
}


/* Grid de Vendedores */
.vendors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards de Vendedores */
.vendor-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vendor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    border-color: #27ae60;
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.vendor-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
}

.vendor-status {
    padding: 8px 15px;
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.vendor-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.vendor-stat {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.vendor-stat:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.vendor-stat .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 8px;
}

.vendor-stat .stat-label {
    font-size: 11px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.vendor-financial {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.financial-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.financial-stat:last-child {
    border-bottom: none;
}

.financial-label {
    color: #7f8c8d;
    font-weight: 500;
    font-size: 14px;
}

.financial-value {
    color: #27ae60;
    font-weight: bold;
    font-size: 14px;
}

.vendor-activity {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.activity-label {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.activity-time {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.vendor-actions {
    text-align: center;
}

/* Paginação */
.pagination-container {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f8f9fa;
}

.pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.pagination-list {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-link {
    display: block;
    padding: 12px 18px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 45px;
    text-align: center;
}

.page-link:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.page-current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
}

.page-first,
.page-last,
.page-prev,
.page-next {
    font-size: 16px;
}

/* Estado Vazio */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: #7f8c8d;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #2c3e50;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

/* Alertas */
.alert {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-icon {
    margin-right: 10px;
    font-size: 18px;
}

.alert-message {
    flex: 1;
}

.alert-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.alert-close:hover {
    opacity: 1;
}

/* Rodapé */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Tabela de Itens */
.items-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    margin: 20px 0;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.items-table thead {
    
    color: white;
}

.items-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #2980b9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.items-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #ecf0f1;
}

.items-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.items-table tbody tr:last-child {
    border-bottom: none;
}

.items-table td {
    padding: 12px;
    vertical-align: middle;
}

.item-name {
    min-width: 250px;
}

.item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.item-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 1px;
    flex-shrink: 0;
}

.item-details {
    flex-grow: 1;
    min-width: 0;
}

.item-title {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
    word-wrap: break-word;
}

.item-id {
    font-size: 11px;
    color: #7f8c8d;
    font-family: monospace;
}

.item-price {
    font-weight: 500;
    font-size: 14px;
    color: #F1C40F;
    white-space: nowrap;
}

.item-quantity {
    font-weight: 600;
    font-size: 14px;
    color: #2B8FBF;
    white-space: nowrap;
}

.item-vendor {
    color: #8B4513;
    white-space: nowrap;
}

.item-map {
    color: #34495e;
    white-space: nowrap;
}

.item-time {
    color: #7f8c8d;
    font-size: 12px;
    white-space: nowrap;
}

/* Vendor Links */
.vendor-link {
    color: #8B4513;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.vendor-link:hover {
    color: #A0522D;
    text-decoration: underline;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background-color: #2B8FBF;
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.modal-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.vendor-last-seen {
    font-size: 0.85em;
    color: white;
    font-weight: 400;
}

.vendor-location {
    font-size: 0.9em;
    background: rgba(255,255,255,0.15);
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 5px 10px;
    border-radius: 50%;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Vendor Details */
.vendor-details {
    font-family: inherit;
}

.vendor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.vendor-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4em;
}

.vendor-location {
    margin: 15px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    color: #6c757d;
    border-left: 3px solid #3498db;
}

.vendor-maps, .vendor-items {
    margin-bottom: 20px;
}

.vendor-maps h5, .vendor-items h5 {
    margin: 0 0 12px 0;
    color: #2c3e50;
    font-size: 1.1em;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 8px;
}

.maps-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.map-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.map-name {
    color: #34495e;
}

.map-count {
    background: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.items-list {
    max-height: 300px;
    overflow-y: auto;
}

.vendor-items .item-row {
    padding: 12px 0;
    border-bottom: 1px solid #ecf0f1;
}

.vendor-items .item-row:last-child {
    border-bottom: none;
}

.vendor-items .item-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vendor-items .item-image {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    background: #f8f9fa;
    padding: 2px;
    flex-shrink: 0;
}

.vendor-items .item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vendor-items .item-name {
    font-weight: 500;
    color: #2c3e50;
    font-size: 13px;
    margin: 0;
}

.vendor-items .item-id {
    font-size: 11px;
    color: #7f8c8d;
    font-family: monospace;
}

.vendor-items .item-details {
    display: flex;
    gap: 12px;
    font-size: 12px;
}

.vendor-items .item-price {
    color: #27ae60;
    font-weight: 600;
}

.vendor-items .item-qty {
    color: #3498db;
}

.more-items {
    text-align: center;
    padding: 10px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 13px;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background: #fadbd8;
    border-radius: 8px;
    margin: 10px 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: 100%;
        flex-direction: column;
    }
    
    .nav-buttons {
        justify-content: center;
    }
    
    .items-grid,
    .vendors-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vendor-stats {
        grid-template-columns: 1fr;
    }
    
    .pagination-list {
        gap: 5px;
    }
    
    .page-link {
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    /* Responsividade da Tabela de Itens */
    
    /* Cards para Mobile */
    .items-table-container {
        overflow: visible;
    }
    
    .items-table thead {
        display: none;
    }
    
    .items-table,
    .items-table tbody,
    .items-table tr,
    .items-table td {
        display: block;
    }
    
    .items-table tbody tr {
        background: white;
        margin-bottom: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        padding: 20px;
        border: none;
        position: relative;
        overflow: hidden;
    }
    
    .items-table tbody tr:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    
    .items-table td {
        padding: 8px 0;
        border: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 40px;
    }
    
    .items-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #2c3e50;
        min-width: 100px;
        flex-shrink: 0;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Estilização específica para cada campo no card */
    .item-name {
        min-width: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 0 15px 0;
        border-bottom: 1px solid #ecf0f1;
        margin-bottom: 10px;
    }
    
    .item-name:before {
        display: none;
    }
    
    .item-content {
        width: 100%;
        gap: 15px;
    }
    
    .item-details {
        flex-grow: 1;
    }
    
    .item-title {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .item-price {
        font-size: 16px;
        font-weight: 600;
    }
    
    .item-quantity {
        font-size: 14px;
    }
    
    .item-vendor,
    .item-shop {
        font-size: 14px;
    }
    
    .item-map,
    .item-time {
        font-size: 12px;
        color: #7f8c8d;
    }
    
    /* Ocultar colunas menos importantes em mobile */
    .items-table .item-time {
        display: none;
    }
}

/* Responsividade para Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .items-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
    }
    
    .items-table {
        min-width: 900px;
        font-size: 13px;
    }
    
    .items-table th,
    .items-table td {
        padding: 10px 8px;
    }
    
    /* Ajustar larguras das colunas para tablet */
    .item-name {
        min-width: 200px;
    }
    
    .item-price,
    .item-quantity {
        min-width: 100px;
    }
    
    .item-vendor,
    .item-shop {
        min-width: 120px;
    }
    
    .item-map {
        min-width: 100px;
    }
    
    .item-time {
        min-width: 90px;
    }
    
    /* Scroll indicator */
    .items-table-container:after {
        content: "← Deslize para ver mais →";
        position: absolute;
        bottom: 10px;
        right: 20px;
        background: rgba(43, 143, 191, 0.9);
        color: white;
        padding: 5px 10px;
        border-radius: 15px;
        font-size: 11px;
        pointer-events: none;
        opacity: 0.8;
    }
}

@media (max-width: 480px) {
    .main-container {
        margin: 10px;
        border-radius: 10px;
    }
    
    .content-section,
    .search-section,
    .stats-section {
        padding: 20px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2em;
    }
    
    .item-card,
    .vendor-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 1.5em;
    }
}

/* Time Filter Chips */
.search-section {
    background-color: #2B8FBF;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.search-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(238, 90, 82, 0.3);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 90, 82, 0.4);
}

.time-filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-filter-label {
    color: white;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.time-filter-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.time-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.time-chip.active {
    background: white;
    color: #667eea;
    border-color: white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments for time filter */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-input, .search-btn {
        width: 100%;
    }
    
    .time-filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .time-filter-chips {
        width: 100%;
        justify-content: center;
    }
}
