/* Estilos para el control de ventanas mejorado */

.window-card {
    border-left: 4px solid #2196f3;
}

.badge-farm {
    background: #4caf50 !important;
    color: white !important;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-greenhouse {
    background: #2196f3 !important;
    color: white !important;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Selector de modo Manual/Auto */
.mode-selector {
    display: flex;
    gap: 4px;
    flex: 1;
}

.mode-btn {
    flex: 1;
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mode-btn:hover {
    background: #f5f5f5;
    border-color: #2196f3;
}

.mode-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

.mode-btn i {
    font-size: 14px;
}

/* Controles manuales */
.manual-controls {
    display: flex;
    gap: 4px;
}

.manual-controls .btn {
    flex: 1;
    font-size: 12px;
    padding: 8px 4px;
    white-space: nowrap;
}

.manual-controls .btn i {
    margin-right: 4px;
}

.manual-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mensaje de control automático */
.auto-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Control de temperatura */
.temp-control-info {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mejoras en botones */
.btn-sm {
    font-size: 13px;
    padding: 6px 12px;
}

.btn-warning {
    background-color: #ff9800;
    border-color: #ff9800;
    color: white;
}

.btn-warning:hover {
    background-color: #f57c00;
    border-color: #f57c00;
}

.btn-warning:disabled {
    background-color: #ffcc80;
    border-color: #ffcc80;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .mode-selector {
        flex-direction: column;
    }
    
    .manual-controls {
        flex-direction: column;
    }
    
    .manual-controls .btn {
        width: 100%;
    }
}

/* Form improvements */
.form-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

.text-muted {
    color: #666 !important;
}
