/* Live Tracker Styles */
.live-tracker-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #029b5b 0%, #175513 100%);
    border: 3px solid #000;
    border-radius: 25px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.live-tracker-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/Background/Efeito.png') no-repeat center center;
    background-size: cover;
    opacity: 0.1;
    pointer-events: none;
}

.tracker-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.tracker-header h2 {
    font-family: 'HaroldFont2', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #ffdc2c;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.tracker-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #00ff00;
}

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

.tracker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 220, 44, 0.5);
    box-shadow: 0 10px 25px rgba(255, 220, 44, 0.2);
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 10px;
    font-weight: 500;
}

.stat-value {
    font-family: 'HaroldFont2', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #ffdc2c;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
}

.tracker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.last-updated {
    font-size: 0.9rem;
    color: #ccc;
}

.refresh-btn {
    background: rgba(255, 220, 44, 0.2);
    border: 2px solid #ffdc2c;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 220, 44, 0.3);
    transform: scale(1.1);
}

.refresh-btn i {
    color: #ffdc2c;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.refresh-btn i.rotating {
    animation: rotate 1s linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Loading animation */
.stat-value:contains("Loading") {
    animation: loading-pulse 1.5s infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .live-tracker-container {
        margin: 10px;
        padding: 15px;
        border-radius: 20px;
        border-width: 2px;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }

    .tracker-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        margin-bottom: 20px;
    }

    .tracker-header h2 {
        font-size: 1.8rem;
    }

    .tracker-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }

    .stat-item {
        padding: 15px;
        border-radius: 12px;
        margin: 0 5px;
    }

    .stat-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .stat-value {
        font-size: 1.4rem;
        min-height: 2rem;
        padding: 0 10px;
    }

    .tracker-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 0 10px;
        position: relative;
    }

    .last-updated {
        font-size: 0.8rem;
    }

    .refresh-btn {
        width: 35px;
        height: 35px;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
    }

    .refresh-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .live-tracker-container {
        margin: 5px 10px;
        padding: 12px 15px;
        border-radius: 15px;
        max-width: calc(100% - 20px);
        box-sizing: border-box;
    }

    .tracker-header h2 {
        font-size: 1.5rem;
    }

    .tracker-stats {
        gap: 12px;
        margin: 0 5px;
    }

    .stat-item {
        padding: 12px 15px;
        border-radius: 10px;
        margin: 0 2px;
    }

    .stat-label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .stat-value {
        font-size: 1.2rem;
        min-height: 1.8rem;
        padding: 0 8px;
    }

    .tracker-footer {
        gap: 12px;
        padding: 0 8px;
        position: relative;
    }

    .last-updated {
        font-size: 0.75rem;
    }

    .refresh-btn {
        width: 32px;
        height: 32px;
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
    }

    .refresh-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 360px) {
    .live-tracker-container {
        margin: 3px 8px;
        padding: 10px 12px;
        border-radius: 12px;
        max-width: calc(100% - 16px);
        box-sizing: border-box;
    }

    .tracker-header h2 {
        font-size: 1.3rem;
    }

    .stat-item {
        padding: 10px 12px;
        border-radius: 8px;
        margin: 0 1px;
    }

    .stat-label {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .stat-value {
        font-size: 1.1rem;
        min-height: 1.6rem;
        padding: 0 6px;
    }

    .tracker-footer {
        padding: 0 6px;
        position: relative;
    }

    .last-updated {
        font-size: 0.7rem;
    }

    .refresh-btn {
        width: 30px;
        height: 30px;
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
    }

    .refresh-btn i {
        font-size: 0.8rem;
    }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
    .live-tracker-container {
        background: linear-gradient(135deg, #029b5b 0%, #0d3a0a 100%);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .live-tracker-container {
        border-width: 4px;
    }
    
    .stat-item {
        border-width: 3px;
    }
} 