@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.lineup-content {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    position: relative;
    min-height: 100%;
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 15px;
    gap: 20px;
}

.filter-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.period-badge,
.result-badge,
.last-update-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.period-badge {
    background: var(--chibatao-blue-pale);
    color: var(--chibatao-blue-dark);
}

.period-badge i {
    color: var(--chibatao-blue);
}

.result-badge {
    background: linear-gradient(135deg, #e8f4fd 0%, #d0e8f9 100%);
    color: var(--chibatao-blue-dark);
}

.result-badge i {
    color: var(--chibatao-blue);
}

.last-update-badge {
    background: #f0f0f0;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.last-update-badge:hover {
    background: #e0e0e0;
    transform: scale(1.05);
}

.last-update-badge:hover i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.last-update-badge #last-update-time {
    font-size: 16px;
    font-weight: 600;
}

.last-update-badge i {
    color: #888;
}

.status-filters-compact {
    display: flex;
    gap: 12px;
}

.status-filter-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: 2px solid #d0d0d0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    background-color: white;
    user-select: none;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    min-height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-filter-btn:hover {
    border-color: var(--chibatao-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.15);
}

.status-filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-filter-btn:focus {
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-filter-btn:focus:not(:active) {
    outline: none;
}

.status-filter-btn.active {
    border-color: var(--chibatao-blue);
    background-color: #f0f8ff;
    color: var(--chibatao-blue-dark);
    box-shadow: 0 2px 8px rgba(0, 82, 165, 0.2);
}

.status-filter-btn.active:hover {
    border-color: var(--chibatao-blue);
    background-color: #f0f8ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 165, 0.25);
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-dot.operando {
    background: linear-gradient(135deg, #7ed56f 0%, #1DD200 100%);
}

.status-dot.previsto {
    background: linear-gradient(135deg, #74b9ff 0%, #007BFF 100%);
}

.status-dot.finalizado {
    background: linear-gradient(135deg, #b0b0b0 0%, #888 100%);
}

.info-box {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.info-box-body {
    padding: 0;
}

.table-responsive {
    overflow-x: auto;
    overflow-y: auto;
    max-height: calc(100vh - 250px);
}

.tabela-lineup {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px;
}

.tabela-lineup thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.tabela-lineup thead th {
    background-color: var(--chibatao-blue);
    color: white;
    text-align: center;
    vertical-align: middle;
    height: 55px;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    border: none;
}

.tabela-lineup thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.tabela-lineup thead th.sortable:hover {
    background-color: var(--chibatao-blue-light);
}

.tabela-lineup thead th i {
    font-size: 11px;
    margin-left: 6px;
    opacity: 0.7;
}

.tabela-lineup tbody td {
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #e8e8e8;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.tabela-lineup tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.tabela-lineup tbody tr:hover {
    background-color: #f5f9fc;
}

.tabela-lineup tbody tr.selected,
.tabela-lineup tbody tr.selected:nth-child(even),
.tabela-lineup tbody tr.selected:hover {
    background-color: #bbdefb !important;
    box-shadow: inset 4px 0 0 var(--chibatao-blue);
}

.tabela-lineup tbody tr:nth-child(even) {
    background-color: #fafbfc;
}

.tabela-lineup tbody tr:nth-child(even):hover {
    background-color: #f0f6fa;
}

.navio-nome {
    text-align: left !important;
    padding-left: 15px !important;
}

.navio-nome strong {
    color: var(--chibatao-blue-dark);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.status-badge .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-badge.status-operando {
    background-color: #d4f5d0;
    color: #1a8f00;
}

.status-badge.status-operando .status-dot {
    background-color: #1DD200;
}

.status-badge.status-previsto {
    background-color: #d6e9ff;
    color: #0056b3;
}

.status-badge.status-previsto .status-dot {
    background-color: #007BFF;
}

.status-badge.status-finalizado {
    background-color: #e9e9e9;
    color: #666;
}

.status-badge.status-finalizado .status-dot {
    background-color: #888;
}

.gate-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    background: #f0f0f0;
    color: #666;
}

.gate-badge.gate-sim {
    background: #d4f5d0;
    color: #1a8f00;
}

.empty-message {
    text-align: center;
    padding: 60px 20px !important;
    color: #999;
}

.empty-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.empty-message p {
    font-size: 1.1rem;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 15px;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--chibatao-blue-pale);
    border-top: 4px solid var(--chibatao-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: var(--chibatao-blue-dark);
    font-weight: 500;
    font-size: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (min-width: 3000px) {
    .filter-bar {
        padding: 24px 40px;
    }
    
    .status-filters-compact {
        gap: 24px;
    }
    
    .status-filter-btn {
        padding: 20px 40px;
        font-size: 24px;
        min-height: 75px;
        gap: 18px;
    }
    
    .status-dot {
        width: 22px;
        height: 22px;
    }
    
    .period-badge,
    .result-badge,
    .last-update-badge {
        padding: 16px 32px;
        font-size: 22px;
    }
    
    .last-update-badge #last-update-time {
        font-size: 28px;
    }
    
    .tabela-lineup thead th {
        height: 85px;
        padding: 20px 16px;
        font-size: 24px;
    }
    
    .tabela-lineup thead th i {
        font-size: 20px;
    }
    
    .tabela-lineup tbody td {
        padding: 22px 16px;
        font-size: 22px;
    }
    
    .status-badge {
        padding: 10px 22px;
        font-size: 20px;
    }
    
    .gate-badge {
        padding: 6px 16px;
        font-size: 20px;
    }
    
    .empty-message i {
        font-size: 4rem;
    }
    
    .empty-message p {
        font-size: 1.5rem;
    }
}

@media (max-width: 1920px) {
    .filter-bar {
        padding: 10px 18px;
    }
    
    .status-filters-compact {
        gap: 10px;
    }
    
    .status-filter-btn {
        padding: 10px 18px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .status-dot {
        width: 12px;
        height: 12px;
    }
    
    .table-responsive {
        max-height: calc(100vh - 220px);
    }
}

@media (max-width: 1366px) {
    .filter-bar {
        padding: 8px 15px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .status-filters-compact {
        gap: 8px;
    }
    
    .status-filter-btn {
        padding: 8px 14px;
        font-size: 12px;
        gap: 8px;
        min-height: 40px;
    }
    
    .status-dot {
        width: 11px;
        height: 11px;
    }
    
    .period-badge,
    .result-badge,
    .last-update-badge {
        padding: 6px 12px;
        font-size: 11px;
    }
    
    .tabela-lineup thead th {
        height: 45px;
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .tabela-lineup tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table-responsive {
        max-height: calc(100vh - 200px);
    }
}



