/**
 * Component Styles
 * Reusable UI components (buttons, indicators, bars)
 */

/* Action Buttons */
.actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.action-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

/* Loading Indicator */
.loading {
    display: none;
    text-align: center;
    padding: 20px;
    color: #ffd700;
    font-size: 1.1em;
}

.loading.active {
    display: block;
}

/* Health Bar */
.health-bar {
    width: 100%;
    height: 25px;
    background: #1a1a2e;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ee5a24);
    transition: width 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9em;
    font-weight: bold;
}

/* Status Indicators */
.status-bar {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    animation: blink 2s infinite;
}

.status-indicator.online {
    background: #4caf50;
    box-shadow: 0 0 10px #4caf50;
}

.status-indicator.offline {
    background: #f44336;
    box-shadow: 0 0 10px #f44336;
    animation: none;
}

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

/* Mobile responsive */
@media (max-width: 768px) {
    .actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .action-btn {
        padding: 12px 15px;
        font-size: 0.9em;
    }

    .health-bar {
        height: 20px;
    }

    .health-fill {
        font-size: 0.8em;
    }

    .status-bar {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .action-btn {
        padding: 10px 12px;
        font-size: 0.85em;
        border-radius: 8px;
    }

    .health-bar {
        height: 18px;
    }

    .health-fill {
        font-size: 0.75em;
    }
}
