/* Component-specific customizations */

/* Device cards */
.device-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.device-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Metric cards */
.metric-card {
    text-align: center;
}

.metric-card .card-body {
    padding: 1.5rem;
}

.metric-card h4 {
    font-size: 2rem;
    margin: 0.5rem 0;
}

/* Chart container */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
}

/* Command panel */
#command-form {
    max-width: 100%;
}

/* Alert items */
.alert-item {
    margin-bottom: 0.5rem;
    transition: opacity 0.3s;
}

.alert-item.acknowledged {
    opacity: 0.7;
}

/* Loading spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* Connection status badge */
#connection-status {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#connection-status i {
    font-size: 0.5rem;
    margin-right: 0.25rem;
}

/* Navigation improvements */
.nav-link {
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-link.active {
    background-color: rgba(255, 140, 0, 0.2);
    border-radius: 4px;
}

/* Form improvements */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 140, 0, 0.25);
}

/* Table improvements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background-color: #f8f9fa;
}

/* Badge improvements */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

