body {
    background-color: #f8f9fa;
}

.device-card {
    transition: all 0.3s ease;
    border-width: 2px;
}

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

.device-card.border-danger {
    opacity: 0.8;
}

.power-control {
    text-align: center;
}

.btn:disabled {
    opacity: 0.6;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timers-container {
    max-height: 60vh;
    overflow-y: auto;
}

.modal-lg {
    max-width: 900px;
}

.badge {
    font-size: 0.9rem;
    padding: 0.4em 0.8em;
}

.clickable-badge {
    transition: all 0.2s ease;
    user-select: none;
}

.clickable-badge:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.alert {
    border-radius: 8px;
}

.card {
    border-radius: 10px;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.125);
    border-radius: 10px 10px 0 0 !important;
}

.btn {
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn:hover:not(:disabled) {
    transform: scale(1.02);
}

.form-control, .form-select {
    border-radius: 6px;
}

@media (max-width: 768px) {
    .device-card {
        margin-bottom: 1rem;
    }
}