﻿.discover-page {
    padding: 20px;
}

.discover-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    position: relative;
}

.coordinates-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #f0f0f0;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(11, 40px);
    grid-template-rows: repeat(11, 40px);
    gap: 1px;
    background-color: #ccc;
    padding: 1px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.grid-cell {
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

    .grid-cell:hover {
        background-color: #f5f5f5;
    }

.device-marker {
    width: 20px;
    height: 20px;
    background-color: #007bff;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.error-message {
    color: #dc3545;
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

.loading {
    text-align: center;
    color: #666;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive design */
@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: repeat(11, 30px);
        grid-template-rows: repeat(11, 30px);
    }

    .coordinates-label {
        font-size: 14px;
        padding: 8px 16px;
    }

    .device-marker {
        width: 15px;
        height: 15px;
    }
}
