.filters {
    display: grid;
    grid-row: auto auto;
    width: 100%;
}

.current-visitors {
    margin-bottom: 10px;
}

.live-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: rgb(34, 197, 94);
    border-radius: 50%;
    margin-right: 5px;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    background-color: rgb(34, 197, 94);
    animation: radar-pulse 2s ease-out infinite;
}

@keyframes radar-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.live-visitors p {
    margin: 0;
}

.date-dropdown label {
    margin-right: 10px;
}

.or {
    margin: 10px;
}

.date-select, .date-input {
    -webkit-appearance: none;  
    appearance: none;
    padding: 8px 13px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background-color: white;
    color: inherit;
    box-sizing: border-box;
    min-height: 35px;
}

.metric-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.metric-box {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.metric-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.metric-box.active {
    border-color: var(--color-primary);
    background-color: rgba(38, 98, 163, 0.05);
}

.metric-title {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.metric-value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

@media screen and (max-width: 900px) {
    .top-bar {
        display: flex;
        flex-direction: column;
        row-gap: 10px;
        width: 100%;
        margin-bottom: 15px;
    }

    .date-dropdown {
        display: flex; /* Use flexbox for layout */
        align-items: center; /* Center items vertically */
        width: 100%; /* Ensure it takes full width */
    }
    
    .date-select {
        flex: 1; /* Allow the select to take all available space */
        width: 100%;
    }

    .date-input {
        width: 100%;
    }

    .custom-date {
        width: 100%;
        text-align: center; /* Center the content horizontally */
        display: flex; /* Use flexbox for centering */
        justify-content: center; /* Center the items horizontally */
        align-items: center; /* Center the items vertically */
    }

    .metric-boxes {
        grid-template-columns: 1fr 1fr;
        row-gap: 10px;
        column-gap: 10px;
        margin-bottom: 15px;
    }

    .metric-box {
        padding: 10px 20px; /* Set top and bottom padding to 10px, left and right remains 20px */
    }
}