/* Additional styles for dashboard enhancements */

/* Status indicator dot */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background-color: #28a745;
    box-shadow: 0 0 5px #28a745;
}

.status-inactive {
    background-color: #dc3545;
}

.status-pending {
    background-color: #ffc107;
}

/* Dashboard banner */
.dashboard-banner {
    background-color: rgba(0, 86, 179, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}

.dashboard-banner p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Enhanced fallback messages */
.fallback-message {
    background-color: var(--light-color);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    margin: 10px 0;
}

.fallback-message p {
    margin: 0;
    color: var(--gray-color);
}

.fallback-message .icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Loading animations */
.loading-pulse {
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    margin-left: 5px;
}

.loading-pulse:before {
    content: '';
    position: absolute;
    border-radius: 50%;
    background-color: var(--primary-color);
    width: 100%;
    height: 100%;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

/* Enhanced visualizations */
.weather-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.wind-direction {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #ddd;
    position: relative;
    margin-bottom: 10px;
}

.wind-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 4px;
    background-color: var(--primary-color);
    transform-origin: 0 50%;
}

.wind-speed {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.visibility-bar {
    width: 100%;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    margin: 5px 0;
    overflow: hidden;
}

.visibility-value {
    height: 100%;
    background-color: var(--primary-color);
}

.aqi-dial {
    width: 120px;
    height: 120px;
    position: relative;
    margin: 0 auto 15px;
}

.aqi-dial-bg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        #00e400 0% 20%,
        #ffff00 20% 40%,
        #ff7e00 40% 60%,
        #ff0000 60% 80%,
        #99004c 80% 100%
    );
}

.aqi-dial-center {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.aqi-needle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45%;
    height: 4px;
    background-color: #333;
    transform-origin: 0 50%;
    transform: rotate(0deg);
    transition: transform 1s ease-out;
    z-index: 10;
}

.aqi-needle:after {
    content: '';
    position: absolute;
    top: -3px;
    right: -5px;
    width: 0;
    height: 0;
    border-left: 10px solid #333;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
